]>
Commit | Line | Data |
---|---|---|
b74af457 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
ac600a23 | 5 | Summary: Library to create and read several different archive formats |
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 |
ef8c2e9a | 9 | Release: 1 |
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 | |
12667120 | 18 | #BuildRequires: autoconf >= 2.65 |
b31ccf8a | 19 | #BuildRequires: automake |
ac600a23 | 20 | BuildRequires: bzip2-devel |
e8285c16 | 21 | # for <ext2fs/ext2_fs.h> |
1f60048e | 22 | BuildRequires: e2fsprogs-devel |
8c72e907 | 23 | #BuildRequires: libtool |
24 | BuildRequires: libxml2-devel | |
92d2b5ad | 25 | BuildRequires: lzo-devel >= 2 |
12667120 | 26 | BuildRequires: nettle-devel |
8c72e907 | 27 | BuildRequires: xz-devel |
ac600a23 AG |
28 | BuildRequires: zlib-devel |
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 | |
34 | variants and several CPIO formats. It can also write SHAR archives. | |
35 | ||
36ad161a JR |
36 | %description -l pl.UTF-8 |
37 | Libarchive jest biblioteką służacą to tworzenia i odczytu wielu | |
38 | różnych strumieniowych formatów archiwów, włączając w to popularne | |
39 | odmiany TAR oraz wiele formatów CPIO. Biblioteka ta potrafi także | |
40 | zapisywać archiwa SHAR. | |
ac600a23 AG |
41 | |
42 | %package devel | |
43 | Summary: Header files for libarchive library | |
34f03146 | 44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libarchive |
ac600a23 AG |
45 | Group: Development/Libraries |
46 | Requires: %{name} = %{version}-%{release} | |
e8285c16 JB |
47 | Requires: acl-devel |
48 | Requires: attr-devel | |
49 | Requires: bzip2-devel | |
92831ec2 | 50 | Requires: libxml2-devel |
12667120 | 51 | Requires: nettle-devel |
8c72e907 | 52 | Requires: xz-devel |
e8285c16 | 53 | Requires: zlib-devel |
ac600a23 AG |
54 | |
55 | %description devel | |
56 | Header files for libarchive library. | |
57 | ||
36ad161a JR |
58 | %description devel -l pl.UTF-8 |
59 | Pliki nagłówkowe biblioteki libarchive. | |
ac600a23 AG |
60 | |
61 | %package static | |
62 | Summary: Static libarchive library | |
34f03146 | 63 | Summary(pl.UTF-8): Statyczna biblioteka libarchive |
ac600a23 AG |
64 | Group: Development/Libraries |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | ||
67 | %description static | |
68 | Static libarchive library. | |
69 | ||
36ad161a | 70 | %description static -l pl.UTF-8 |
ac600a23 AG |
71 | Statyczna biblioteka libarchive. |
72 | ||
92831ec2 MB |
73 | %package -n bsdcpio |
74 | Summary: bsdcpio - cpio(1) implementation based on libarchive | |
75 | Summary(pl.UTF-8): bsdcpio - implementacja programu cpio(1) oparta na libarchive | |
76 | Group: Applications/Archiving | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | ||
79 | %description -n bsdcpio | |
80 | bsdcpio - cpio(1) implementation based on libarchive. | |
81 | ||
82 | %description -n bsdcpio -l pl.UTF-8 | |
83 | bsdcpio - implementacja programu cpio(1), oparta na libarchive. | |
84 | ||
1f60048e | 85 | %package -n bsdtar |
86 | Summary: bsdtar - tar(1) implementation based on libarchive | |
34f03146 | 87 | Summary(pl.UTF-8): bsdtar - implementacja programu tar(1) oparta na libarchive |
1f60048e | 88 | Group: Applications/Archiving |
89 | Requires: %{name} = %{version}-%{release} | |
90 | ||
91 | %description -n bsdtar | |
92 | bsdtar - tar(1) implementation based on libarchive. | |
93 | ||
36ad161a | 94 | %description -n bsdtar -l pl.UTF-8 |
1f60048e | 95 | bsdtar - implementacja programu tar(1), oparta na libarchive. |
96 | ||
ac600a23 AG |
97 | %prep |
98 | %setup -q | |
1f60048e | 99 | %patch0 -p1 |
ac600a23 AG |
100 | |
101 | %build | |
a9796dcc | 102 | #%%{__libtoolize} |
103 | #%%{__aclocal} | |
104 | #%%{__autoconf} | |
105 | #%%{__autoheader} | |
106 | #%%{__automake} | |
b74af457 | 107 | %configure \ |
92d2b5ad | 108 | --disable-silent-rules \ |
12667120 JB |
109 | --enable-bsdcpio=shared \ |
110 | --enable-bsdtar=shared \ | |
c2f290c1 | 111 | --enable-static%{!?with_static_libs:=no} |
8e860f08 | 112 | %{__make} -j1 |
ac600a23 AG |
113 | |
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | %{__make} install \ | |
117 | DESTDIR=$RPM_BUILD_ROOT | |
118 | ||
ca4812a2 JB |
119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
ac600a23 AG |
122 | %post -p /sbin/ldconfig |
123 | %postun -p /sbin/ldconfig | |
124 | ||
125 | %files | |
126 | %defattr(644,root,root,755) | |
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* |