Explorar o código

switch to versioned tarball and cleanup packaging

Ralf S. Engelschall %!s(int64=21) %!d(string=hai) anos
pai
achega
ce66a49fc0
Modificáronse 1 ficheiros con 8 adicións e 9 borrados
  1. 8 9
      libffi/libffi.spec

+ 8 - 9
libffi/libffi.spec

@@ -33,12 +33,11 @@ Distribution: OpenPKG
 Class:        EVAL
 Group:        Language
 License:      LGPL
-Version:      20040705
-Release:      20040705
+Version:      20040920
+Release:      20040920
 
 #   list of sources
-Source0:      libffi.tar.gz
-Source1:      libffi.tar.gz.sh
+Source0:      ftp://ftp.openpkg.org/sources/CPY/VERSIONED/libffi/libffi-%{version}.tar.gz
 
 #   build information
 Prefix:       %{l_prefix}
@@ -75,16 +74,13 @@ AutoReqProv:  no
 
 %track
     prog libffi = {
-        disabled
-        comment   = "rse: no distribution URL, because tarball rolled manually from GCC CVS"
-        version   = 0
-        url       = ftp://ftp.example.com/
+        version   = %{version}
+        url       = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/libffi/
         regex     = libffi-(__VER__)\.tar\.gz
     }
 
 %prep
     %setup -q -c
-    #   %{SOURCE1} (make speclint happy)
 
 %build
     cd gcc/libffi
@@ -104,6 +100,9 @@ AutoReqProv:  no
     ( cd gcc/libffi
       %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
     ) || exit $?
+    mv  $RPM_BUILD_ROOT%{l_prefix}/lib/gcc/include/libffi/ffitarget.h \
+        $RPM_BUILD_ROOT%{l_prefix}/include/ffitarget.h
+    rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/gcc
     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}