%global fontname paktype-naskh-basic %global fontconf 67-%{fontname} # Common description %define common_desc \ The paktype-naskh-basic-fonts package contains fonts for the display of \ Arabic, Farsi, Urdu and Sindhi from PakType by Lateef Sagar. Name: %{fontname}-fonts Version: 3.1 Release: 1%{?dist} License: GPLv2 with exceptions URL: https://sourceforge.net/projects/paktype/ Source0: http://citylan.dl.sourceforge.net/project/paktype/Individual-Release/PakType-Naskh-Basic-3.1.tar.gz Source1: %{fontconf}-sa.conf Source2: %{fontconf}-sindhi.conf Source3: %{fontconf}-farsi.conf Source4: %{fontconf}-urdu.conf Source5: %{fontconf}.conf BuildArch: noarch BuildRequires: fontpackages-devel Requires: %{name}-common Group: User Interface/X Summary: Fonts for Arabic, Farsi, Urdu and Sindhi from PakType %description %common_desc %package common Summary: Common files for paktype-naskh fonts Group: User Interface/X Requires: fontpackages-filesystem %description common %common_desc %package -n %{fontname}-farsi-fonts Summary: Font for Farsi from PakType Group: User Interface/X Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-farsi-fonts %common_desc This package provides a free Farsi truetype/opentype font %_font_pkg -n farsi -f %{fontconf}-farsi.conf PakTypeNaskhBasicFarsi.ttf %package -n %{fontname}-sa-fonts Summary: Fonts for Arabic, Farsi, Urdu and Sindhi from PakType Group: User Interface/X Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-sa-fonts %common_desc %_font_pkg -n sa -f %{fontconf}-sa.conf PakTypeNaskhBasicSA.ttf %package -n %{fontname}-sindhi-fonts Summary: Font for Sindhi from PakType Group: User Interface/X Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-sindhi-fonts %common_desc This package provides a free Sindhi truetype/opentype font %_font_pkg -n sindhi -f %{fontconf}-sindhi.conf PakTypeNaskhBasicSindhi.ttf %package -n %{fontname}-urdu-fonts Summary: Font for Urdu from PakType Group: User Interface/X Requires: %{name}-common = %{version}-%{release} %description -n %{fontname}-urdu-fonts %common_desc This package provides a free Urdu truetype/opentype font %_font_pkg -n urdu -f %{fontconf}-urdu.conf PakTypeNaskhBasicUrdu.ttf %_font_pkg -f %{fontconf}.conf PakTypeNaskhBasic.ttf %prep %setup -q -c rm -rf Code mv PakType\ Naskh\ Basic\ Farsi.ttf PakTypeNaskhBasicFarsi.ttf mv PakType\ Naskh\ Basic.ttf PakTypeNaskhBasic.ttf mv PakType\ Naskh\ Basic\ SA.ttf PakTypeNaskhBasicSA.ttf mv PakType\ Naskh\ Basic\ Urdu.ttf PakTypeNaskhBasicUrdu.ttf mv PakType\ Naskh\ Basic\ Sindhi.ttf PakTypeNaskhBasicSindhi.ttf mv Features/PakType\ Naskh\ Basic\ Farsi\ Features.pdf PakTypeNaskhBasicFarsiFeatures.pdf mv Features/PakType\ Naskh\ Basic\ Features.pdf PakTypeNaskhBasicFeatures.pdf mv Features/PakType\ Naskh\ Basic\ SA\ Features.pdf PakTypeNaskhBasicSAFeatures.pdf mv Features/PakType\ Naskh\ Basic\ Sindhi\ Features.pdf PakTypeNaskhBasicSindhiFeatures.pdf mv Features/PakType\ Naskh\ Basic\ Urdu\ Features.pdf PakTypeNaskhBasicUrduFeatures.pdf mv PakType\ Naskh\ Basic\ License.txt PakType_Naskh_Basic_License.txt %{__sed} -i 's/\r//' PakType_Naskh_Basic_License.txt chmod a-x PakTypeNaskhBasicFarsiFeatures.pdf PakType_Naskh_Basic_License.txt PakTypeNaskhBasicSindhiFeatures.pdf PakTypeNaskhBasicFeatures.pdf PakTypeNaskhBasicSAFeatures.pdf PakTypeNaskhBasicUrduFeatures.pdf %build echo "Nothing to do in Build." %install rm -rf $RPM_BUILD_ROOT install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir} install -m 0644 -p PakTypeNaskhBasicFarsi.ttf PakTypeNaskhBasic.ttf PakTypeNaskhBasicSA.ttf PakTypeNaskhBasicUrdu.ttf PakTypeNaskhBasicSindhi.ttf $RPM_BUILD_ROOT%{_fontdir} install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ %{buildroot}%{_fontconfig_confdir} install -m 0644 -p %{SOURCE1} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-sa.conf install -m 0644 -p %{SOURCE2} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-sindhi.conf install -m 0644 -p %{SOURCE3} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-farsi.conf install -m 0644 -p %{SOURCE4} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-urdu.conf install -m 0644 -p %{SOURCE5} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf for fconf in %{fontconf}-sa.conf \ %{fontconf}-sindhi.conf \ %{fontconf}-farsi.conf \ %{fontconf}-urdu.conf \ %{fontconf}.conf ; do ln -s %{_fontconfig_templatedir}/$fconf \ %{buildroot}%{_fontconfig_confdir}/$fconf done %files common %defattr(-,root,root,-) %dir %{_fontdir} %doc PakType_Naskh_Basic_License.txt PakTypeNaskhBasicFarsiFeatures.pdf PakTypeNaskhBasicFeatures.pdf PakTypeNaskhBasicSAFeatures.pdf PakTypeNaskhBasicUrduFeatures.pdf PakTypeNaskhBasicSindhiFeatures.pdf %changelog * Mon Sep 03 2012 Naveen Kumar - 3.1-1 - Upstream 3.1 release * Fri Jul 20 2012 Fedora Release Engineering - 3.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 3.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 3.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jun 21 2010 Naveen Kumar - 3.0-8 - add ur-in, ur-pk & pa-pk locale-specific overrides rule in 67-paktype-naskh-basic.conf - add ur-in, ur-pk & pa-pk locale-specific overrides rule in 67-paktype-naskh-basic-sa.conf - resolves bug #586789 * Thu May 6 2010 Naveen Kumar - 3.0-7 - remove binding="same" from all *.conf files * Fri Mar 12 2010 Naveen Kumar - 3.0-6 - Changes in summary and description * Fri Mar 12 2010 Naveen Kumar - 3.0-5 - changed the name of package from paktype-nashk-basic to paktype-naskh-basic * Fri Mar 9 2010 Naveen Kumar - 3.0-4 - removed redundant BuildRequires from specfile - removed unnecessary rm/rmdir's from specfile - Sane updates in docs. * Fri Mar 5 2010 Naveen Kumar - 3.0-3 - removed all cd's - changes w.r.t sed in prep section - added .conf file for PakTypeNaskhBasic.ttf - files section added for common - removed space from 67-*-sindhi.conf * Mon Feb 15 2010 Naveen Kumar - 3.0-2 - Re-packing with updated License information. - Changes in Spec file with new upstream source. - Added conf files * Mon Feb 15 2010 Naveen Kumar - 3.0-1 - Initial packaging for version-3.0