SPECS: libffi.spec - updated to 3.0.7, separate from gcc once again - epoch...

qboosh qboosh at pld-linux.org
Wed May 28 22:45:31 CEST 2008


Author: qboosh                       Date: Wed May 28 20:45:31 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated to 3.0.7, separate from gcc once again
- epoch 7
- removed obsolete pld,acam patches, added info patch

---- Files affected:
SPECS:
   libffi.spec (1.15 -> 1.16) 

---- Diffs:

================================================================
Index: SPECS/libffi.spec
diff -u SPECS/libffi.spec:1.15 SPECS/libffi.spec:1.16
--- SPECS/libffi.spec:1.15	Mon Jul 23 19:29:50 2007
+++ SPECS/libffi.spec	Wed May 28 22:45:26 2008
@@ -6,17 +6,16 @@
 Summary:	Foreign Function Interface library
 Summary(pl.UTF-8):	Biblioteka Foreign Function Interface
 Name:		libffi
-Version:	1.20
-Release:	4
-License:	distributable
+Version:	3.0.5
+Release:	1
+Epoch:		7
+License:	MIT-like
 Group:		Libraries
-Vendor:		Cygnus
-Source0:	ftp://sources.redhat.com/pub/libffi/%{name}-%{version}.tar.gz
-# Source0-md5:	e4c9c435ebdfcba6fa493fb1abce2ddc
-Patch0:		%{name}-pld.patch
-Patch1:		%{name}-acam.patch
+Source0:	ftp://sourceware.org/pub/libffi/%{name}-%{version}.tar.gz
+# Source0-md5:	29544f542140da929221805e332407b9
+Patch0:		%{name}-info.patch
 URL:		http://sources.redhat.com/libffi/
-BuildRequires:	autoconf
+BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake
 BuildRequires:	libtool
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -52,7 +51,7 @@
 Summary:	libffi development package
 Summary(pl.UTF-8):	libffi - część dla programistów
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
+Requires:	%{name} = %{epoch}:%{version}-%{release}
 
 %description devel
 Header files for libffi.
@@ -64,7 +63,7 @@
 Summary:	libffi static library
 Summary(pl.UTF-8):	Statyczna biblioteka libffi
 Group:		Development/Libraries
-Requires:	%{name}-devel = %{version}-%{release}
+Requires:	%{name}-devel = %{epoch}:%{version}-%{release}
 
 %description static
 Static version of libffi.
@@ -75,26 +74,12 @@
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
-
-# automake hell: patch below hundred lines requires files renaming
-cd src/mips
-mv -f {,mips_}ffi.c
-mv -f {,mips_gcc_}o32.S
-mv -f {,mips_gcc_}n32.S
-mv -f {,mips_sgi_}o32.s
-mv -f {,mips_sgi_}n32.s
-for d in alpha arm m68k powerpc sparc x86 ; do
-	cd ../$d
-	for f in * ; do
-		mv -f $f ${d}_$f
-	done
-done
 
 %build
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
+%{__autoheader}
 %{__automake}
 %configure \
 	%{!?with_static_libs:--disable-static}
@@ -104,7 +89,8 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -112,21 +98,31 @@
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
+%post	devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun	devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
 %files
 %defattr(644,root,root,755)
-%doc README ChangeLog LICENSE
-%attr(755,root,root) %{_libdir}/libffi.so.*.*
+%doc ChangeLog* LICENSE README
+%attr(755,root,root) %{_libdir}/libffi.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libffi.so.5
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libffi.so
-%{_libdir}/*.la
-%{_includedir}/*
+%{_libdir}/libffi.la
+%{_libdir}/libffi-%{version}
+%{_pkgconfigdir}/libffi.pc
+%{_mandir}/man3/ffi*.3*
+%{_infodir}/libffi.info*
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/*.a
+%{_libdir}/libffi.a
 %endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -135,6 +131,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16  2008-05-28 20:45:26  qboosh
+- updated to 3.0.7, separate from gcc once again
+- epoch 7
+- removed obsolete pld,acam patches, added info patch
+
 Revision 1.15  2007-07-23 17:29:50  witekfl
 - added missing #
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libffi.spec?r1=1.15&r2=1.16&f=u



More information about the pld-cvs-commit mailing list