Author: pravins
Update of /cvs/pkgs/rpms/paktype-ajrak-fonts/devel In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2570
Modified Files: .cvsignore paktype-ajrak-fonts.spec sources Added Files: 67-paktype-ajrak.conf Removed Files: License.txt Log Message: * Wed Mar 03 2010 Pravin Satpute psatpute@redhat.com - 2.0-2 - upstrean new release with license fix, bug fix 567299 - added .conf as well
--- NEW FILE 67-paktype-ajrak.conf --- <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <alias> <family>sans-serif</family> <prefer> <family>PakType Ajrak</family> </prefer> </alias> <alias> <family>PakType Ajrak</family> <default> <family>sans-serfi</family> </default> </alias> </fontconfig>
Index: .cvsignore =================================================================== RCS file: /cvs/pkgs/rpms/paktype-ajrak-fonts/devel/.cvsignore,v retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- .cvsignore 8 Feb 2010 04:47:45 -0000 1.2 +++ .cvsignore 3 Mar 2010 16:38:00 -0000 1.3 @@ -1 +1,2 @@ PakType_Ajrak.ttf +Ajrak-2.0.tar.gz
Index: paktype-ajrak-fonts.spec =================================================================== RCS file: /cvs/pkgs/rpms/paktype-ajrak-fonts/devel/paktype-ajrak-fonts.spec,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- paktype-ajrak-fonts.spec 8 Feb 2010 04:47:45 -0000 1.1 +++ paktype-ajrak-fonts.spec 3 Mar 2010 16:38:00 -0000 1.2 @@ -1,19 +1,20 @@ %define fontname paktype-ajrak +%define fontconf 67-paktype %define fontdir %{_datadir}/fonts/%{fontname}
-Name: %{fontname}-fonts +Name: %{fontname}-fonts Version: 2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Fonts for Arabic from PakType
-Group: User Interface/X +Group: User Interface/X License: GPLv2 with exceptions -URL: https://sourceforge.net/projects/paktype/ -Source0: http://downloads.sourceforge.net/project/paktype/PakType%20Ajrak/2.0/PakType... -Source1: https://paktype.svn.sourceforge.net/svnroot/paktype/Fonts/Ajrak/License.txt +URL: https://sourceforge.net/projects/paktype/ +Source0: http://downloads.sourceforge.net/project/paktype/Ajrak-2.0.tar.gz +Source1: %{fontconf}-ajrak.conf BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: fontpackages-devel +BuildRequires: fontpackages-devel Requires: fontpackages-filesystem
%description @@ -21,11 +22,20 @@ The paktype-ajrak-fonts package contains Arabic from the PakType by Lateef Sagar.
%prep -%setup -q -T -c -cp -p %{SOURCE1} . +%setup -q -c +rm -rf Ajrak-2.0/Project\ files/ +# get rid of the white space (' ') +mv Ajrak-2.0/Ready*/PakType\ Ajrak.ttf PakType_Ajrak.ttf +mv Ajrak-2.0/License\ file/PakType\ Ajrak\ License.txt PakType_Ajrak_License.txt
-for txt in License.txt ; do +%{__sed} -i 's/\r//' PakType_Ajrak_License.txt + +for txt in Ajrak-2.0/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 @@ -37,16 +47,29 @@ echo "Nothing to do in Build." %install rm -rf $RPM_BUILD_ROOT install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir} -install -m 0644 -p %{SOURCE0} $RPM_BUILD_ROOT%{_fontdir} +install -m 0644 -p PakType_Ajrak.ttf $RPM_BUILD_ROOT%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-ajrak.conf + +ln -s %{_fontconfig_templatedir}/%{fontconf}-ajrak.conf \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf}-ajrak.conf
%clean rm -rf $RPM_BUILD_ROOT
-%_font_pkg PakType_Ajrak.ttf +%_font_pkg -f %{fontconf}-ajrak.conf PakType_Ajrak.ttf
-%doc License.txt +%doc PakType_Ajrak_License.txt Ajrak-2.0/Readme.txt
%changelog +* Wed Mar 03 2010 Pravin Satpute psatpute@redhat.com - 2.0-2 +- upstrean new release with license fix, bug fix 567299 +- added .conf as well + * Fri Feb 05 2010 Pravin Satpute psatpute@redhat.com - 2.0-1 - Initial build
Index: sources =================================================================== RCS file: /cvs/pkgs/rpms/paktype-ajrak-fonts/devel/sources,v retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- sources 8 Feb 2010 04:47:45 -0000 1.2 +++ sources 3 Mar 2010 16:38:00 -0000 1.3 @@ -1 +1 @@ -da8f92762df0af003b069789650e638c PakType_Ajrak.ttf +afa131f4bc625c91e08e6c99487af9ab Ajrak-2.0.tar.gz
--- License.txt DELETED ---