From c7bd01f721a2dcc83bec45c5c7bce9a11020f479 Mon Sep 17 00:00:00 2001 From: Naveen Kumar Date: Wed, 17 Mar 2010 06:51:58 +0000 Subject: [PATCH] - Changes in summary and description --- .cvsignore | 1 + 67-paktype-naskh-basic-farsi.conf | 21 ++++ 67-paktype-naskh-basic-sa.conf | 16 +++ 67-paktype-naskh-basic-sindhi.conf | 21 ++++ 67-paktype-naskh-basic-urdu.conf | 34 ++++++ 67-paktype-naskh-basic.conf | 16 +++ import.log | 1 + paktype-naskh-basic-fonts.spec | 182 +++++++++++++++++++++++++++++ sources | 1 + 9 files changed, 293 insertions(+) create mode 100644 67-paktype-naskh-basic-farsi.conf create mode 100644 67-paktype-naskh-basic-sa.conf create mode 100644 67-paktype-naskh-basic-sindhi.conf create mode 100644 67-paktype-naskh-basic-urdu.conf create mode 100644 67-paktype-naskh-basic.conf create mode 100644 import.log create mode 100644 paktype-naskh-basic-fonts.spec diff --git a/.cvsignore b/.cvsignore index e69de29..4b934c8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +NaskhBasic-3.0.tar.gz diff --git a/67-paktype-naskh-basic-farsi.conf b/67-paktype-naskh-basic-farsi.conf new file mode 100644 index 0000000..cd9d9f9 --- /dev/null +++ b/67-paktype-naskh-basic-farsi.conf @@ -0,0 +1,21 @@ + + + + + + fa-ir + + + sans-serif + + + PakType Nashk Basic Farsi + + + + PakType Nashk Basic Farsi + + sans-serif + + + diff --git a/67-paktype-naskh-basic-sa.conf b/67-paktype-naskh-basic-sa.conf new file mode 100644 index 0000000..6e7e644 --- /dev/null +++ b/67-paktype-naskh-basic-sa.conf @@ -0,0 +1,16 @@ + + + + + sans-serif + + PakType Naskh Basic SA + + + + PakType Naskh Basic SA + + sans-serif + + + diff --git a/67-paktype-naskh-basic-sindhi.conf b/67-paktype-naskh-basic-sindhi.conf new file mode 100644 index 0000000..0690669 --- /dev/null +++ b/67-paktype-naskh-basic-sindhi.conf @@ -0,0 +1,21 @@ + + + + + + sd + + + sans-serif + + + PakType Nashk Basic Sindhi + + + + PakType Nashk Basic Sindhi + + sans-serif + + + diff --git a/67-paktype-naskh-basic-urdu.conf b/67-paktype-naskh-basic-urdu.conf new file mode 100644 index 0000000..415b22d --- /dev/null +++ b/67-paktype-naskh-basic-urdu.conf @@ -0,0 +1,34 @@ + + + + + + ur-in + + + sans-serif + + + PakType Nashk Basic Urdu + + + + + ur-pk + + + sans-serif + + + PakType Nashk Basic Urdu + + + + + + PakType Nashk Basic Urdu + + sans-serif + + + diff --git a/67-paktype-naskh-basic.conf b/67-paktype-naskh-basic.conf new file mode 100644 index 0000000..99d7c9e --- /dev/null +++ b/67-paktype-naskh-basic.conf @@ -0,0 +1,16 @@ + + + + + sans-serif + + PakType Naskh Basic + + + + PakType Naskh Basic + + sans-serif + + + diff --git a/import.log b/import.log new file mode 100644 index 0000000..257e25a --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +paktype-naskh-basic-fonts-3_0-6_fc12:HEAD:paktype-naskh-basic-fonts-3.0-6.fc12.src.rpm:1268808543 diff --git a/paktype-naskh-basic-fonts.spec b/paktype-naskh-basic-fonts.spec new file mode 100644 index 0000000..53ec6c6 --- /dev/null +++ b/paktype-naskh-basic-fonts.spec @@ -0,0 +1,182 @@ +%define fontname paktype-naskh-basic +%global fontconf 67-%{fontname} +%define fontdir %{_datadir}/fonts/%{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.0 +Release: 6%{?dist} +License: GPLv2 with exceptions +URL: https://sourceforge.net/projects/paktype/ +Source0: http://downloads.sourceforge.net/project/paktype/NaskhBasic-3.0.tar.gz +Source1: %{fontconf}-sa.conf +Source2: %{fontconf}-sindhi.conf +Source3: %{fontconf}-farsi.conf +Source4: %{fontconf}-urdu.conf +Source5: %{fontconf}.conf +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +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 +mv NaskhBasic-3.0/* . +mv Ready\ to\ use\ fonts/* . +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 License\ files/* . +mv PakType\ Naskh\ Basic\ Comparison\ Chart.htm PakType_Naskh_Basic_Comparison_Chart.htm +mv PakType\ Naskh\ Basic\ Comparison\ Chart.pdf PakType_Naskh_Basic_Comparison_Chart.pdf +%{__sed} -i 's/\r//' PakType_Naskh_Basic_Comparison_Chart.htm +mv PakType\ Naskh\ Basic\ License.txt PakType_Naskh_Basic_License.txt +%{__sed} -i 's/\r//' PakType_Naskh_Basic_License.txt +chmod a-x PakType_Naskh_Basic_Comparison_Chart.htm PakType_Naskh_Basic_License.txt PakType_Naskh_Basic_Comparison_Chart.pdf +for txt in Readme.txt ; do + fold -s $txt > $txt.new + sed -i 's/\x92//g' $txt.new + sed -i 's/\x93//g' $txt.new + sed -i 's/\x94//g' $txt.new + sed -i 's/\x96//g' $txt.new + sed -i 's/\r//' $txt.new + touch -r $txt $txt.new + mv $txt.new $txt +done + +%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 + + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files common +%defattr(-,root,root,-) +%dir %{fontdir} +%doc PakType_Naskh_Basic_Comparison_Chart.htm PakType_Naskh_Basic_License.txt PakType_Naskh_Basic_Comparison_Chart.pdf Readme.txt + +%changelog +* 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 diff --git a/sources b/sources index e69de29..3d7c403 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +407b095967ceecc4a342355295dd8c83 NaskhBasic-3.0.tar.gz