From e163eddaf2fb4a6a4dd8a0553432692f7320bf4c Mon Sep 17 00:00:00 2001 From: Packit Service Date: Mar 25 2021 04:21:08 +0000 Subject: Add spec-file for the distribution --- diff --git a/SPECS/nafees-web-naskh-fonts.spec b/SPECS/nafees-web-naskh-fonts.spec new file mode 100644 index 0000000..4f59ae8 --- /dev/null +++ b/SPECS/nafees-web-naskh-fonts.spec @@ -0,0 +1,144 @@ +%global fontname nafees-web-naskh +%global fontconf 67-%{fontname}.conf +%global archivename NafeesWeb +%global archivedate 20080509 + +Name: %{fontname}-fonts +Version: 1.2 +Release: 18%{?dist} +Summary: Nafees Web font for writing Urdu in the Naskh script + +Group: User Interface/X +License: Bitstream Vera +URL: http://www.crulp.org/Downloads/NafeesWeb.zip + +## NOTE: the original archive is unversioned, so we rename it to add a date stamp +# The Source0 is obtained by doing the following: +# $ wget -S http://www.crulp.org/Downloads/NafeesWeb.zip +# $ mv %{archivename}.zip %{fontname}-%{archivedate}.zip +Source0: %{fontname}-%{archivedate}.zip + +## Fix RHBZ# while not fixed upstream +Source1: %{fontname}-update-preferred-family.pe +Source2: %{fontconf} +Source3: %{fontname}.metainfo.xml + +BuildArch: noarch +Requires: fontpackages-filesystem +BuildRequires: fontpackages-devel +BuildRequires: fontforge + +%description + +Character based Nafees Web Naskh Open Type Font for writing Urdu in Naskh +script based on Unicode standard. This version has complete support of +Aerabs for Urdu and updated glyphs for Latin characters. +Nafees Web Naskh OTF contains approximately 330 glyphs, including 5 ligatures. + + +%prep +%setup -q -c + +%build +# Fix RHBZ#490830 while not fixed upstream +%{_bindir}/fontforge %{SOURCE1} %{archivename}.ttf + +%install +rm -rf %{buildroot} + +#fonts +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 %{SOURCE2} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} + +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +# Add AppStream metadata +install -Dm 0644 -p %{SOURCE3} \ + %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml + + + +%_font_pkg -f %{fontconf} *.ttf + +%doc +%{_datadir}/appdata/%{fontname}.metainfo.xml + + +%changelog +* Thu Feb 08 2018 Fedora Release Engineering - 1.2-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.2-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.2-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.2-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Nov 06 2014 Pravin Satpute - 1.2-13 +- Added metainfo for gnome-software + +* Sat Jun 07 2014 Fedora Release Engineering - 1.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 1.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 1.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 1.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Feb 24 2010 Mathieu Bridon - 1.2-6 +- bumping spec as I forgot to add the fontconfig file in previous commit + +* Wed Feb 24 2010 Mathieu Bridon - 1.2-5 +- minor spec fixes + +* Wed Feb 24 2010 Pravin Satpute - 1.2-4 +- adding .conf file +- bugfix 567612 + +* Sat Jul 25 2009 Fedora Release Engineering - 1.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sat Apr 11 2009 Mathieu Bridon - 1.2-2 +- added comment explaining how the source is obtained (as it is modified from upstream) +- temporary fix for RHBZ#490830 while not fixed upstream + +* Sat Apr 11 2009 Mathieu Bridon - 1.2-1 +- update to 1.2 release + +* Wed Feb 25 2009 Fedora Release Engineering - 1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sun Dec 21 2008 Bernie Innocenti 1.0-4 +- Builddep on fontpackages-devel + +* Sun Dec 21 2008 Bernie Innocenti 1.0-3 +- Typo: fontdir -> _fontdir + +* Sun Dec 21 2008 Bernie Innocenti 1.0-2 +- Updated to current Fedora font packaging guidelines + +* Sat Sep 15 2007 Bernardo Innocenti 1.0-1 +- Initial packaging, borrowing many things from abyssinica-fonts