Ralf S. Engelschall 19 роки тому
батько
коміт
be1a7bdefc
1 змінених файлів з 27 додано та 6 видалено
  1. 27 6
      lcdf-typetools/lcdf-typetools.spec

+ 27 - 6
lcdf-typetools/lcdf-typetools.spec

@@ -26,6 +26,7 @@
 %define       V_typetools   2.38
 %define       V_t1utils     1.32
 %define       V_autofont    0.94
+%define       V_fontools    20051003
 
 #   package information
 Name:         lcdf-typetools
@@ -44,22 +45,23 @@ Release:      20060622
 Source0:      http://www.lcdf.org/type/lcdf-typetools-%{V_typetools}.tar.gz
 Source1:      http://www.lcdf.org/type/t1utils-%{V_t1utils}.tar.gz
 Source2:      http://www.lcdf.org/type/Autofont-%{V_autofont}.tar.gz
+Source3:      ftp://ftp.openpkg.org/sources/CPY/VERSIONED/fontools/fontools-%{V_fontools}.zip
 
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20040130, perl, perl-openpkg, gcc
+BuildPreReq:  OpenPKG, openpkg >= 20040130, perl, perl-openpkg, gcc, infozip
 PreReq:       OpenPKG, openpkg >= 20040130, perl
 AutoReq:      no
 AutoReqProv:  no
 
 %description
     The LCDF Typetools package contains several command-line programs
-    for manipulating PostScript Type 1 and PostScript-flavored
-    OpenType fonts. It also contains additional command-line tools for
-    dealing with Type 1 fonts from a revision of I. Lee Hetheringtons
-    beloved t1utils. Finally, it contains Autofont, a set of tools for
-    automating the font generation for TeX.
+    for manipulating PostScript Type 1 and PostScript-flavored OpenType
+    fonts. It also contains additional command-line tools for dealing
+    with Type 1 fonts from a revision of I. Lee Hetheringtons beloved
+    t1utils. Finally, it contains Autofont and FonTools, a set of tools
+    for automating the font generation for TeX.
 
 %track
     prog lcdf-typetools:typetools = {
@@ -77,11 +79,17 @@ AutoReqProv:  no
         url       = http://www.lcdf.org/type/
         regex     = Autofont-(__VER__)\.tar\.gz
     }
+    prog lcdf-typetools:fontools = {
+        version   = %{V_fontools}
+        url       = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/fontools/
+        regex     = fontools-(__VER__)\.zip
+    }
 
 %prep
     %setup -q -c
     %setup -q -T -D -a1
     %setup -q -T -D -a2
+    %{l_prefix}/bin/unzip -x %{SOURCE3}
 
 %build
     #   build LCDF TypeTools
@@ -133,6 +141,19 @@ AutoReqProv:  no
       %{l_prefix}/bin/perl-openpkg install
     ) || exit $?
 
+    #   install FonTools
+    ( cd fontools
+      %{l_shtool} install -c -m 755 \
+          -e 's;/usr/bin/perl;%{l_prefix}/bin/perl;' \
+          bin/* $RPM_BUILD_ROOT%{l_prefix}/bin/
+      %{l_shtool} install -c -m 644 \
+          doc/*.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
+      %{l_shtool} mkdir -f -p -m 755 \
+          $RPM_BUILD_ROOT%{l_prefix}/share/lcdf-typetools/fontools
+      %{l_shtool} install -c -m 644 \
+          share/* $RPM_BUILD_ROOT%{l_prefix}/share/lcdf-typetools/fontools/
+    ) || exit $?
+
     #   post-adjust installation area
     %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true