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