]>
Commit | Line | Data |
---|---|---|
b74af457 | 1 | # |
2 | # Conditional build: | |
45165114 | 3 | %bcond_without static_libs # static library |
892cabbc ER |
4 | |
5 | Summary: Multi-format archive and compression library | |
da147f22 | 6 | Summary(pl.UTF-8): Biblioteka do archiwizacji i kompresji w wielu formatach |
ac600a23 | 7 | Name: libarchive |
df04b2dc | 8 | Version: 3.7.2 |
f63cc856 | 9 | Release: 1 |
ac600a23 AG |
10 | License: BSD |
11 | Group: Libraries | |
78b9639a JB |
12 | # see main page, downloads index may be out of date |
13 | #Source0Download: http://www.libarchive.org/ | |
f64bdec0 | 14 | Source0: https://www.libarchive.org/downloads/%{name}-%{version}.tar.xz |
df04b2dc | 15 | # Source0-md5: 4f4ef6a17c7b0b484aa2c95aa6deefac |
417d5b05 | 16 | Patch0: %{name}-man_progname.patch |
ef8c2e9a | 17 | URL: http://www.libarchive.org/ |
e8285c16 JB |
18 | BuildRequires: acl-devel |
19 | BuildRequires: attr-devel | |
f63cc856 | 20 | BuildRequires: autoconf >= 2.71 |
45165114 | 21 | BuildRequires: automake >= 1:1.11 |
ac600a23 | 22 | BuildRequires: bzip2-devel |
e8285c16 | 23 | # for <ext2fs/ext2_fs.h> |
1f60048e | 24 | BuildRequires: e2fsprogs-devel |
b28cb0a8 | 25 | BuildRequires: libb2-devel |
45165114 | 26 | BuildRequires: libtool |
d9046622 JB |
27 | BuildRequires: libxml2-devel >= 2 |
28 | BuildRequires: lz4-devel >= r131 | |
92d2b5ad | 29 | BuildRequires: lzo-devel >= 2 |
12667120 | 30 | BuildRequires: nettle-devel |
d9046622 | 31 | BuildRequires: pkgconfig |
3c25a433 | 32 | BuildRequires: richacl-devel |
00e5cded JB |
33 | BuildRequires: tar >= 1:1.22 |
34 | BuildRequires: xz | |
b28cb0a8 | 35 | BuildRequires: xz-devel >= 1:5.2 |
ac600a23 | 36 | BuildRequires: zlib-devel |
b28cb0a8 | 37 | BuildRequires: zstd-devel |
d9046622 | 38 | Requires: lz4-libs >= r131 |
b28cb0a8 | 39 | Requires: xz-libs >= 1:5.2 |
ac600a23 AG |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | Libarchive is a programming library that can create and read several | |
44 | different streaming archive formats, including most popular TAR | |
892cabbc ER |
45 | variants, several CPIO formats, and both BSD and GNU ar variants. It |
46 | can also write SHAR archives and read ISO9660 CDROM images and ZIP | |
47 | archives. | |
48 | ||
49 | See README for complete format support. | |
ac600a23 | 50 | |
36ad161a | 51 | %description -l pl.UTF-8 |
da147f22 JB |
52 | Libarchive to biblioteka potrafiąca tworzyć i odczytywać kilka różnych |
53 | formatów archiwów strumieniowych, w tym najbardziej popularne warianty | |
54 | archiwów TAR, kilka formatów CPIO oraz warianty BSD oraz GNU archiwów | |
55 | ar. Potrafi także zapisywać archiwa SHAR oraz odczytywać obrazy CDROM | |
56 | ISO9660 i archiwa ZIP. | |
57 | ||
58 | Pełny wykaz obsługiwanych formatów znajduje się w pliku README. | |
ac600a23 AG |
59 | |
60 | %package devel | |
61 | Summary: Header files for libarchive library | |
34f03146 | 62 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libarchive |
ac600a23 AG |
63 | Group: Development/Libraries |
64 | Requires: %{name} = %{version}-%{release} | |
e8285c16 JB |
65 | Requires: acl-devel |
66 | Requires: attr-devel | |
67 | Requires: bzip2-devel | |
b28cb0a8 | 68 | Requires: libb2-devel |
92831ec2 | 69 | Requires: libxml2-devel |
d9046622 | 70 | Requires: lz4-devel >= r131 |
12667120 | 71 | Requires: nettle-devel |
b28cb0a8 JB |
72 | Requires: richacl-devel |
73 | Requires: xz-devel >= 1:5.2 | |
e8285c16 | 74 | Requires: zlib-devel |
b28cb0a8 | 75 | Requires: zstd-devel |
ac600a23 AG |
76 | |
77 | %description devel | |
78 | Header files for libarchive library. | |
79 | ||
36ad161a JR |
80 | %description devel -l pl.UTF-8 |
81 | Pliki nagłówkowe biblioteki libarchive. | |
ac600a23 AG |
82 | |
83 | %package static | |
84 | Summary: Static libarchive library | |
34f03146 | 85 | Summary(pl.UTF-8): Statyczna biblioteka libarchive |
ac600a23 AG |
86 | Group: Development/Libraries |
87 | Requires: %{name}-devel = %{version}-%{release} | |
88 | ||
89 | %description static | |
90 | Static libarchive library. | |
91 | ||
36ad161a | 92 | %description static -l pl.UTF-8 |
ac600a23 AG |
93 | Statyczna biblioteka libarchive. |
94 | ||
d9046622 JB |
95 | %package -n bsdcat |
96 | Summary: bsdcat - cat(1) implementation based on libarchive | |
97 | Summary(pl.UTF-8): bsdcat - implementacja programu cat(1) oparta na libarchive | |
98 | Group: Applications/Archiving | |
99 | Requires: %{name} = %{version}-%{release} | |
100 | ||
101 | %description -n bsdcat | |
102 | bsdcat - cat(1) implementation based on libarchive. | |
103 | ||
104 | %description -n bsdcat -l pl.UTF-8 | |
105 | bsdcat - implementacja programu cat(1), oparta na libarchive. | |
106 | ||
92831ec2 MB |
107 | %package -n bsdcpio |
108 | Summary: bsdcpio - cpio(1) implementation based on libarchive | |
109 | Summary(pl.UTF-8): bsdcpio - implementacja programu cpio(1) oparta na libarchive | |
110 | Group: Applications/Archiving | |
111 | Requires: %{name} = %{version}-%{release} | |
112 | ||
113 | %description -n bsdcpio | |
114 | bsdcpio - cpio(1) implementation based on libarchive. | |
115 | ||
116 | %description -n bsdcpio -l pl.UTF-8 | |
117 | bsdcpio - implementacja programu cpio(1), oparta na libarchive. | |
118 | ||
1f60048e | 119 | %package -n bsdtar |
120 | Summary: bsdtar - tar(1) implementation based on libarchive | |
34f03146 | 121 | Summary(pl.UTF-8): bsdtar - implementacja programu tar(1) oparta na libarchive |
1f60048e | 122 | Group: Applications/Archiving |
123 | Requires: %{name} = %{version}-%{release} | |
124 | ||
125 | %description -n bsdtar | |
126 | bsdtar - tar(1) implementation based on libarchive. | |
127 | ||
36ad161a | 128 | %description -n bsdtar -l pl.UTF-8 |
1f60048e | 129 | bsdtar - implementacja programu tar(1), oparta na libarchive. |
130 | ||
f63cc856 JP |
131 | %package -n bsdunzip |
132 | Summary: bsdunzip - unzip(1) implementation based on libarchive | |
133 | Summary(pl.UTF-8): bsdunzip - implementacja programu unzip(1) oparta na libarchive | |
134 | Group: Applications/Archiving | |
135 | Requires: %{name} = %{version}-%{release} | |
136 | ||
137 | %description -n bsdunzip | |
138 | bsdunzip - unzip(1) implementation based on libarchive. | |
139 | ||
140 | %description -n bsdunzip -l pl.UTF-8 | |
141 | bsdunzip - implementacja programu unzip(1), oparta na libarchive. | |
142 | ||
ac600a23 AG |
143 | %prep |
144 | %setup -q | |
1f60048e | 145 | %patch0 -p1 |
ac600a23 AG |
146 | |
147 | %build | |
45165114 JB |
148 | %{__libtoolize} |
149 | %{__aclocal} -I build/autoconf | |
150 | %{__autoconf} | |
151 | %{__autoheader} | |
152 | %{__automake} | |
e377f8a5 | 153 | CPPFLAGS="%{rpmcppflags} -I/usr/include/lz4" |
7458d87c | 154 | # disable openssl, nettle has all necessary functionality |
b74af457 | 155 | %configure \ |
92d2b5ad | 156 | --disable-silent-rules \ |
d9046622 | 157 | --enable-bsdcat=shared \ |
12667120 JB |
158 | --enable-bsdcpio=shared \ |
159 | --enable-bsdtar=shared \ | |
7458d87c JB |
160 | --enable-static%{!?with_static_libs:=no} \ |
161 | --with-lzo2 \ | |
162 | --without-openssl | |
50a596a2 | 163 | %{__make} |
ac600a23 AG |
164 | |
165 | %install | |
166 | rm -rf $RPM_BUILD_ROOT | |
167 | %{__make} install \ | |
168 | DESTDIR=$RPM_BUILD_ROOT | |
169 | ||
7458d87c JB |
170 | # obsoleted by pkg-config |
171 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libarchive.la | |
172 | ||
ca4812a2 JB |
173 | %clean |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
ac600a23 AG |
176 | %post -p /sbin/ldconfig |
177 | %postun -p /sbin/ldconfig | |
178 | ||
179 | %files | |
180 | %defattr(644,root,root,755) | |
e377f8a5 | 181 | %doc NEWS COPYING |
ac600a23 | 182 | %attr(755,root,root) %{_libdir}/libarchive.so.*.*.* |
92d2b5ad | 183 | %attr(755,root,root) %ghost %{_libdir}/libarchive.so.13 |
ac600a23 AG |
184 | |
185 | %files devel | |
186 | %defattr(644,root,root,755) | |
187 | %attr(755,root,root) %{_libdir}/libarchive.so | |
c2f290c1 JB |
188 | %{_includedir}/archive*.h |
189 | %{_mandir}/man3/archive_*.3* | |
190 | %{_mandir}/man3/libarchive.3* | |
92d2b5ad | 191 | %{_mandir}/man3/libarchive_changes.3* |
c2f290c1 JB |
192 | %{_mandir}/man3/libarchive_internals.3* |
193 | %{_mandir}/man5/libarchive-formats.5* | |
194 | %{_mandir}/man5/cpio.5* | |
195 | %{_mandir}/man5/mtree.5* | |
196 | %{_mandir}/man5/tar.5* | |
92831ec2 | 197 | %{_pkgconfigdir}/libarchive.pc |
ac600a23 | 198 | |
b74af457 | 199 | %if %{with static_libs} |
ac600a23 AG |
200 | %files static |
201 | %defattr(644,root,root,755) | |
202 | %{_libdir}/libarchive.a | |
b74af457 | 203 | %endif |
1f60048e | 204 | |
d9046622 JB |
205 | %files -n bsdcat |
206 | %defattr(644,root,root,755) | |
207 | %attr(755,root,root) %{_bindir}/bsdcat | |
208 | %{_mandir}/man1/bsdcat.1* | |
209 | ||
92831ec2 MB |
210 | %files -n bsdcpio |
211 | %defattr(644,root,root,755) | |
212 | %attr(755,root,root) %{_bindir}/bsdcpio | |
213 | %{_mandir}/man1/bsdcpio.1* | |
214 | ||
1f60048e | 215 | %files -n bsdtar |
216 | %defattr(644,root,root,755) | |
217 | %attr(755,root,root) %{_bindir}/bsdtar | |
218 | %{_mandir}/man1/bsdtar.1* | |
f63cc856 JP |
219 | |
220 | %files -n bsdunzip | |
221 | %defattr(644,root,root,755) | |
222 | %attr(755,root,root) %{_bindir}/bsdunzip | |
223 | %{_mandir}/man1/bsdunzip.1* |