# # Conditional build: %bcond_without static_libs # don't build static libraries # Summary: Library to create and read several different archive formats Summary(pl.UTF-8): Biblioteka do tworzenia i odczytu różnych formatów archiwów Name: libarchive Version: 2.8.4 Release: 2 License: BSD Group: Libraries Source0: http://libarchive.googlecode.com/files/%{name}-%{version}.tar.gz # Source0-md5: 83b237a542f27969a8d68ac217dc3796 Patch0: %{name}-man_progname.patch URL: http://people.freebsd.org/~kientzle/libarchive/ BuildRequires: acl-devel BuildRequires: attr-devel #BuildRequires: autoconf #BuildRequires: automake BuildRequires: bzip2-devel # for BuildRequires: e2fsprogs-devel BuildRequires: libmd5-devel #BuildRequires: libtool BuildRequires: libxml2-devel BuildRequires: openssl-devel BuildRequires: xz-devel BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Libarchive is a programming library that can create and read several different streaming archive formats, including most popular TAR variants and several CPIO formats. It can also write SHAR archives. %description -l pl.UTF-8 Libarchive jest biblioteką służacą to tworzenia i odczytu wielu różnych strumieniowych formatów archiwów, włączając w to popularne odmiany TAR oraz wiele formatów CPIO. Biblioteka ta potrafi także zapisywać archiwa SHAR. %package devel Summary: Header files for libarchive library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libarchive Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: acl-devel Requires: attr-devel Requires: bzip2-devel Requires: libxml2-devel Requires: openssl-devel Requires: xz-devel Requires: zlib-devel %description devel Header files for libarchive library. %description devel -l pl.UTF-8 Pliki nagłówkowe biblioteki libarchive. %package static Summary: Static libarchive library Summary(pl.UTF-8): Statyczna biblioteka libarchive Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static libarchive library. %description static -l pl.UTF-8 Statyczna biblioteka libarchive. %package -n bsdcpio Summary: bsdcpio - cpio(1) implementation based on libarchive Summary(pl.UTF-8): bsdcpio - implementacja programu cpio(1) oparta na libarchive Group: Applications/Archiving Requires: %{name} = %{version}-%{release} %description -n bsdcpio bsdcpio - cpio(1) implementation based on libarchive. %description -n bsdcpio -l pl.UTF-8 bsdcpio - implementacja programu cpio(1), oparta na libarchive. %package -n bsdtar Summary: bsdtar - tar(1) implementation based on libarchive Summary(pl.UTF-8): bsdtar - implementacja programu tar(1) oparta na libarchive Group: Applications/Archiving Requires: %{name} = %{version}-%{release} %description -n bsdtar bsdtar - tar(1) implementation based on libarchive. %description -n bsdtar -l pl.UTF-8 bsdtar - implementacja programu tar(1), oparta na libarchive. %prep %setup -q %patch0 -p1 %build #%%{__libtoolize} #%%{__aclocal} #%%{__autoconf} #%%{__autoheader} #%%{__automake} %configure \ --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no} %{__make} -j1 %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libarchive.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libarchive.so.2 %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libarchive.so %{_libdir}/libarchive.la %{_includedir}/*.h %{_mandir}/man3/*.3* %{_mandir}/man5/*.5* %{_pkgconfigdir}/libarchive.pc %if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libarchive.a %endif %files -n bsdcpio %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/bsdcpio %{_mandir}/man1/bsdcpio.1* %files -n bsdtar %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/bsdtar %{_mandir}/man1/bsdtar.1*