From 43b4cad60064647e801c6ed370dae56bcf92d746 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mar 19 2008 09:16:09 +0000 Subject: - Initial packaging --- diff --git a/.cvsignore b/.cvsignore index e69de29..14f893d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libarchive-2.4.14.tar.gz diff --git a/libarchive.spec b/libarchive.spec new file mode 100644 index 0000000..4da10d3 --- /dev/null +++ b/libarchive.spec @@ -0,0 +1,76 @@ +Name: libarchive +Version: 2.4.14 +Release: 1%{?dist} +Summary: A library for handling streaming archive formats + +Group: System Environment/Libraries +License: BSD +URL: http://people.freebsd.org/~kientzle/libarchive/ +Source0: http://people.freebsd.org/~kientzle/libarchive/src/libarchive-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: zlib-devel +BuildRequires: bzip2-devel +BuildRequires: sharutils + +%description +Libarchive is a programming library that can create and read several different +streaming archive formats, including most popular tar variants, several cpio +formats, and both BSD and GNU ar variants. It can also write shar archives and +read ISO9660 CDROM images and ZIP archives. + +%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 + + +%build +%configure --disable-static --disable-bsdtar +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +iconv -f latin1 -t utf-8 < NEWS > NEWS.utf8; cp NEWS.utf8 NEWS +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +find $RPM_BUILD_ROOT -name cpio.5 -exec rm -f {} ';' +find $RPM_BUILD_ROOT -name mtree.5 -exec rm -f {} ';' +find $RPM_BUILD_ROOT -name tar.5 -exec rm -f {} ';' + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc COPYING README NEWS +%{_libdir}/*.so.* + + +%files devel +%defattr(-,root,root,-) +%doc +%{_includedir}/* +%{_mandir}/*/* +%{_libdir}/*.so + + +%changelog +* Wed Mar 18 2008 Tomas Bzatek 2.4.14-1 +- Initial packaging diff --git a/sources b/sources index e69de29..537139c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e4aa4d5d50eae67acdf70af3ea13cb6b libarchive-2.4.14.tar.gz