rpms/paktype-fonts/devel paktype-fonts.spec,1.2,1.3
Pravin Satpute
pravins at fedoraproject.org
Thu Jul 9 05:40:58 UTC 2009
Author: pravins
Update of /cvs/pkgs/rpms/paktype-fonts/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30649
Modified Files:
paktype-fonts.spec
Log Message:
* Thu Jul 9 2009 Pravin Satpute <psatpute at redhat.com> 2.0-4
- updated as per new font packaging guideline
Index: paktype-fonts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/paktype-fonts/devel/paktype-fonts.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- paktype-fonts.spec 26 Feb 2009 09:26:05 -0000 1.2
+++ paktype-fonts.spec 9 Jul 2009 05:40:58 -0000 1.3
@@ -2,22 +2,60 @@
%define fontdir %{_datadir}/fonts/%{fontname}
%define paktype paktype-20061222
+# Common description
+%define common_desc \
+The paktype-fonts package contains fonts for the display of \
+Arabic from the PakType by Lateef Sagar.
+
Name: %{fontname}-fonts
Version: 2.0
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv2 with exceptions
Source: %{paktype}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires : dos2unix
+BuildRequires: fontpackages-devel
Group: User Interface/X
Summary: Fonts for Arabic from PakType
URL: https://sourceforge.net/projects/paktype/
%description
-The paktype-fonts package contains fonts for the display of
+%common_desc
+
+%package common
+Summary: Common files for paktype-fonts
+Group: User Interface/X
+Requires: fontpackages-filesystem
+%description common
+%common_desc
+
+%package -n %{fontname}-naqsh-fonts
+Summary: Naqsh Fonts for Arabic from PakType
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+License: GPLv2 with exceptions
+Provides: %{fontname}-fonts = %{version}-%{release}
+Obsoletes: %{fontname}-fonts < 2.0-4
+%description -n %{fontname}-naqsh-fonts
+The paktype-naqsh-fonts package contains fonts for the display of\
Arabic from the PakType by Lateef Sagar.
+%_font_pkg -n naqsh PakTypeNaqsh.ttf
+
+%package -n %{fontname}-tehreer-fonts
+Summary: Tehreer Fonts for Arabic from PakType
+Group: User Interface/X
+Requires: %{name}-common = %{version}-%{release}
+License: GPLv2 with exceptions
+Provides: %{fontname}-fonts = %{version}-%{release}
+Obsoletes: %{fontname}-fonts < 2.0-4
+%description -n %{fontname}-tehreer-fonts
+The paktype-tehreer-fonts package contains fonts for the display of\
+Arabic from the PakType by Lateef Sagar.
+
+%_font_pkg -n tehreer PakTypeTehreer.ttf
+
%prep
%setup -q -n %{paktype}
find . -not -name \*.ttf -type f -exec dos2unix -k {} \;
@@ -34,25 +72,16 @@ install -m 0644 -p *.ttf %{buildroot}%{f
%clean
rm -rf %{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}
- fi
-fi
-%files
+%files common
%defattr(-,root,root,-)
%doc *.txt
%dir %{fontdir}
-%{fontdir}/*.ttf
%changelog
+* Thu Jul 9 2009 Pravin Satpute <psatpute at redhat.com> 2.0-4
+- updated as per new font packaging guideline
+
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
More information about the fedora-extras-commits
mailing list