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

86 lines
2.5 KiB
RPMSpec
Raw Normal View History

2019-12-25 15:40:47 +08:00
%global fontname cantarell
%global fontconf 31-%{fontname}.conf
2022-04-13 12:14:34 +08:00
%global fontconfvf 31-%{fontname}-vf.conf
2019-12-25 15:40:47 +08:00
Name: abattis-cantarell-fonts
2022-04-13 12:14:34 +08:00
Version: 0.303.1
2020-07-23 15:45:50 +08:00
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/
2021-01-27 14:29:53 +08:00
Source0: https://download.gnome.org/sources/cantarell-fonts/%{version}/cantarell-fonts-%{version}.tar.xz
2022-04-13 12:14:34 +08:00
Source1: 31-cantarell.conf
Source2: 31-cantarell-vf.conf
2019-12-25 15:40:47 +08:00
BuildArch: noarch
BuildRequires: fontpackages-devel gettext libappstream-glib-devel meson
2022-04-13 12:14:34 +08:00
BuildRequires: fontconfig pkgconfig xz pkgconfig(appstream-glib)
2019-12-25 15:40:47 +08:00
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
2022-04-13 12:14:34 +08:00
%meson \
-Dfontsdir=%{_fontconfig_confdir}/%{name} \
-Duseprebuilt=true
2019-12-25 15:40:47 +08:00
%meson_build
%install
%meson_install
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
2022-04-13 12:14:34 +08:00
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/
install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/
2019-12-25 15:40:47 +08:00
ln -s %{_fontconfig_templatedir}/%{fontconf} %{buildroot}%{_fontconfig_confdir}/%{fontconf}
2022-04-13 12:14:34 +08:00
ln -s %{_fontconfig_templatedir}/%{fontconfvf} %{buildroot}%{_fontconfig_confdir}/%{fontconfvf}
2019-12-25 15:40:47 +08:00
%check
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.gnome.cantarell.metainfo.xml
2022-04-13 12:14:34 +08:00
%files
2019-12-25 15:40:47 +08:00
%license COPYING
2022-04-13 12:14:34 +08:00
%{_fontconfig_confdir}/%{name}/*.otf
%{_fontconfig_confdir}/%{fontconf}
%{_fontconfig_confdir}/%{fontconfvf}
%{_fontconfig_templatedir}/%{fontconf}
%{_fontconfig_templatedir}/%{fontconfvf}
2019-12-25 15:40:47 +08:00
%files help
%doc NEWS README.md
%{_datadir}/metainfo/org.gnome.cantarell.metainfo.xml
%changelog
2022-04-13 12:14:34 +08:00
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.303.1-1
- update to 0.303.1
2021-01-27 14:29:53 +08:00
* Wed Jan 27 2021 yanglu <yanglu60@huawei.com> - 0.301-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:version update
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