3 %bcond_without static_libs # don't build static libraries
5 Summary: Library to create and read several different archive formats
6 Summary(pl.UTF-8): Biblioteka do tworzenia i odczytu różnych formatów archiwów
12 Source0: http://people.freebsd.org/~kientzle/libarchive/src/%{name}-%{version}.tar.gz
13 # Source0-md5: 954ed005e64c368d2ce890581b52b6fb
14 Patch0: %{name}-man_progname.patch
15 URL: http://people.freebsd.org/~kientzle/libarchive/
16 BuildRequires: acl-devel
17 BuildRequires: attr-devel
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: bzip2-devel
21 # for <ext2fs/ext2_fs.h>
22 BuildRequires: e2fsprogs-devel
23 BuildRequires: libtool
24 BuildRequires: zlib-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Libarchive is a programming library that can create and read several
29 different streaming archive formats, including most popular TAR
30 variants and several CPIO formats. It can also write SHAR archives.
32 %description -l pl.UTF-8
33 Libarchive jest biblioteką służacą to tworzenia i odczytu wielu
34 różnych strumieniowych formatów archiwów, włączając w to popularne
35 odmiany TAR oraz wiele formatów CPIO. Biblioteka ta potrafi także
36 zapisywać archiwa SHAR.
39 Summary: Header files for libarchive library
40 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libarchive
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
49 Header files for libarchive library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki libarchive.
55 Summary: Static libarchive library
56 Summary(pl.UTF-8): Statyczna biblioteka libarchive
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static libarchive library.
63 %description static -l pl.UTF-8
64 Statyczna biblioteka libarchive.
67 Summary: bsdtar - tar(1) implementation based on libarchive
68 Summary(pl.UTF-8): bsdtar - implementacja programu tar(1) oparta na libarchive
69 Group: Applications/Archiving
70 Requires: %{name} = %{version}-%{release}
72 %description -n bsdtar
73 bsdtar - tar(1) implementation based on libarchive.
75 %description -n bsdtar -l pl.UTF-8
76 bsdtar - implementacja programu tar(1), oparta na libarchive.
89 --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no}
93 rm -rf $RPM_BUILD_ROOT
95 DESTDIR=$RPM_BUILD_ROOT
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libarchive.so.*.*.*
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/libarchive.so
110 %{_libdir}/libarchive.la
115 %if %{with static_libs}
117 %defattr(644,root,root,755)
118 %{_libdir}/libarchive.a
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_bindir}/bsdtar
124 %{_mandir}/man1/bsdtar.1*