rpms/abyssinica-fonts/devel abyssinica-fonts.spec,1.2,1.3

Bernie Innocenti bernie at fedoraproject.org
Sun Dec 21 11:13:45 UTC 2008


Author: bernie

Update of /cvs/pkgs/rpms/abyssinica-fonts/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13044

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



Index: abyssinica-fonts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/abyssinica-fonts/devel/abyssinica-fonts.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- abyssinica-fonts.spec	6 Oct 2007 04:16:39 -0000	1.2
+++ abyssinica-fonts.spec	21 Dec 2008 11:13:12 -0000	1.3
@@ -1,8 +1,8 @@
-%define fontdir         %{_datadir}/fonts/abyssinica
+%define fontname        abyssinica
 
-Name:           abyssinica-fonts
+Name:           %{fontname}-fonts
 Version:        1.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        SIL Abyssinica fonts
 
 Group:          User Interface/X
@@ -10,9 +10,11 @@
 URL:            http://scripts.sil.org/AbyssinicaSIL_Download
 # download from http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=AbyssinicaSIL1.0.zip&filename=AbyssinicaSIL1.0.zip
 Source0:        AbyssinicaSIL%{version}.zip
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildArch:      noarch
 
+Requires:       fontpackages-filesystem
+BuildRequires:  fontpackages-devel
 BuildRequires:  dos2unix
 
 # Providing the name of an upstream RPM
@@ -42,40 +44,26 @@
 
 
 %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}
 
 
-%post
-if [ -x %{_bindir}/fc-cache ]; then
-  %{_bindir}/fc-cache %{fontdir}
-fi
+%_font_pkg *.ttf
 
-
-%postun
-if [ "$1" = "0" ]; then
-  if [ -x %{_bindir}/fc-cache ]; then
-    %{_bindir}/fc-cache %{fontdir}
-  fi
-fi
-
-
-%files
-%defattr(0644,root,root,0755)
 %doc FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt
-
-%dir %{fontdir}
-%{fontdir}/*.ttf
-
+%dir %{_fontdir}
 
 %changelog
+* Sun Dec 21 2008 Bernie Innocenti <bernie at codewiz.org> 1.0-3
+- Updated to current Fedora font packaging guidelines
+
 * Thu Oct 04 2007 Todd Zullinger <tmz at pobox.com> 1.0-2
 - use upstream zip file as Source0
 - fix license tag




More information about the fonts-bugs mailing list