2011-12-06 17:03:17 +01:00
|
|
|
#
|
|
|
|
# spec file for package libarchive
|
|
|
|
#
|
2012-02-08 11:58:31 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-12-06 17:03:17 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-02-14 12:38:59 +01:00
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
Name: libarchive
|
|
|
|
Version: 2.8.5
|
|
|
|
Release: 0
|
|
|
|
#
|
|
|
|
BuildRequires: libacl-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
#
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: libext2fs-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: xz-devel
|
|
|
|
#
|
|
|
|
Summary: Creates and reads several different streaming archive formats
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
#
|
|
|
|
Url: http://code.google.com/p/libarchive/
|
|
|
|
Source0: http://libarchive.googlecode.com/files/libarchive-%{version}.tar.gz
|
|
|
|
Source1: baselibs.conf
|
|
|
|
Patch1: libarchive-2.5.5_handle_ENOSYS_from_lutimes.patch
|
2012-02-14 12:38:59 +01:00
|
|
|
Patch2: libarchive-test-fuzz.patch
|
|
|
|
Patch3: libarchive-ignore-sigpipe-in-test-suite.patch
|
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Libarchive is a programming library that can create and read several
|
|
|
|
different streaming archive formats, including most popular tar
|
|
|
|
variants and several cpio formats. It can also write shar archives and
|
|
|
|
read ISO9660 CDROM images. The bsdtar program is an implementation of
|
|
|
|
tar(1) that is built on top of libarchive. It started as a test
|
|
|
|
harness, but has grown and is now the standard system tar for FreeBSD 5
|
|
|
|
and 6.
|
|
|
|
|
|
|
|
This package contains the bsdtar cmdline utility.
|
|
|
|
|
|
|
|
%package -n bsdtar
|
2012-02-14 12:38:59 +01:00
|
|
|
|
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
Summary: Creates and reads several different streaming archive formats
|
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
|
2012-02-14 12:38:59 +01:00
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
%description -n bsdtar
|
|
|
|
This package contains the bsdtar cmdline utility.
|
|
|
|
|
|
|
|
%package -n libarchive2
|
2012-02-14 12:38:59 +01:00
|
|
|
|
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
#
|
|
|
|
Summary: Library to work with several different streaming archive formats
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
2012-02-14 12:38:59 +01:00
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
%description -n libarchive2
|
|
|
|
Libarchive is a programming library that can create and read several
|
|
|
|
different streaming archive formats, including most popular tar
|
|
|
|
variants and several cpio formats. It can also write shar archives and
|
|
|
|
read ISO9660 CDROM images. The bsdtar program is an implementation of
|
|
|
|
tar(1) that is built on top of libarchive. It started as a test
|
|
|
|
harness, but has grown and is now the standard system tar for FreeBSD 5
|
|
|
|
and 6.
|
|
|
|
|
|
|
|
The libarchive library offers a number of features that make it both
|
|
|
|
very flexible and very powerful.
|
|
|
|
|
|
|
|
- Automatic format detection: libarchive can automatically determine
|
|
|
|
both the compression and the archive format, regardless of the
|
|
|
|
data source. Most tar implementations do not automatically detect
|
|
|
|
the compression format, few implementation that can correctly do
|
|
|
|
this when reading from stdin or a socket. (The tar program
|
|
|
|
included with Gunnar Ritter's heirloom collection also does full
|
|
|
|
automatic format detection.)
|
|
|
|
|
|
|
|
- Writes POSIX formats: libarchive writes POSIX-standard formats,
|
|
|
|
including "ustar," "pax interchange format," and the POSIX "cpio"
|
|
|
|
format.
|
|
|
|
|
|
|
|
- Supports pax interchange format: Pax interchange format (which,
|
|
|
|
despite the name, is really an extended tar format) eliminates
|
|
|
|
almost all limitations of historic tar formats and provides a
|
|
|
|
standard method for incorporating vendor-specific extensions.
|
|
|
|
libarchive exploits this extension mechanism to support ACLs and
|
|
|
|
file flags, for example. (Joerg Schilling's star archiver is
|
|
|
|
another open-source tar program that supports pax interchange
|
|
|
|
format.)
|
|
|
|
|
|
|
|
- Reads popular formats: libarchive can read GNU tar, ustar, pax
|
|
|
|
interchange format, cpio, and older tar variants. The internal
|
|
|
|
architecture is easily extensible. The only requirement for
|
|
|
|
support is that it be possible to read the format without seeking
|
|
|
|
in the file. (For example, a format that includes a compressed
|
|
|
|
size field before the data cannot be correctly written without
|
|
|
|
seeking.)
|
|
|
|
|
|
|
|
- High-Level API: the libarchive API makes it fairly simple to build
|
|
|
|
an archive from a list of filenames or to extract the entries
|
|
|
|
from an archive. However, the API also provides extreme
|
|
|
|
flexibility with regards to data sources. For example, there are
|
|
|
|
generic hooks that allow you to write an archive to a socket or
|
|
|
|
read data from an archive entry into a memory buffer.
|
|
|
|
|
|
|
|
- Extensible. The internal design uses generic interfaces for
|
|
|
|
compression, archive format detection and decoding, and archive data
|
|
|
|
I/O. It should be very easy to add new formats, new compression
|
|
|
|
methods, or new ways of reading/writing archives.
|
|
|
|
|
|
|
|
%package -n libarchive-devel
|
2012-02-14 12:38:59 +01:00
|
|
|
|
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
Requires: libacl-devel
|
|
|
|
Requires: libarchive2 = %{version}
|
|
|
|
Requires: zlib-devel
|
|
|
|
Requires: libbz2-devel
|
|
|
|
Summary: Development files for libarchive
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
2012-02-14 12:38:59 +01:00
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
%description -n libarchive-devel
|
|
|
|
Libarchive is a programming library that can create and read several
|
|
|
|
different streaming archive formats, including most popular tar
|
|
|
|
variants and several cpio formats. It can also write shar archives and
|
|
|
|
read ISO9660 CDROM images. The bsdtar program is an implementation of
|
|
|
|
tar(1) that is built on top of libarchive. It started as a test
|
|
|
|
harness, but has grown and is now the standard system tar for FreeBSD 5
|
|
|
|
and 6.
|
|
|
|
|
|
|
|
This package contains the development files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%patch1
|
2012-02-14 12:38:59 +01:00
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
#autoreconf -fi
|
|
|
|
%configure --disable-static --enable-bsdcpio
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2012-02-14 12:38:59 +01:00
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2012-02-14 12:38:59 +01:00
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
%install
|
2012-02-08 11:58:31 +01:00
|
|
|
%makeinstall
|
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
rm -fv minitar/*.o
|
|
|
|
rm -fv %{buildroot}%{_libdir}/*.la
|
|
|
|
rm "%{buildroot}%{_mandir}/man5/"{tar,cpio,mtree}.5*
|
|
|
|
|
2012-02-14 12:38:59 +01:00
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
%post -n libarchive2 -p /sbin/ldconfig
|
|
|
|
|
2012-02-14 12:38:59 +01:00
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
%postun -n libarchive2 -p /sbin/ldconfig
|
|
|
|
|
2012-02-14 12:38:59 +01:00
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
%files -n bsdtar
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/bsdtar
|
|
|
|
%{_bindir}/bsdcpio
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
|
2012-02-14 12:38:59 +01:00
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
%files -n libarchive2
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libarchive.so.*
|
|
|
|
%doc COPYING INSTALL NEWS README examples/
|
|
|
|
|
2012-02-14 12:38:59 +01:00
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
%files -n libarchive-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_libdir}/libarchive.so
|
|
|
|
%{_includedir}/archive*
|
|
|
|
%{_libdir}/pkgconfig/libarchive.pc
|
|
|
|
|
2012-02-14 12:38:59 +01:00
|
|
|
|
|
|
|
|
2011-12-06 17:03:17 +01:00
|
|
|
%changelog
|