1 |
%define major 2 |
2 |
%define libname %mklibname archive %{major} |
3 |
%define develname %mklibname archive -d |
4 |
|
5 |
Summary: Library for reading and writing streaming archives |
6 |
Name: libarchive |
7 |
Version: 2.8.4 |
8 |
Release: %mkrel 3 |
9 |
License: BSD |
10 |
Group: System/Libraries |
11 |
URL: http://code.google.com/p/libarchive/ |
12 |
Source0: http://libarchive.googlecode.com/files/%{name}-%{version}.tar.gz |
13 |
Patch0: libarchive-2.6.1-headers.patch |
14 |
BuildRequires: autoconf |
15 |
BuildRequires: automake |
16 |
BuildRequires: bison |
17 |
BuildRequires: bzip2-devel |
18 |
BuildRequires: libacl-devel |
19 |
BuildRequires: libattr-devel |
20 |
BuildRequires: e2fsprogs-devel |
21 |
BuildRequires: libtool |
22 |
BuildRequires: zlib-devel |
23 |
BuildRequires: lzma-devel |
24 |
BuildRequires: sharutils |
25 |
|
26 |
%description |
27 |
Libarchive is a programming library that can create and read several different |
28 |
streaming archive formats, including most popular tar variants and several cpio |
29 |
formats. It can also write shar archives and read ISO9660 CDROM images and ZIP |
30 |
archives. The bsdtar program is an implementation of tar(1) that is built on |
31 |
top of libarchive. It started as a test harness, but has grown and is now the |
32 |
standard system tar for FreeBSD 5 and 6. |
33 |
|
34 |
%package -n %{libname} |
35 |
Summary: Library for reading and writing streaming archives |
36 |
Group: System/Libraries |
37 |
|
38 |
%description -n %{libname} |
39 |
Libarchive is a programming library that can create and read several different |
40 |
streaming archive formats, including most popular tar variants and several cpio |
41 |
formats. It can also write shar archives and read ISO9660 CDROM images and ZIP |
42 |
archives. The bsdtar program is an implementation of tar(1) that is built on |
43 |
top of libarchive. It started as a test harness, but has grown and is now the |
44 |
standard system tar for FreeBSD 5 and 6. |
45 |
|
46 |
%package -n %{develname} |
47 |
Summary: Static library and header files for the libarchive library |
48 |
Group: Development/C |
49 |
Requires: %{libname} = %{version} |
50 |
Provides: %{libname}-devel = %{version} |
51 |
Obsoletes: %{libname}-devel |
52 |
Obsoletes: %{mklibname archive 1}-devel |
53 |
Provides: %{name}-devel = %{version} |
54 |
|
55 |
%description -n %{develname} |
56 |
Libarchive is a programming library that can create and read several different |
57 |
streaming archive formats, including most popular tar variants and several cpio |
58 |
formats. It can also write shar archives and read ISO9660 CDROM images and ZIP |
59 |
archives. The bsdtar program is an implementation of tar(1) that is built on |
60 |
top of libarchive. It started as a test harness, but has grown and is now the |
61 |
standard system tar for FreeBSD 5 and 6. |
62 |
|
63 |
This package contains header files for the libarchive library. |
64 |
|
65 |
%package -n bsdtar |
66 |
Summary: Full-featured tar replacement built on libarchive |
67 |
Group: Archiving/Backup |
68 |
|
69 |
%description -n bsdtar |
70 |
The bsdtar program is a full-featured tar replacement built on libarchive. |
71 |
|
72 |
%package -n bsdcpio |
73 |
Summary: Copy files to and from archives |
74 |
Group: Archiving/Backup |
75 |
|
76 |
%description -n bsdcpio |
77 |
bsdcpio copies files between archives and directories. This implementation can |
78 |
extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images and can |
79 |
create tar, pax, cpio, ar, and shar archives. |
80 |
|
81 |
%prep |
82 |
%setup -q |
83 |
%patch0 -p0 -b .headers |
84 |
|
85 |
%build |
86 |
autoreconf -fis |
87 |
|
88 |
%configure2_5x --disable-static \ |
89 |
--enable-bsdtar=shared \ |
90 |
--enable-bsdcpio=shared |
91 |
|
92 |
%make |
93 |
|
94 |
%install |
95 |
rm -rf %{buildroot} |
96 |
|
97 |
%makeinstall_std |
98 |
|
99 |
rm -f %{buildroot}%{_libdir}/*.la |
100 |
|
101 |
%clean |
102 |
rm -rf %{buildroot} |
103 |
|
104 |
%files -n bsdtar |
105 |
%defattr(-,root,root) |
106 |
%attr(0755,root,root) %{_bindir}/bsdtar |
107 |
%attr(0644,root,root) %{_mandir}/man1/bsdtar.1* |
108 |
|
109 |
%files -n bsdcpio |
110 |
%defattr(-,root,root) |
111 |
%attr(0755,root,root) %{_bindir}/bsdcpio |
112 |
%attr(0644,root,root) %{_mandir}/man1/bsdcpio.1* |
113 |
|
114 |
%files -n %{libname} |
115 |
%defattr(-,root,root) |
116 |
%doc NEWS README |
117 |
%attr(0755,root,root) %{_libdir}/lib*.so.%{major}* |
118 |
|
119 |
%files -n %{develname} |
120 |
%defattr(-,root,root) |
121 |
%attr(0755,root,root) %{_libdir}/*so |
122 |
%attr(0644,root,root) %{_libdir}/pkgconfig/libarchive.pc |
123 |
%attr(0644,root,root) %{_includedir}/*.h |
124 |
%attr(0644,root,root) %{_mandir}/man3/* |
125 |
%attr(0644,root,root) %{_mandir}/man5/* |