]>
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 |
2a238ad4 | 8 | Version: 2.4.17 |
7fc4dae4 | 9 | Release: 2 |
ac600a23 AG |
10 | License: BSD |
11 | Group: Libraries | |
12 | Source0: http://people.freebsd.org/~kientzle/libarchive/src/%{name}-%{version}.tar.gz | |
2a238ad4 | 13 | # Source0-md5: 13a6dd5f21b08713dccdd6489685fe77 |
417d5b05 | 14 | Patch0: %{name}-man_progname.patch |
ac600a23 | 15 | URL: http://people.freebsd.org/~kientzle/libarchive/ |
e8285c16 JB |
16 | BuildRequires: acl-devel |
17 | BuildRequires: attr-devel | |
ac600a23 AG |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
20 | BuildRequires: bzip2-devel | |
e8285c16 | 21 | # for <ext2fs/ext2_fs.h> |
1f60048e | 22 | BuildRequires: e2fsprogs-devel |
ac600a23 | 23 | BuildRequires: libtool |
8e860f08 | 24 | BuildRequires: sharutils |
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 | |
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 |
ac600a23 AG |
82 | |
83 | %build | |
84 | %{__libtoolize} | |
85 | %{__aclocal} | |
86 | %{__autoconf} | |
87 | %{__autoheader} | |
88 | %{__automake} | |
b74af457 | 89 | %configure \ |
90 | --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no} | |
8e860f08 | 91 | %{__make} -j1 |
ac600a23 AG |
92 | |
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | %{__make} install \ | |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | ||
ca4812a2 JB |
98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
ac600a23 AG |
101 | %post -p /sbin/ldconfig |
102 | %postun -p /sbin/ldconfig | |
103 | ||
104 | %files | |
105 | %defattr(644,root,root,755) | |
106 | %attr(755,root,root) %{_libdir}/libarchive.so.*.*.* | |
8e860f08 | 107 | %attr(755,root,root) %{_libdir}/libarchive.so.? |
ac600a23 AG |
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* |