lohit-nepali-fonts/lohit-nepali-fonts.spec
wk333 ada78ead79 License compliance rectification
(cherry picked from commit 1ff7b33f122308aeee427d2b72baea760038dcbc)
2024-06-12 14:32:46 +08:00

45 lines
1.5 KiB
RPMSpec

%global fontname lohit-nepali
Name: lohit-nepali-fonts
Version: 2.94.2
Release: 7
Summary: This package provides a free Nepali truetype/opentype font
License: OFL-1.1
URL: https://pagure.io/lohit
Source0: https://releases.pagure.org/lohit/lohit-nepali-%{version}.tar.gz
BuildArch: noarch
BuildRequires: fontforge fontpackages-devel python3-devel
Requires: fontpackages-filesystem
%description
The lohit-nepali-fonts package provides free TrueType fonts for Nepali language.
%prep
%autosetup -n lohit-nepali-%{version} -p1
%build
%make_build ttf
%install
install -m 0755 -d %{buildroot}%{_fontdir} %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0644 -p 65-0-lohit-nepali.conf %{buildroot}%{_fontconfig_templatedir}/65-0-lohit-nepali.conf
ln -s %{_fontconfig_templatedir}/65-0-lohit-nepali.conf %{buildroot}%{_fontconfig_confdir}/65-0-lohit-nepali.conf
install -Dm 0644 -p io.pagure.lohit.nepali.font.metainfo.xml %{buildroot}%{_datadir}/metainfo/io.pagure.lohit.nepali.font.metainfo.xml
%_font_pkg -f 65-0-lohit-nepali.conf *.ttf
%doc ChangeLog COPYRIGHT OFL.txt AUTHORS README test-nepali.txt
%{_datadir}/metainfo/io.pagure.lohit.nepali.font.metainfo.xml
%changelog
* Tue Jul 19 2022 wangkai <wangkai385@h-partners.com> - 2.94.2-7
- License compliance rectification
* Wed Nov 20 2019 fengbing <fengbing7@huawei.com> - 2.94.2-6
- Package init