Name: libtar Version: 1.2.11 Release: 5mamba Summary: C library for manipulating POSIX tar files Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://www.feep.net/libtar/ Source: 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 Patch1: %{name}-1.2.11-missing-protos.patch Patch2: %{name}-1.2.11-fix-memleak.patch Patch3: %{name}-1.2.11-mem-deref.patch License: BSD BuildRequires: zlib-devel BuildRequires: libtool BuildRoot: %{_tmppath}/%{name}-%{version}-root %description libtar is a C library for manipulating POSIX tar files. It handles adding and extracting files to/from a tar archive. %package devel Summary: Header files, libraries and development documentation for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %prep %setup -q %patch0 -p1 -z .debian %patch1 -p1 %patch2 -p1 %patch3 -p1 %define ltversion %(echo %{version} | tr '.' ':') sed -i 's/-rpath $(libdir)/-rpath $(libdir) -version-number %{ltversion}/' lib/Makefile.in cd autoconf sed '/^m4_include/d;s/ m4_include/ m4][_include/g' aclocal.m4 >psg.m4 rm acsite.m4 aclocal.m4 cd . %build cp /usr/share/libtool/config/config.sub autoconf libtoolize --copy aclocal -I autoconf autoconf %configure --enable-shared --disable-static #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 %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall chmod +x %{buildroot}%{_libdir}/libtar.so.%{version} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-, root, root) %{_bindir}/libtar %{_libdir}/libtar.so.* %doc ChangeLog README TODO %files devel %defattr(-, root, root) %{_includedir}/libtar.h %{_includedir}/libtar_listhash.h %{_libdir}/libtar.la %{_libdir}/libtar.so %{_mandir}/man3/* %changelog * Sun Jul 11 2010 Davide Madrisan 1.2.11-5mamba - build and security fixes * Tue Jun 12 2007 Aleph0 1.2.11-4mamba - new package mantainer - move manpages to devel package - add a patch from Debian which build a shared library * Wed Jun 29 2005 Davide Madrisan 1.2.11-3qilnx - fixed package group * Tue Jun 28 2005 Alessandro Ramazzina 1.2.11-2qilnx - rebuild and moved from devel-contrib repository to devel repository * Tue Jun 28 2005 Matteo Bernasconi 1.2.11-1qilnx - first build