]> git.pld-linux.org Git - packages/libarchive.git/blame - libarchive.spec
- updated to 3.0.3
[packages/libarchive.git] / libarchive.spec
CommitLineData
b74af457 1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4#
ac600a23 5Summary: Library to create and read several different archive formats
34f03146 6Summary(pl.UTF-8): Biblioteka do tworzenia i odczytu różnych formatów archiwów
ac600a23 7Name: libarchive
a4b44c58 8Version: 3.0.3
d3dab904 9Release: 1
ac600a23
AG
10License: BSD
11Group: Libraries
c2f290c1 12#Source0Download: http://code.google.com/p/libarchive/downloads/list
8c72e907 13Source0: http://libarchive.googlecode.com/files/%{name}-%{version}.tar.gz
a4b44c58 14# Source0-md5: ca4090f0099432a9ac5a8b6618dc3892
417d5b05 15Patch0: %{name}-man_progname.patch
ac600a23 16URL: http://people.freebsd.org/~kientzle/libarchive/
e8285c16
JB
17BuildRequires: acl-devel
18BuildRequires: attr-devel
12667120 19#BuildRequires: autoconf >= 2.65
b31ccf8a 20#BuildRequires: automake
ac600a23 21BuildRequires: bzip2-devel
e8285c16 22# for <ext2fs/ext2_fs.h>
1f60048e 23BuildRequires: e2fsprogs-devel
8c72e907 24#BuildRequires: libtool
25BuildRequires: libxml2-devel
12667120 26BuildRequires: nettle-devel
8c72e907 27BuildRequires: xz-devel
ac600a23
AG
28BuildRequires: zlib-devel
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
34variants and several CPIO formats. It can also write SHAR archives.
35
36ad161a
JR
36%description -l pl.UTF-8
37Libarchive jest biblioteką służacą to tworzenia i odczytu wielu
38różnych strumieniowych formatów archiwów, włączając w to popularne
39odmiany TAR oraz wiele formatów CPIO. Biblioteka ta potrafi także
40zapisywać archiwa SHAR.
ac600a23
AG
41
42%package devel
43Summary: Header files for libarchive library
34f03146 44Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libarchive
ac600a23
AG
45Group: Development/Libraries
46Requires: %{name} = %{version}-%{release}
e8285c16
JB
47Requires: acl-devel
48Requires: attr-devel
49Requires: bzip2-devel
92831ec2 50Requires: libxml2-devel
12667120 51Requires: nettle-devel
8c72e907 52Requires: xz-devel
e8285c16 53Requires: zlib-devel
ac600a23
AG
54
55%description devel
56Header files for libarchive library.
57
36ad161a
JR
58%description devel -l pl.UTF-8
59Pliki nagłówkowe biblioteki libarchive.
ac600a23
AG
60
61%package static
62Summary: Static libarchive library
34f03146 63Summary(pl.UTF-8): Statyczna biblioteka libarchive
ac600a23
AG
64Group: Development/Libraries
65Requires: %{name}-devel = %{version}-%{release}
66
67%description static
68Static libarchive library.
69
36ad161a 70%description static -l pl.UTF-8
ac600a23
AG
71Statyczna biblioteka libarchive.
72
92831ec2
MB
73%package -n bsdcpio
74Summary: bsdcpio - cpio(1) implementation based on libarchive
75Summary(pl.UTF-8): bsdcpio - implementacja programu cpio(1) oparta na libarchive
76Group: Applications/Archiving
77Requires: %{name} = %{version}-%{release}
78
79%description -n bsdcpio
80bsdcpio - cpio(1) implementation based on libarchive.
81
82%description -n bsdcpio -l pl.UTF-8
83bsdcpio - implementacja programu cpio(1), oparta na libarchive.
84
1f60048e 85%package -n bsdtar
86Summary: bsdtar - tar(1) implementation based on libarchive
34f03146 87Summary(pl.UTF-8): bsdtar - implementacja programu tar(1) oparta na libarchive
1f60048e 88Group: Applications/Archiving
89Requires: %{name} = %{version}-%{release}
90
91%description -n bsdtar
92bsdtar - tar(1) implementation based on libarchive.
93
36ad161a 94%description -n bsdtar -l pl.UTF-8
1f60048e 95bsdtar - 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 \
12667120
JB
108 --enable-bsdcpio=shared \
109 --enable-bsdtar=shared \
c2f290c1 110 --enable-static%{!?with_static_libs:=no}
8e860f08 111%{__make} -j1
ac600a23
AG
112
113%install
114rm -rf $RPM_BUILD_ROOT
115%{__make} install \
116 DESTDIR=$RPM_BUILD_ROOT
117
ca4812a2
JB
118%clean
119rm -rf $RPM_BUILD_ROOT
120
ac600a23
AG
121%post -p /sbin/ldconfig
122%postun -p /sbin/ldconfig
123
124%files
125%defattr(644,root,root,755)
126%attr(755,root,root) %{_libdir}/libarchive.so.*.*.*
12667120 127%attr(755,root,root) %ghost %{_libdir}/libarchive.so.12
ac600a23
AG
128
129%files devel
130%defattr(644,root,root,755)
131%attr(755,root,root) %{_libdir}/libarchive.so
132%{_libdir}/libarchive.la
c2f290c1
JB
133%{_includedir}/archive*.h
134%{_mandir}/man3/archive_*.3*
135%{_mandir}/man3/libarchive.3*
136%{_mandir}/man3/libarchive_internals.3*
137%{_mandir}/man5/libarchive-formats.5*
138%{_mandir}/man5/cpio.5*
139%{_mandir}/man5/mtree.5*
140%{_mandir}/man5/tar.5*
92831ec2 141%{_pkgconfigdir}/libarchive.pc
ac600a23 142
b74af457 143%if %{with static_libs}
ac600a23
AG
144%files static
145%defattr(644,root,root,755)
146%{_libdir}/libarchive.a
b74af457 147%endif
1f60048e 148
92831ec2
MB
149%files -n bsdcpio
150%defattr(644,root,root,755)
151%attr(755,root,root) %{_bindir}/bsdcpio
152%{_mandir}/man1/bsdcpio.1*
153
1f60048e 154%files -n bsdtar
155%defattr(644,root,root,755)
156%attr(755,root,root) %{_bindir}/bsdtar
157%{_mandir}/man1/bsdtar.1*
This page took 0.067972 seconds and 4 git commands to generate.