rpms/nafees-web-naskh-fonts/F-10 nafees-web-naskh-update-preferred-family.pe, NONE, 1.1 .cvsignore, 1.2, 1.3 nafees-web-naskh-fonts.spec, 1.1, 1.2 sources, 1.2, 1.3

Mathieu Bridon bochecha at fedoraproject.org
Sat Apr 11 20:58:52 UTC 2009


Author: bochecha

Update of /cvs/pkgs/rpms/nafees-web-naskh-fonts/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15024

Modified Files:
	.cvsignore nafees-web-naskh-fonts.spec sources 
Added Files:
	nafees-web-naskh-update-preferred-family.pe 
Log Message:
Update to 1.2 release and fix RHBZ#490830 with a fontforge script while not fixed upstream.




--- NEW FILE nafees-web-naskh-update-preferred-family.pe ---
#!/usr/bin/fontforge 


fontfile = $1
Open(fontfile)

SetTTFName(0x409, 16, 'Nafees Web Naskh')

Generate('NafeesWeb.ttf')
Close()



Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/nafees-web-naskh-fonts/F-10/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore	6 Oct 2007 03:50:20 -0000	1.2
+++ .cvsignore	11 Apr 2009 20:58:21 -0000	1.3
@@ -1 +1 @@
-NafeesWeb-20070820.zip
+nafees-web-naskh-20080509.zip


Index: nafees-web-naskh-fonts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nafees-web-naskh-fonts/F-10/nafees-web-naskh-fonts.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- nafees-web-naskh-fonts.spec	6 Oct 2007 03:50:20 -0000	1.1
+++ nafees-web-naskh-fonts.spec	11 Apr 2009 20:58:21 -0000	1.2
@@ -1,21 +1,30 @@
+%define fontname        nafees-web-naskh
 %define archivename     NafeesWeb
-%define archivedate     20070820
-%define fontdir         %{_datadir}/fonts/nafees
+%define archivedate     20080509
 
-Name:           nafees-web-naskh-fonts
-Version:        1.0
-Release:        1%{?dist}
+Name:           %{fontname}-fonts
+Version:        1.2
+Release:        2%{?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
-Source0:        %{archivename}-%{archivedate}.zip
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+## 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} %{fontname}-%{archivedate}.zip
+Source0:        %{fontname}-%{archivedate}.zip
+
+## Fix RHBZ# while not fixed upstream
+Source1:        %{fontname}-update-preferred-family.pe
+
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildArch:      noarch
-Provides:       nafees-web-naskh-fonts = %{version}-%{release}
-Requires:       fontconfig
+Requires:       fontpackages-filesystem
+BuildRequires:  fontpackages-devel
+BuildRequires:  fontforge
 
 %description
 
@@ -29,41 +38,44 @@
 %setup -q -c
 
 %build
-#nop
+# Fix RHBZ#490830 while not fixed upstream
+%{_bindir}/fontforge %{SOURCE1} %{archivename}.ttf
 
 %install
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 #fonts
-install -d -m 0755 $RPM_BUILD_ROOT%{fontdir}
-install -m 0644 *.ttf $RPM_BUILD_ROOT%{fontdir}
+install -d -m 0755 %{buildroot}%{_fontdir}
+install -m 0644 *.ttf %{buildroot}%{_fontdir}
 
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
+%_font_pkg *.ttf
 
-%post
-if [ -x %{_bindir}/fc-cache ]; then
-  %{_bindir}/fc-cache %{fontdir}
-fi
+%doc
+%dir %{_fontdir}
 
+%changelog
+* Sat Apr 11 2009 Mathieu Bridon <bochecha at fedoraproject.org> - 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
 
-%postun
-if [ "$1" = "0" ]; then
-  if [ -x %{_bindir}/fc-cache ]; then
-    %{_bindir}/fc-cache %{fontdir}
-  fi
-fi
+* Sat Apr 11 2009 Mathieu Bridon <bochecha at fedoraproject.org> - 1.2-1
+- update to 1.2 release
 
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 
-%files
-%defattr(0644,root,root,0755)
+* Sun Dec 21 2008 Bernie Innocenti <bernie at codewiz.org> 1.0-4
+- Builddep on fontpackages-devel
 
-%dir %{fontdir}
-%{fontdir}/*.ttf
+* Sun Dec 21 2008 Bernie Innocenti <bernie at codewiz.org> 1.0-3
+- Typo: fontdir -> _fontdir
 
+* Sun Dec 21 2008 Bernie Innocenti <bernie at codewiz.org> 1.0-2
+- Updated to current Fedora font packaging guidelines
 
-%changelog
 * Sat Sep 15 2007 Bernardo Innocenti <bernie at codewiz.org> 1.0-1
 - Initial packaging, borrowing many things from abyssinica-fonts


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/nafees-web-naskh-fonts/F-10/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources	6 Oct 2007 03:50:20 -0000	1.2
+++ sources	11 Apr 2009 20:58:21 -0000	1.3
@@ -1 +1 @@
-ad8bc7947df986d30306868f7a9c6096  NafeesWeb-20070820.zip
+ad8bc7947df986d30306868f7a9c6096  nafees-web-naskh-20080509.zip




More information about the Fedora-fonts-bugs-list mailing list