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

Rahul Bhalerao rbhalera at fedoraproject.org
Tue Mar 10 16:49:12 UTC 2009


Author: rbhalera

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

Modified Files:
	lklug-fonts.spec 
Log Message:
Spec update


Index: lklug-fonts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/lklug-fonts/devel/lklug-fonts.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- lklug-fonts.spec	25 Feb 2009 20:41:37 -0000	1.4
+++ lklug-fonts.spec	10 Mar 2009 16:48:42 -0000	1.5
@@ -1,61 +1,55 @@
 %define fontname lklug
-%define fontdir %{_datadir}/fonts/%{fontname}
 
-Name: %{fontname}-fonts
-Version: 0.2.2
-Release: 7%{?dist}
-License: GPLv2+
-Source: lklug-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch: noarch
-# provides can be dropped for F11
-Provides: fonts-sinhala = 0.2.2-3
-Obsoletes: fonts-sinhala <= 0.2.2-2
-Group: User Interface/X
-Summary: Fonts for Sinhala language
-URL: http://sinhala.sourceforge.net/
- 
+Name:           %{fontname}-fonts
+# Do not trust font metadata versionning unless you've checked upstream does
+# update versions on file changes. When in doubt use the timestamp of the most
+# recent file as version.
+Version:        0.2.2
+Release:        8%{?dist}
+Summary:        Fonts for Sinhala language
+
+Group:          User Interface/X
+License:        GPLv2+
+URL:            http://sinhala.sourceforge.net/
+Source:         lklug-%{version}.tar.gz
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildArch:      noarch
+BuildRequires:  fontpackages-devel
+Requires:       fontpackages-filesystem
+
 %description
 The lklug-fonts package contains fonts for the display of
 Sinhala. The original font for TeX/LaTeX is developed by Yannis 
 Haralambous and are in GPL. OTF tables are added by Anuradha 
 Ratnaweera and Harshani Devadithya.
 
-
 %prep
 %setup -q -n %{fontname}-%{version}
 
+
 %build
-echo "Nothing to do in Build."
+
 
 %install
-rm -rf %{buildroot}
+rm -fr %{buildroot}
 
-install -m 0755 -d %{buildroot}%{fontdir}
-install -m 0644 -p *.ttf %{buildroot}%{fontdir}
+install -m 0755 -d %{buildroot}%{_fontdir}
+install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
+echo %{fontdir}
 
 %clean
-rm -rf %{buildroot}
+rm -fr %{buildroot}
 
-%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}/fonts
-  fi
-fi
-
-%files
-%defattr(-,root,root,-)
+%_font_pkg *.ttf
 %doc license.txt COPYING
-%dir %{fontdir}
-%{fontdir}/*.ttf
+%dir %{_fontdir}
+
 
 %changelog
+* Mon Mar 09 2009 Rahul Bhalerao <rbhalera at redhat.com> - 0.2.2-8
+- Following new font packaging guidelines
+
 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.2-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 
@@ -69,7 +63,7 @@
 - Updated according to the review
 
 * Thu Oct 04 2007 Rahul Bhalerao <rbhalera at redhat.com> - 0.2.2-3
-- Using common template of font spec file 
+- Using common template of font spec file
 
 * Thu Oct 04 2007 Rahul Bhalerao <rbhalera at redhat.com> - 0.2.2-2
 - Spec cleanup




More information about the fedora-extras-commits mailing list