Blame SPECS/nafees-web-naskh-fonts.spec

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