]>
Commit | Line | Data |
---|---|---|
b74af457 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
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 |
fd6479c1 | 8 | Version: 3.2.1 |
d9046622 | 9 | Release: 1 |
ac600a23 AG |
10 | License: BSD |
11 | Group: Libraries | |
ef8c2e9a | 12 | Source0: http://www.libarchive.org/downloads/%{name}-%{version}.tar.gz |
fd6479c1 | 13 | # Source0-md5: afa257047d1941a565216edbf0171e72 |
417d5b05 | 14 | Patch0: %{name}-man_progname.patch |
ef8c2e9a | 15 | URL: http://www.libarchive.org/ |
e8285c16 JB |
16 | BuildRequires: acl-devel |
17 | BuildRequires: attr-devel | |
ac600a23 | 18 | BuildRequires: bzip2-devel |
e8285c16 | 19 | # for <ext2fs/ext2_fs.h> |
1f60048e | 20 | BuildRequires: e2fsprogs-devel |
d9046622 JB |
21 | BuildRequires: libxml2-devel >= 2 |
22 | BuildRequires: lz4-devel >= r131 | |
92d2b5ad | 23 | BuildRequires: lzo-devel >= 2 |
12667120 | 24 | BuildRequires: nettle-devel |
d9046622 | 25 | BuildRequires: pkgconfig |
8c72e907 | 26 | BuildRequires: xz-devel |
ac600a23 | 27 | BuildRequires: zlib-devel |
d9046622 | 28 | Requires: lz4-libs >= r131 |
ac600a23 AG |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
32 | Libarchive is a programming library that can create and read several | |
33 | different streaming archive formats, including most popular TAR | |
892cabbc ER |
34 | variants, several CPIO formats, and both BSD and GNU ar variants. It |
35 | can also write SHAR archives and read ISO9660 CDROM images and ZIP | |
36 | archives. | |
37 | ||
38 | See README for complete format support. | |
ac600a23 | 39 | |
36ad161a | 40 | %description -l pl.UTF-8 |
da147f22 JB |
41 | Libarchive to biblioteka potrafiąca tworzyć i odczytywać kilka różnych |
42 | formatów archiwów strumieniowych, w tym najbardziej popularne warianty | |
43 | archiwów TAR, kilka formatów CPIO oraz warianty BSD oraz GNU archiwów | |
44 | ar. Potrafi także zapisywać archiwa SHAR oraz odczytywać obrazy CDROM | |
45 | ISO9660 i archiwa ZIP. | |
46 | ||
47 | Pełny wykaz obsługiwanych formatów znajduje się w pliku README. | |
ac600a23 AG |
48 | |
49 | %package devel | |
50 | Summary: Header files for libarchive library | |
34f03146 | 51 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libarchive |
ac600a23 AG |
52 | Group: Development/Libraries |
53 | Requires: %{name} = %{version}-%{release} | |
e8285c16 JB |
54 | Requires: acl-devel |
55 | Requires: attr-devel | |
56 | Requires: bzip2-devel | |
92831ec2 | 57 | Requires: libxml2-devel |
d9046622 | 58 | Requires: lz4-devel >= r131 |
12667120 | 59 | Requires: nettle-devel |
8c72e907 | 60 | Requires: xz-devel |
e8285c16 | 61 | Requires: zlib-devel |
ac600a23 AG |
62 | |
63 | %description devel | |
64 | Header files for libarchive library. | |
65 | ||
36ad161a JR |
66 | %description devel -l pl.UTF-8 |
67 | Pliki nagłówkowe biblioteki libarchive. | |
ac600a23 AG |
68 | |
69 | %package static | |
70 | Summary: Static libarchive library | |
34f03146 | 71 | Summary(pl.UTF-8): Statyczna biblioteka libarchive |
ac600a23 AG |
72 | Group: Development/Libraries |
73 | Requires: %{name}-devel = %{version}-%{release} | |
74 | ||
75 | %description static | |
76 | Static libarchive library. | |
77 | ||
36ad161a | 78 | %description static -l pl.UTF-8 |
ac600a23 AG |
79 | Statyczna biblioteka libarchive. |
80 | ||
d9046622 JB |
81 | %package -n bsdcat |
82 | Summary: bsdcat - cat(1) implementation based on libarchive | |
83 | Summary(pl.UTF-8): bsdcat - implementacja programu cat(1) oparta na libarchive | |
84 | Group: Applications/Archiving | |
85 | Requires: %{name} = %{version}-%{release} | |
86 | ||
87 | %description -n bsdcat | |
88 | bsdcat - cat(1) implementation based on libarchive. | |
89 | ||
90 | %description -n bsdcat -l pl.UTF-8 | |
91 | bsdcat - implementacja programu cat(1), oparta na libarchive. | |
92 | ||
92831ec2 MB |
93 | %package -n bsdcpio |
94 | Summary: bsdcpio - cpio(1) implementation based on libarchive | |
95 | Summary(pl.UTF-8): bsdcpio - implementacja programu cpio(1) oparta na libarchive | |
96 | Group: Applications/Archiving | |
97 | Requires: %{name} = %{version}-%{release} | |
98 | ||
99 | %description -n bsdcpio | |
100 | bsdcpio - cpio(1) implementation based on libarchive. | |
101 | ||
102 | %description -n bsdcpio -l pl.UTF-8 | |
103 | bsdcpio - implementacja programu cpio(1), oparta na libarchive. | |
104 | ||
1f60048e | 105 | %package -n bsdtar |
106 | Summary: bsdtar - tar(1) implementation based on libarchive | |
34f03146 | 107 | Summary(pl.UTF-8): bsdtar - implementacja programu tar(1) oparta na libarchive |
1f60048e | 108 | Group: Applications/Archiving |
109 | Requires: %{name} = %{version}-%{release} | |
110 | ||
111 | %description -n bsdtar | |
112 | bsdtar - tar(1) implementation based on libarchive. | |
113 | ||
36ad161a | 114 | %description -n bsdtar -l pl.UTF-8 |
1f60048e | 115 | bsdtar - implementacja programu tar(1), oparta na libarchive. |
116 | ||
ac600a23 AG |
117 | %prep |
118 | %setup -q | |
1f60048e | 119 | %patch0 -p1 |
ac600a23 AG |
120 | |
121 | %build | |
b74af457 | 122 | %configure \ |
92d2b5ad | 123 | --disable-silent-rules \ |
d9046622 | 124 | --enable-bsdcat=shared \ |
12667120 JB |
125 | --enable-bsdcpio=shared \ |
126 | --enable-bsdtar=shared \ | |
c2f290c1 | 127 | --enable-static%{!?with_static_libs:=no} |
8e860f08 | 128 | %{__make} -j1 |
ac600a23 AG |
129 | |
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | %{__make} install \ | |
133 | DESTDIR=$RPM_BUILD_ROOT | |
134 | ||
ca4812a2 JB |
135 | %clean |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
ac600a23 AG |
138 | %post -p /sbin/ldconfig |
139 | %postun -p /sbin/ldconfig | |
140 | ||
141 | %files | |
142 | %defattr(644,root,root,755) | |
892cabbc | 143 | %doc README NEWS COPYING |
ac600a23 | 144 | %attr(755,root,root) %{_libdir}/libarchive.so.*.*.* |
92d2b5ad | 145 | %attr(755,root,root) %ghost %{_libdir}/libarchive.so.13 |
ac600a23 AG |
146 | |
147 | %files devel | |
148 | %defattr(644,root,root,755) | |
149 | %attr(755,root,root) %{_libdir}/libarchive.so | |
150 | %{_libdir}/libarchive.la | |
c2f290c1 JB |
151 | %{_includedir}/archive*.h |
152 | %{_mandir}/man3/archive_*.3* | |
153 | %{_mandir}/man3/libarchive.3* | |
92d2b5ad | 154 | %{_mandir}/man3/libarchive_changes.3* |
c2f290c1 JB |
155 | %{_mandir}/man3/libarchive_internals.3* |
156 | %{_mandir}/man5/libarchive-formats.5* | |
157 | %{_mandir}/man5/cpio.5* | |
158 | %{_mandir}/man5/mtree.5* | |
159 | %{_mandir}/man5/tar.5* | |
92831ec2 | 160 | %{_pkgconfigdir}/libarchive.pc |
ac600a23 | 161 | |
b74af457 | 162 | %if %{with static_libs} |
ac600a23 AG |
163 | %files static |
164 | %defattr(644,root,root,755) | |
165 | %{_libdir}/libarchive.a | |
b74af457 | 166 | %endif |
1f60048e | 167 | |
d9046622 JB |
168 | %files -n bsdcat |
169 | %defattr(644,root,root,755) | |
170 | %attr(755,root,root) %{_bindir}/bsdcat | |
171 | %{_mandir}/man1/bsdcat.1* | |
172 | ||
92831ec2 MB |
173 | %files -n bsdcpio |
174 | %defattr(644,root,root,755) | |
175 | %attr(755,root,root) %{_bindir}/bsdcpio | |
176 | %{_mandir}/man1/bsdcpio.1* | |
177 | ||
1f60048e | 178 | %files -n bsdtar |
179 | %defattr(644,root,root,755) | |
180 | %attr(755,root,root) %{_bindir}/bsdtar | |
181 | %{_mandir}/man1/bsdtar.1* |