]>
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 | |
34f03146 | 6 | Summary(pl.UTF-8): Biblioteka do tworzenia i odczytu różnych formatów archiwów |
ac600a23 | 7 | Name: libarchive |
92d2b5ad | 8 | Version: 3.1.2 |
b0c4a98e | 9 | Release: 2 |
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 JR |
37 | %description -l pl.UTF-8 |
38 | Libarchive jest biblioteką służacą to tworzenia i odczytu wielu | |
39 | różnych strumieniowych formatów archiwów, włączając w to popularne | |
40 | odmiany TAR oraz wiele formatów CPIO. Biblioteka ta potrafi także | |
41 | zapisywać archiwa SHAR. | |
ac600a23 AG |
42 | |
43 | %package devel | |
44 | Summary: Header files for libarchive library | |
34f03146 | 45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libarchive |
ac600a23 AG |
46 | Group: Development/Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
e8285c16 JB |
48 | Requires: acl-devel |
49 | Requires: attr-devel | |
50 | Requires: bzip2-devel | |
92831ec2 | 51 | Requires: libxml2-devel |
12667120 | 52 | Requires: nettle-devel |
8c72e907 | 53 | Requires: xz-devel |
e8285c16 | 54 | Requires: zlib-devel |
ac600a23 AG |
55 | |
56 | %description devel | |
57 | Header files for libarchive library. | |
58 | ||
36ad161a JR |
59 | %description devel -l pl.UTF-8 |
60 | Pliki nagłówkowe biblioteki libarchive. | |
ac600a23 AG |
61 | |
62 | %package static | |
63 | Summary: Static libarchive library | |
34f03146 | 64 | Summary(pl.UTF-8): Statyczna biblioteka libarchive |
ac600a23 AG |
65 | Group: Development/Libraries |
66 | Requires: %{name}-devel = %{version}-%{release} | |
67 | ||
68 | %description static | |
69 | Static libarchive library. | |
70 | ||
36ad161a | 71 | %description static -l pl.UTF-8 |
ac600a23 AG |
72 | Statyczna biblioteka libarchive. |
73 | ||
92831ec2 MB |
74 | %package -n bsdcpio |
75 | Summary: bsdcpio - cpio(1) implementation based on libarchive | |
76 | Summary(pl.UTF-8): bsdcpio - implementacja programu cpio(1) oparta na libarchive | |
77 | Group: Applications/Archiving | |
78 | Requires: %{name} = %{version}-%{release} | |
79 | ||
80 | %description -n bsdcpio | |
81 | bsdcpio - cpio(1) implementation based on libarchive. | |
82 | ||
83 | %description -n bsdcpio -l pl.UTF-8 | |
84 | bsdcpio - implementacja programu cpio(1), oparta na libarchive. | |
85 | ||
1f60048e | 86 | %package -n bsdtar |
87 | Summary: bsdtar - tar(1) implementation based on libarchive | |
34f03146 | 88 | Summary(pl.UTF-8): bsdtar - implementacja programu tar(1) oparta na libarchive |
1f60048e | 89 | Group: Applications/Archiving |
90 | Requires: %{name} = %{version}-%{release} | |
91 | ||
92 | %description -n bsdtar | |
93 | bsdtar - tar(1) implementation based on libarchive. | |
94 | ||
36ad161a | 95 | %description -n bsdtar -l pl.UTF-8 |
1f60048e | 96 | bsdtar - implementacja programu tar(1), oparta na libarchive. |
97 | ||
ac600a23 AG |
98 | %prep |
99 | %setup -q | |
1f60048e | 100 | %patch0 -p1 |
ac600a23 AG |
101 | |
102 | %build | |
b74af457 | 103 | %configure \ |
92d2b5ad | 104 | --disable-silent-rules \ |
12667120 JB |
105 | --enable-bsdcpio=shared \ |
106 | --enable-bsdtar=shared \ | |
c2f290c1 | 107 | --enable-static%{!?with_static_libs:=no} |
8e860f08 | 108 | %{__make} -j1 |
ac600a23 AG |
109 | |
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | %{__make} install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
ca4812a2 JB |
115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
ac600a23 AG |
118 | %post -p /sbin/ldconfig |
119 | %postun -p /sbin/ldconfig | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
892cabbc | 123 | %doc README NEWS COPYING |
ac600a23 | 124 | %attr(755,root,root) %{_libdir}/libarchive.so.*.*.* |
92d2b5ad | 125 | %attr(755,root,root) %ghost %{_libdir}/libarchive.so.13 |
ac600a23 AG |
126 | |
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
129 | %attr(755,root,root) %{_libdir}/libarchive.so | |
130 | %{_libdir}/libarchive.la | |
c2f290c1 JB |
131 | %{_includedir}/archive*.h |
132 | %{_mandir}/man3/archive_*.3* | |
133 | %{_mandir}/man3/libarchive.3* | |
92d2b5ad | 134 | %{_mandir}/man3/libarchive_changes.3* |
c2f290c1 JB |
135 | %{_mandir}/man3/libarchive_internals.3* |
136 | %{_mandir}/man5/libarchive-formats.5* | |
137 | %{_mandir}/man5/cpio.5* | |
138 | %{_mandir}/man5/mtree.5* | |
139 | %{_mandir}/man5/tar.5* | |
92831ec2 | 140 | %{_pkgconfigdir}/libarchive.pc |
ac600a23 | 141 | |
b74af457 | 142 | %if %{with static_libs} |
ac600a23 AG |
143 | %files static |
144 | %defattr(644,root,root,755) | |
145 | %{_libdir}/libarchive.a | |
b74af457 | 146 | %endif |
1f60048e | 147 | |
92831ec2 MB |
148 | %files -n bsdcpio |
149 | %defattr(644,root,root,755) | |
150 | %attr(755,root,root) %{_bindir}/bsdcpio | |
151 | %{_mandir}/man1/bsdcpio.1* | |
152 | ||
1f60048e | 153 | %files -n bsdtar |
154 | %defattr(644,root,root,755) | |
155 | %attr(755,root,root) %{_bindir}/bsdtar | |
156 | %{_mandir}/man1/bsdtar.1* |