Blob Blame History Raw
Name:          python-libarchive-c
Version:       2.3
Release:       1%{?dist}
Summary:       Python interface to libarchive
License:       CC0
Patch0:        python-libarchive-c-2.2-zip2-test.patch
BuildRequires: libarchive-devel
BuildArch:     noarch

%global _description \
The libarchive library provides a flexible interface for reading and writing   \
archives in various formats such as tar and cpio. libarchive also supports     \
reading and writing archives compressed using various compression filters such \
as gzip and bzip2.                                                             \
A Python interface to libarchive. It uses the standard ctypes module to        \
dynamically load and access the C library.

%description %_description

%package -n python2-libarchive-c
Summary:       %{summary}
%{?python_provide:%python_provide python2-libarchive-c}
BuildRequires: python-setuptools
BuildRequires: python-devel
BuildRequires: pytest
BuildRequires: glibc-common
Requires:      libarchive

%description -n python2-libarchive-c %_description

%package -n python3-libarchive-c
Summary:       %{summary}
%{?python_provide:%python_provide python3-libarchive-c}
BuildRequires: python3-setuptools
BuildRequires: python3-devel
BuildRequires: python3-pytest
Requires:      libarchive

%description -n python3-libarchive-c %_description

%autosetup -n %{name}-%{version} -p1


%{_fixperms} %{buildroot}

LC_ALL=en_US.utf8 py.test-%{python2_version} -s -vv tests
LC_ALL=en_US.utf8 py.test-%{python3_version} -s -vv tests

%global _docdir_fmt %{name}

%files -n python2-libarchive-c
%doc README.rst

%files -n python3-libarchive-c
%doc README.rst

* Wed May 04 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@bupkis> - 2.3-1
- Update to latest release

* Wed May 04 2016 Pavel Raiskup <> - 2.2-5
- fix the build against new libarchive
- stop requiring libarchive 3.1.2 explicitly

* Wed May 04 2016 Zbigniew Jędrzejewski-Szmek <> - 2.2-4
- Rebuild for libarchive 3.2.0

* Wed Mar  9 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@bupkis> - 2.2-3
- Add license text

* Tue Mar  8 2016 Zbigniew Jędrzejewski-Szmek <> - 2.2-2
- Remove debuginfo removal and enable tests

* Sat Dec 05 2015 Dhiru Kholia <> - 2.2-1
- Initial version