abattis-cantarell-fonts/abattis-cantarell-fonts.spec

67 lines
1.7 KiB
RPMSpec
Raw Normal View History

2019-12-25 15:40:47 +08:00
%global fontname cantarell
%global fontconf 31-%{fontname}.conf
Name: abattis-cantarell-fonts
2020-07-23 15:45:50 +08:00
Version: 0.201
Release: 1
2019-12-25 15:40:47 +08:00
Summary: Humanist sans serif font
License: OFL
URL: https://git.gnome.org/browse/cantarell-fonts/
2020-07-23 15:45:50 +08:00
Source0: https://download.gnome.org/sources/cantarell-fonts/0.201/cantarell-fonts-%{version}.tar.xz
2019-12-25 15:40:47 +08:00
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
2020-07-23 15:45:50 +08:00
* Mon Jul 20 2020 wangye <wangye70@huawei.com> - 0.201-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:version update
2019-12-25 15:40:47 +08:00
* 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