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