107 lines
3.2 KiB
RPMSpec
107 lines
3.2 KiB
RPMSpec
|
Name: libtar
|
||
|
Version: 1.2.20
|
||
|
Release: 1mamba
|
||
|
Summary: C library for manipulating POSIX tar files
|
||
|
Group: System/Libraries
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Aleph0 <aleph0@openmamba.org>
|
||
|
URL: http://www.feep.net/libtar/
|
||
|
Source: git://repo.or.cz/libtar.git/v%{version}/libtar-%{version}.tar.bz2
|
||
|
#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
|
||
|
autoreconf -f -i
|
||
|
#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.0.0.0
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -p /sbin/ldconfig
|
||
|
%postun -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-, root, root)
|
||
|
%{_libdir}/libtar.so.*
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-, root, root)
|
||
|
%{_bindir}/libtar
|
||
|
%{_includedir}/libtar.h
|
||
|
%{_includedir}/libtar_listhash.h
|
||
|
%{_libdir}/libtar.la
|
||
|
%{_libdir}/libtar.so
|
||
|
%{_mandir}/man3/*
|
||
|
%doc ChangeLog README TODO
|
||
|
|
||
|
%changelog
|
||
|
* Tue Oct 15 2013 Automatic Build System <autodist@mambasoft.it> 1.2.20-1mamba
|
||
|
- update to 1.2.20
|
||
|
|
||
|
* Sun Jul 11 2010 Davide Madrisan <davide.madrisan@gmail.com> 1.2.11-5mamba
|
||
|
- build and security fixes
|
||
|
|
||
|
* Tue Jun 12 2007 Aleph0 <aleph0@openmamba.org> 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 <davide.madrisan@qilinux.it> 1.2.11-3qilnx
|
||
|
- fixed package group
|
||
|
|
||
|
* Tue Jun 28 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.2.11-2qilnx
|
||
|
- rebuild and moved from devel-contrib repository to devel repository
|
||
|
|
||
|
* Tue Jun 28 2005 Matteo Bernasconi <voyagernm@virgilio.it> 1.2.11-1qilnx
|
||
|
- first build
|