rpms/nafees-web-naskh-fonts/devel nafees-web-naskh-fonts.spec, 1.1, 1.2

Bernie Innocenti bernie at fedoraproject.org
Sun Dec 21 06:28:47 UTC 2008


Author: bernie

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

Modified Files:
	nafees-web-naskh-fonts.spec 
Log Message:
* Sun Dec 21 2008 Bernie Innocenti <bernie at codewiz.org> 1.0-2
- Updated to current Fedora font packaging guidelines



Index: nafees-web-naskh-fonts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/nafees-web-naskh-fonts/devel/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	21 Dec 2008 06:28:16 -0000	1.2
@@ -1,10 +1,11 @@
+%define fontname        nafees-web-naskh
+%define fontdir         %{_datadir}/fonts/%{fontname} 
 %define archivename     NafeesWeb
 %define archivedate     20070820
-%define fontdir         %{_datadir}/fonts/nafees
 
-Name:           nafees-web-naskh-fonts
+Name:           %{fontname}-fonts
 Version:        1.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Nafees Web font for writing Urdu in the Naskh script 
 
 Group:          User Interface/X
@@ -12,10 +13,9 @@
 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)
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildArch:      noarch
-Provides:       nafees-web-naskh-fonts = %{version}-%{release}
-Requires:       fontconfig
+Requires:       fontpackages-filesystem
 
 %description
 
@@ -32,38 +32,24 @@
 #nop
 
 %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
-
-
-%postun
-if [ "$1" = "0" ]; then
-  if [ -x %{_bindir}/fc-cache ]; then
-    %{_bindir}/fc-cache %{fontdir}
-  fi
-fi
-
-
-%files
-%defattr(0644,root,root,0755)
-
+%doc
 %dir %{fontdir}
-%{fontdir}/*.ttf
-
 
 %changelog
+* Sun Dec 21 2008 Bernie Innocenti <bernie at codewiz.org> 1.0-2
+- Updated to current Fedora font packaging guidelines
+
 * Sat Sep 15 2007 Bernardo Innocenti <bernie at codewiz.org> 1.0-1
 - Initial packaging, borrowing many things from abyssinica-fonts




More information about the fonts-bugs mailing list