lohit-marathi-fonts/lohit-marathi-fonts.spec
2019-12-14 18:57:32 +08:00

47 lines
1.4 KiB
RPMSpec

%global fontconf 65-0-lohit-marathi.conf
%global metainfo io.pagure.lohit.marathi.font.metainfo
Name: lohit-marathi-fonts
Version: 2.94.2
Release: 7
Summary: Free truetype font for Marathi language
License: OFL
URL: https://pagure.io/lohit
Source0: https://releases.pagure.org/lohit/lohit-marathi-2.94.2.tar.gz
BuildArch: noarch
BuildRequires: fontforge fontpackages-devel python3-devel
Requires: fontpackages-filesystem
%description
This package provides a free Marathi truetype/opentype font.
%prep
%setup -q -n lohit-marathi-2.94.2
%build
make ttf %{?_smp_mflags}
%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{fontconf} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
install -Dm 0644 -p %{metainfo}.xml \
%{buildroot}%{_datadir}/metainfo/%{metainfo}.xml
%_font_pkg -f %{fontconf} *.ttf
%doc ChangeLog COPYRIGHT AUTHORS README test-marathi.txt
%license OFL.txt
%{_datadir}/metainfo/%{metainfo}.xml
%changelog
* Tue Nov 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.94.2-7
- Package init