packages: fonts-TTF-RedHat-liberation/fonts-TTF-RedHat-liberation.spec, fon...

arekm arekm at pld-linux.org
Wed Aug 24 22:15:15 CEST 2011


Author: arekm                        Date: Wed Aug 24 20:15:15 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
rel 2; use pe script from fedora

---- Files affected:
packages/fonts-TTF-RedHat-liberation:
   fonts-TTF-RedHat-liberation.spec (1.21 -> 1.22) , generate.pe (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/fonts-TTF-RedHat-liberation/fonts-TTF-RedHat-liberation.spec
diff -u packages/fonts-TTF-RedHat-liberation/fonts-TTF-RedHat-liberation.spec:1.21 packages/fonts-TTF-RedHat-liberation/fonts-TTF-RedHat-liberation.spec:1.22
--- packages/fonts-TTF-RedHat-liberation/fonts-TTF-RedHat-liberation.spec:1.21	Sat Jul 23 09:02:30 2011
+++ packages/fonts-TTF-RedHat-liberation/fonts-TTF-RedHat-liberation.spec	Wed Aug 24 22:15:10 2011
@@ -3,13 +3,14 @@
 Summary(pl.UTF-8):	Fonty zastępujące popularne fonty z Microsoft Windows
 Name:		fonts-TTF-RedHat-liberation
 Version:	1.07.0
-Release:	1
+Release:	2
 Epoch:		1
 License:	GPL v2 + exceptions
 Group:		Fonts
 Source0:	https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-%{version}.tar.gz
 # Source0-md5:	87ba9eea831ebc6fab9578abcebda9a5
 Source1:	%{name}.fontconfig
+Source2:	generate.pe
 URL:		https://fedorahosted.org/liberation-fonts/
 BuildRequires:	fontforge >= 20090923
 BuildRequires:	unzip
@@ -43,9 +44,11 @@
 
 %prep
 %setup -q -n liberation-fonts-%{version}
+install -m755 %{SOURCE2} .
 
 %build
-%{__make}
+rm -f *.ttf
+ ./generate.pe src/*.sfd
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -53,7 +56,7 @@
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
 
-cp -a liberation-*/*.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
+cp -a *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/60-liberation.conf
 ln -s ../conf.avail/60-liberation.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
 
@@ -69,10 +72,9 @@
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog License.txt README
-%{_ttffontsdir}/LiberationMono-*.ttf
-%{_ttffontsdir}/LiberationSans-*.ttf
-%{_ttffontsdir}/LiberationSansNarrow-*.ttf
-%{_ttffontsdir}/LiberationSerif-*.ttf
+%{_ttffontsdir}/LiberationMono*.ttf
+%{_ttffontsdir}/LiberationSans*.ttf
+%{_ttffontsdir}/LiberationSerif*.ttf
 %{_sysconfdir}/fonts/conf.avail/60-liberation.conf
 %{_sysconfdir}/fonts/conf.d/60-liberation.conf
 
@@ -82,6 +84,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2011/08/24 20:15:10  arekm
+rel 2; use pe script from fedora
+
 Revision 1.21  2011/07/23 07:02:30  arekm
 - up to 1.07.0
 

================================================================
Index: packages/fonts-TTF-RedHat-liberation/generate.pe
diff -u /dev/null packages/fonts-TTF-RedHat-liberation/generate.pe:1.1
--- /dev/null	Wed Aug 24 22:15:15 2011
+++ packages/fonts-TTF-RedHat-liberation/generate.pe	Wed Aug 24 22:15:10 2011
@@ -0,0 +1,19 @@
+#!/usr/bin/env fontforge
+
+# script file for FontForge for TTF generation
+# usage:
+#   mkdir TTFfiles
+#   chmod +x generate.pe
+#   ./generate.pe *.sfd
+
+if ($version < "20061220")
+  Error("Your version of FontForge is too old - 20061220 or newer is required");
+endif
+i = 1
+while ( i < $argc )
+  Open($argv[i], 1)
+  #Use gen_flags=Defualt fmflags value as -1  
+  gen_flags = -1 
+  Generate("" + $fontname + ".ttf", "", gen_flags)
+  i++
+endloop
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/fonts-TTF-RedHat-liberation/fonts-TTF-RedHat-liberation.spec?r1=1.21&r2=1.22&f=u



More information about the pld-cvs-commit mailing list