1 |
ahmad |
6181 |
%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 2 |
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 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
26 |
|
|
|
27 |
|
|
%description |
28 |
|
|
Libarchive is a programming library that can create and read several different |
29 |
|
|
streaming archive formats, including most popular tar variants and several cpio |
30 |
|
|
formats. It can also write shar archives and read ISO9660 CDROM images and ZIP |
31 |
|
|
archives. The bsdtar program is an implementation of tar(1) that is built on |
32 |
|
|
top of libarchive. It started as a test harness, but has grown and is now the |
33 |
|
|
standard system tar for FreeBSD 5 and 6. |
34 |
|
|
|
35 |
|
|
%package -n %{libname} |
36 |
|
|
Summary: Library for reading and writing streaming archives |
37 |
|
|
Group: System/Libraries |
38 |
|
|
|
39 |
|
|
%description -n %{libname} |
40 |
|
|
Libarchive is a programming library that can create and read several different |
41 |
|
|
streaming archive formats, including most popular tar variants and several cpio |
42 |
|
|
formats. It can also write shar archives and read ISO9660 CDROM images and ZIP |
43 |
|
|
archives. The bsdtar program is an implementation of tar(1) that is built on |
44 |
|
|
top of libarchive. It started as a test harness, but has grown and is now the |
45 |
|
|
standard system tar for FreeBSD 5 and 6. |
46 |
|
|
|
47 |
|
|
%package -n %{develname} |
48 |
|
|
Summary: Static library and header files for the libarchive library |
49 |
|
|
Group: Development/C |
50 |
|
|
Requires: %{libname} = %{version} |
51 |
|
|
Provides: %{libname}-devel = %{version} |
52 |
|
|
Obsoletes: %{libname}-devel |
53 |
|
|
Obsoletes: %{mklibname archive 1}-devel |
54 |
|
|
Provides: %{name}-devel = %{version} |
55 |
|
|
|
56 |
|
|
%description -n %{develname} |
57 |
|
|
Libarchive is a programming library that can create and read several different |
58 |
|
|
streaming archive formats, including most popular tar variants and several cpio |
59 |
|
|
formats. It can also write shar archives and read ISO9660 CDROM images and ZIP |
60 |
|
|
archives. The bsdtar program is an implementation of tar(1) that is built on |
61 |
|
|
top of libarchive. It started as a test harness, but has grown and is now the |
62 |
|
|
standard system tar for FreeBSD 5 and 6. |
63 |
|
|
|
64 |
|
|
This package contains header files for the libarchive library. |
65 |
|
|
|
66 |
|
|
%package -n bsdtar |
67 |
|
|
Summary: Full-featured tar replacement built on libarchive |
68 |
|
|
Group: Archiving/Backup |
69 |
|
|
|
70 |
|
|
%description -n bsdtar |
71 |
|
|
The bsdtar program is a full-featured tar replacement built on libarchive. |
72 |
|
|
|
73 |
|
|
%package -n bsdcpio |
74 |
|
|
Summary: Copy files to and from archives |
75 |
|
|
Group: Archiving/Backup |
76 |
|
|
|
77 |
|
|
%description -n bsdcpio |
78 |
|
|
bsdcpio copies files between archives and directories. This implementation can |
79 |
|
|
extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images and can |
80 |
|
|
create tar, pax, cpio, ar, and shar archives. |
81 |
|
|
|
82 |
|
|
%prep |
83 |
|
|
|
84 |
|
|
%setup -q |
85 |
|
|
%patch0 -p0 -b .headers |
86 |
|
|
|
87 |
|
|
%build |
88 |
|
|
autoreconf -fis |
89 |
|
|
|
90 |
|
|
%configure2_5x \ |
91 |
|
|
--enable-bsdtar=shared \ |
92 |
|
|
--enable-bsdcpio=shared |
93 |
|
|
|
94 |
|
|
%make |
95 |
|
|
|
96 |
|
|
%install |
97 |
|
|
rm -rf %{buildroot} |
98 |
|
|
|
99 |
|
|
%makeinstall_std |
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}/*.*a |
123 |
|
|
%attr(0644,root,root) %{_libdir}/pkgconfig/libarchive.pc |
124 |
|
|
%attr(0644,root,root) %{_includedir}/*.h |
125 |
|
|
%attr(0644,root,root) %{_mandir}/man3/* |
126 |
|
|
%attr(0644,root,root) %{_mandir}/man5/* |
127 |
|
|
|
128 |
|
|
|