]>
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 |
1f60048e | 8 | Version: 1.3.1 |
8e5dd52d | 9 | Release: 1 |
ac600a23 AG |
10 | License: BSD |
11 | Group: Libraries | |
12 | Source0: http://people.freebsd.org/~kientzle/libarchive/src/%{name}-%{version}.tar.gz | |
1f60048e | 13 | # Source0-md5: c618d26d680ace57fcd5f59cea3151c6 |
14 | Patch0: %{name}-CVE-2006-5680.patch | |
15 | Patch1: %{name}-man_progname.patch | |
ac600a23 | 16 | URL: http://people.freebsd.org/~kientzle/libarchive/ |
e8285c16 JB |
17 | BuildRequires: acl-devel |
18 | BuildRequires: attr-devel | |
ac600a23 AG |
19 | BuildRequires: autoconf |
20 | BuildRequires: automake | |
21 | BuildRequires: bzip2-devel | |
e8285c16 | 22 | # for <ext2fs/ext2_fs.h> |
1f60048e | 23 | BuildRequires: e2fsprogs-devel |
ac600a23 AG |
24 | BuildRequires: libtool |
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 | |
31 | variants and several CPIO formats. It can also write SHAR archives. | |
32 | ||
36ad161a JR |
33 | %description -l pl.UTF-8 |
34 | Libarchive jest biblioteką służacą to tworzenia i odczytu wielu | |
35 | różnych strumieniowych formatów archiwów, włączając w to popularne | |
36 | odmiany TAR oraz wiele formatów CPIO. Biblioteka ta potrafi także | |
37 | zapisywać archiwa SHAR. | |
ac600a23 AG |
38 | |
39 | %package devel | |
40 | Summary: Header files for libarchive library | |
34f03146 | 41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libarchive |
ac600a23 AG |
42 | Group: Development/Libraries |
43 | Requires: %{name} = %{version}-%{release} | |
e8285c16 JB |
44 | Requires: acl-devel |
45 | Requires: attr-devel | |
46 | Requires: bzip2-devel | |
47 | Requires: zlib-devel | |
ac600a23 AG |
48 | |
49 | %description devel | |
50 | Header files for libarchive library. | |
51 | ||
36ad161a JR |
52 | %description devel -l pl.UTF-8 |
53 | Pliki nagłówkowe biblioteki libarchive. | |
ac600a23 AG |
54 | |
55 | %package static | |
56 | Summary: Static libarchive library | |
34f03146 | 57 | Summary(pl.UTF-8): Statyczna biblioteka libarchive |
ac600a23 AG |
58 | Group: Development/Libraries |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static libarchive library. | |
63 | ||
36ad161a | 64 | %description static -l pl.UTF-8 |
ac600a23 AG |
65 | Statyczna biblioteka libarchive. |
66 | ||
1f60048e | 67 | %package -n bsdtar |
68 | Summary: bsdtar - tar(1) implementation based on libarchive | |
34f03146 | 69 | Summary(pl.UTF-8): bsdtar - implementacja programu tar(1) oparta na libarchive |
1f60048e | 70 | Group: Applications/Archiving |
71 | Requires: %{name} = %{version}-%{release} | |
72 | ||
73 | %description -n bsdtar | |
74 | bsdtar - tar(1) implementation based on libarchive. | |
75 | ||
36ad161a | 76 | %description -n bsdtar -l pl.UTF-8 |
1f60048e | 77 | bsdtar - implementacja programu tar(1), oparta na libarchive. |
78 | ||
ac600a23 AG |
79 | %prep |
80 | %setup -q | |
1f60048e | 81 | %patch0 -p1 |
82 | %patch1 -p1 | |
ac600a23 AG |
83 | |
84 | %build | |
85 | %{__libtoolize} | |
86 | %{__aclocal} | |
87 | %{__autoconf} | |
88 | %{__autoheader} | |
89 | %{__automake} | |
b74af457 | 90 | %configure \ |
91 | --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no} | |
92 | %{__make} | |
ac600a23 AG |
93 | |
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
ca4812a2 JB |
99 | %clean |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
ac600a23 AG |
102 | %post -p /sbin/ldconfig |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %{_libdir}/libarchive.so.*.*.* | |
108 | ||
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
111 | %attr(755,root,root) %{_libdir}/libarchive.so | |
112 | %{_libdir}/libarchive.la | |
113 | %{_includedir}/*.h | |
114 | %{_mandir}/man3/* | |
115 | %{_mandir}/man5/* | |
116 | ||
b74af457 | 117 | %if %{with static_libs} |
ac600a23 AG |
118 | %files static |
119 | %defattr(644,root,root,755) | |
120 | %{_libdir}/libarchive.a | |
b74af457 | 121 | %endif |
1f60048e | 122 | |
123 | %files -n bsdtar | |
124 | %defattr(644,root,root,755) | |
125 | %attr(755,root,root) %{_bindir}/bsdtar | |
126 | %{_mandir}/man1/bsdtar.1* |