rpms/libtar/devel .cvsignore, 1.2, 1.3 libtar.spec, 1.9, 1.10 sources, 1.2, 1.3

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Sun Jul 23 18:22:53 UTC 2006


Author: jwrdegoede

Update of /cvs/extras/rpms/libtar/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32387

Modified Files:
	.cvsignore libtar.spec sources 
Log Message:
* Sun Jul 23 2006 Hans de Goede <j.w.r.degoede at hhs.nl> 1.2.11-7
- Taking over as maintainer since Anvil has other priorities
- Add a bunch of patches from Debian, which build a .so instead of a .a
  and fix a bunch of memory leaks.
- Reinstate a proper devel package as we now build a .so



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/libtar/devel/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore	8 Nov 2004 04:47:49 -0000	1.2
+++ .cvsignore	23 Jul 2006 18:22:53 -0000	1.3
@@ -1 +1,2 @@
 libtar-1.2.11.tar.gz
+libtar_1.2.11-4.diff.gz


Index: libtar.spec
===================================================================
RCS file: /cvs/extras/rpms/libtar/devel/libtar.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- libtar.spec	16 Mar 2006 18:14:16 -0000	1.9
+++ libtar.spec	23 Jul 2006 18:22:53 -0000	1.10
@@ -1,16 +1,14 @@
-Summary:	Tar file manipulation API
-Name:		libtar
-Version:	1.2.11
-Release: 	6%{?dist}
-
-License:	BSD
-Group:		System Environment/Libraries
-URL:		http://www.feep.net/libtar/
-Source0:	ftp://ftp.feep.net/pub/software/libtar/libtar-%{version}.tar.gz
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
-Provides:	libtar-devel = %{name}-%{version}
-BuildRequires:	zlib-devel
-
+Summary:        Tar file manipulation API
+Name:           libtar
+Version:        1.2.11
+Release:        7%{?dist}
+License:        BSD
+Group:          System Environment/Libraries
+URL:            http://www.feep.net/libtar/
+Source0:        ftp://ftp.feep.net/pub/software/libtar/libtar-%{version}.tar.gz
+Patch0:         http://ftp.debian.org/debian/pool/main/libt/libtar/libtar_1.2.11-4.diff.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+BuildRequires:  zlib-devel libtool
 
 %description
 libtar is a C library for manipulating tar archives. It supports both
@@ -18,35 +16,71 @@
 extensions.
 
 
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
 %prep
 %setup -q
+%patch0 -p1 -z .deb
+# set correct version for .so build
+%define ltversion %(echo %{version} | tr '.' ':')
+sed -i 's/-rpath $(libdir)/-rpath $(libdir) -version-number %{ltversion}/' \
+  lib/Makefile.in
 
 
 %build
-%configure
+cp /usr/share/libtool/config.sub /usr/share/libtool/ltmain.sh autoconf
+%configure --disable-static
+# Don't use rpath!
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 make %{?_smp_mflags}
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%makeinstall
+make install DESTDIR=$RPM_BUILD_ROOT
+# Without this we get no debuginfo and stripping
+chmod +x $RPM_BUILD_ROOT%{_libdir}/libtar.so.%{version}
+rm $RPM_BUILD_ROOT%{_libdir}/*.la
 
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+
 %files
 %defattr(-,root,root,-)
 %doc COPYRIGHT TODO README ChangeLog*
 %{_bindir}/%{name}
+%{_libdir}/lib*.so.*
+
+%files devel
+%defattr(-,root,root,-)
 %{_includedir}/libtar.h
 %{_includedir}/libtar_listhash.h
-%{_libdir}/lib*.a
+%{_libdir}/lib*.so
 %{_mandir}/man3/*.3*
 
 
 %changelog
+* Sun Jul 23 2006 Hans de Goede <j.w.r.degoede at hhs.nl> 1.2.11-7
+- Taking over as maintainer since Anvil has other priorities
+- Add a bunch of patches from Debian, which build a .so instead of a .a
+  and fix a bunch of memory leaks.
+- Reinstate a proper devel package as we now build a .so
+
 * Thu Mar 16 2006 Dams <anvil[AT]livna.org> - 1.2.11-6.fc5
 - Modified URL and added one in Source0
 


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/libtar/devel/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources	8 Nov 2004 04:47:49 -0000	1.2
+++ sources	23 Jul 2006 18:22:53 -0000	1.3
@@ -1 +1,2 @@
 604238e8734ce6e25347a58c4f1a1d7e  libtar-1.2.11.tar.gz
+8149a09f4baef9a879ef5f74dab1c32e  libtar_1.2.11-4.diff.gz




More information about the fedora-extras-commits mailing list