diff --git a/65-0-lohit-marathi-fonts.conf b/65-0-lohit-marathi-fonts.conf new file mode 100644 index 0000000..2388765 --- /dev/null +++ b/65-0-lohit-marathi-fonts.conf @@ -0,0 +1,32 @@ + + + + + + mr + + + sans-serif + + + Lohit Marathi + + + + + + Lohit Marathi + + + true + + + + + Lohit Marathi + + sans-serif + + + + diff --git a/lohit-marathi-fonts.spec b/lohit-marathi-fonts.spec index d59823d..c30365b 100644 --- a/lohit-marathi-fonts.spec +++ b/lohit-marathi-fonts.spec @@ -1,55 +1,53 @@ %global fontname lohit-marathi -%global fontconf 65-0-%{fontname}.conf -%global metainfo io.pagure.lohit.marathi.font.metainfo -Name: %{fontname}-fonts -Version: 2.94.2 -Release: 16%{?dist} -Summary: Free truetype font for Marathi language +Version: 2.94.2 +Release: 17%{?dist} +URL: https://github.com/lohit-fonts/lohit-marathi-fonts -License: OFL -URL: https://pagure.io/lohit -Source0: https://releases.pagure.org/lohit/%{fontname}-%{version}.tar.gz -BuildArch: noarch -BuildRequires: fontforge -BuildRequires: fontpackages-devel -BuildRequires: python3-devel -BuildRequires: make -Requires: fontpackages-filesystem +%global foundry Lohit +%global fontlicense OFL-1.1 +%global fontlicenses OFL.txt COPYRIGHT +%global fontdocs AUTHORS README ChangeLog test-marathi.txt + +%global fontfamily Lohit Marathi +%global fontsummary Free truetype font for Marathi language +%global fonts *.ttf +%global fontconfs %{SOURCE10} -%description +%global fontdescription %{expand: This package provides a free Marathi truetype/opentype font. +} +BuildRequires: make +BuildRequires: fontforge +Source0: https://releases.pagure.org/lohit/%{fontname}-%{version}.tar.gz +Source10: 65-0-%{fontpkgname}.conf + +%fontpkg %prep %setup -q -n %{fontname}-%{version} +%linuxtext OFL.txt AUTHORS README ChangeLog COPYRIGHT test-marathi.txt %build make ttf %{?_smp_mflags} +%fontbuild %install -install -m 0755 -d %{buildroot}%{_fontdir} -install -m 0644 -p *.ttf %{buildroot}%{_fontdir} - -install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ - %{buildroot}%{_fontconfig_confdir} +%fontinstall -install -m 0644 -p %{fontconf} \ - %{buildroot}%{_fontconfig_templatedir}/%{fontconf} -ln -s %{_fontconfig_templatedir}/%{fontconf} \ - %{buildroot}%{_fontconfig_confdir}/%{fontconf} +%check +%fontcheck -# Add AppStream metadata -install -Dm 0644 -p %{metainfo}.xml \ - %{buildroot}%{_datadir}/metainfo/%{metainfo}.xml +%fontfiles -%_font_pkg -f %{fontconf} *.ttf -%doc ChangeLog COPYRIGHT AUTHORS README test-marathi.txt -%license OFL.txt -%{_datadir}/metainfo/%{metainfo}.xml - %changelog +* Mon May 15 2023 Sudip Shil - 2.94.2-17 +- Convert to new fonts packaging guidelines +- Update the fonts package +- https://fedoraproject.org/wiki/Changes/New_Fonts_Packaging + * Thu Jan 19 2023 Fedora Release Engineering - 2.94.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild