abattis-cantarell-fonts/abattis-cantarell-fonts.spec
liuyumeng 1da5f49b47 fix license error
(cherry picked from commit dbf3b17c175e5ba3aa85dbf666b930b00eb28072)
2022-08-03 14:23:09 +08:00

70 lines
1.9 KiB
RPMSpec

%global fontname cantarell
%global fontconf 31-%{fontname}.conf
Name: abattis-cantarell-fonts
Version: 0.201
Release: 2
Summary: Humanist sans serif font
License: Apache-2.0 and OFL-1.1
URL: https://git.gnome.org/browse/cantarell-fonts/
Source0: https://download.gnome.org/sources/cantarell-fonts/0.201/cantarell-fonts-%{version}.tar.xz
Source1: cantarell-fontconfig.conf
BuildArch: noarch
BuildRequires: fontpackages-devel gettext libappstream-glib-devel meson
Requires: fontpackages-filesystem
%description
This package is the default font for the user interface, which replaces Bitstream Vera.
The font was originally created by Dave Crossland in 2009.
%package_help
%prep
%autosetup -n cantarell-fonts-%{version}
%build
%meson
%meson_build
%install
%meson_install
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} %{buildroot}%{_fontconfig_confdir}/%{fontconf}
%check
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.gnome.cantarell.metainfo.xml
%_font_pkg -f %{fontconf} *.otf
%license COPYING
%files help
%doc NEWS README.md
%{_datadir}/metainfo/org.gnome.cantarell.metainfo.xml
%changelog
* Wed May 11 2022 liuyumeng <liuyumeng5@h-partners.com> -0.201-2
- fix license error
* Mon Aug 17 2020 jinzhimin <jinzhimin2@huawei.com> - 0.201-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:version update
* Mon Sep 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.4-15
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add requires
* Tue Sep 3 2019 openEuler Buildteam<buildteam@openeuler.org> - 0.111-2
- Package init