rpms/jomolhari-fonts/devel jomolhari-fonts.spec,1.4,1.5

Marcin Garski mgarski at fedoraproject.org
Sun Mar 15 13:26:59 UTC 2009


Author: mgarski

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

Modified Files:
	jomolhari-fonts.spec 
Log Message:
- Update to new fonts guidelines, thanks to Rajeesh K Nambiar (#477403)



Index: jomolhari-fonts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/jomolhari-fonts/devel/jomolhari-fonts.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- jomolhari-fonts.spec	25 Feb 2009 09:35:56 -0000	1.4
+++ jomolhari-fonts.spec	15 Mar 2009 13:26:29 -0000	1.5
@@ -1,17 +1,19 @@
-%define	fontdir		%{_datadir}/fonts/jomolhari
+%define	fontname	jomolhari
 
-Name:		jomolhari-fonts
+Name:		%{fontname}-fonts
 Version:	0.003
-Release:	6%{?dist}
+Release:	7%{?dist}
 Summary:	Jomolhari a Bhutanese style font for Tibetan and Dzongkha
 
 Group:		User Interface/X
 License:	OFL
 URL:		http://chris.fynn.googlepages.com/jomolhari
-Source0:	http://download.savannah.nongnu.org/releases/free-tibetan/jomolhari/jomolhari-alpha003c.zip
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:	http://chris.fynn.googlepages.com/jomolhari-alpha003c.zip
+BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 BuildArch:	noarch
+BuildRequires:	fontpackages-devel
+Requires:	fontpackages-filesystem
 
 %description
 Jomolhari is an TrueType OpenType Bhutanese style font for Dzongkha and
@@ -26,10 +28,10 @@
 # Empty build section
 
 %install
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
-install -d -m 0755 $RPM_BUILD_ROOT%{fontdir}
-install -p -m 0644 *.ttf $RPM_BUILD_ROOT%{fontdir}
+install -m 0755 -d %{buildroot}%{_fontdir}
+install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
 
 for i in FONTLOG.txt OFL-FAQ.txt OFL.txt
 do
@@ -37,27 +39,17 @@
 	mv -f ${i}.tmp $i
 done
 
-%post
-if [ -x %{_bindir}/fc-cache ]; then
-	%{_bindir}/fc-cache %{_datadir}/fonts
-fi
-
-%postun
-if [ "$1" = "0" ]; then
-	if [ -x %{_bindir}/fc-cache ]; then
-		%{_bindir}/fc-cache %{_datadir}/fonts
-	fi
-fi
-
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -fr %{buildroot}
 
-%files
-%defattr(-,root,root,-)
+%_font_pkg *.ttf
 %doc FONTLOG.txt OFL-FAQ.txt OFL.txt
-%{fontdir}/
+%dir %{_fontdir}
 
 %changelog
+* Sun Mar 15 2009 Marcin Garski <mgarski[AT]post.pl> 0.003-7
+- Update to new fonts guidelines, thanks to Rajeesh K Nambiar (#477403)
+
 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.003-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 




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