|
|
65b1660 |
Name: python-libarchive-c
|
|
|
5009bab |
Version: 2.3
|
|
|
5009bab |
Release: 1%{?dist}
|
|
|
65b1660 |
Summary: Python interface to libarchive
|
|
|
5009bab |
License: CC0
|
|
|
65b1660 |
URL: https://github.com/Changaco/python-libarchive-c
|
|
|
65b1660 |
Source0: https://github.com/Changaco/python-libarchive-c/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
c97cbfd |
Patch0: python-libarchive-c-2.2-zip2-test.patch
|
|
|
65b1660 |
BuildRequires: libarchive-devel
|
|
|
65b1660 |
BuildArch: noarch
|
|
|
65b1660 |
|
|
|
dfb4201 |
%global _description \
|
|
|
dfb4201 |
The libarchive library provides a flexible interface for reading and writing \
|
|
|
65b1660 |
archives in various formats such as tar and cpio. libarchive also supports \
|
|
|
65b1660 |
reading and writing archives compressed using various compression filters such \
|
|
|
65b1660 |
as gzip and bzip2. \
|
|
|
65b1660 |
\
|
|
|
65b1660 |
A Python interface to libarchive. It uses the standard ctypes module to \
|
|
|
65b1660 |
dynamically load and access the C library.
|
|
|
65b1660 |
|
|
|
dfb4201 |
%description %_description
|
|
|
65b1660 |
|
|
|
65b1660 |
%package -n python2-libarchive-c
|
|
|
65b1660 |
Summary: %{summary}
|
|
|
65b1660 |
%{?python_provide:%python_provide python2-libarchive-c}
|
|
|
65b1660 |
BuildRequires: python-setuptools
|
|
|
65b1660 |
BuildRequires: python-devel
|
|
|
d3c7b92 |
BuildRequires: pytest
|
|
|
65b1660 |
BuildRequires: glibc-common
|
|
|
c97cbfd |
Requires: libarchive
|
|
|
65b1660 |
|
|
|
dfb4201 |
%description -n python2-libarchive-c %_description
|
|
|
65b1660 |
|
|
|
65b1660 |
%package -n python3-libarchive-c
|
|
|
65b1660 |
Summary: %{summary}
|
|
|
65b1660 |
%{?python_provide:%python_provide python3-libarchive-c}
|
|
|
65b1660 |
BuildRequires: python3-setuptools
|
|
|
65b1660 |
BuildRequires: python3-devel
|
|
|
65b1660 |
BuildRequires: python3-pytest
|
|
|
c97cbfd |
Requires: libarchive
|
|
|
65b1660 |
|
|
|
dfb4201 |
%description -n python3-libarchive-c %_description
|
|
|
65b1660 |
|
|
|
65b1660 |
%prep
|
|
|
c97cbfd |
%autosetup -n %{name}-%{version} -p1
|
|
|
65b1660 |
|
|
|
65b1660 |
%build
|
|
|
65b1660 |
%py2_build
|
|
|
65b1660 |
%py3_build
|
|
|
65b1660 |
|
|
|
65b1660 |
%install
|
|
|
65b1660 |
%py2_install
|
|
|
65b1660 |
%py3_install
|
|
|
65b1660 |
%{_fixperms} %{buildroot}
|
|
|
65b1660 |
|
|
|
65b1660 |
%check
|
|
|
d3c7b92 |
LC_ALL=en_US.utf8 py.test-%{python2_version} -s -vv tests
|
|
|
d3c7b92 |
LC_ALL=en_US.utf8 py.test-%{python3_version} -s -vv tests
|
|
|
65b1660 |
|
|
|
65b1660 |
%global _docdir_fmt %{name}
|
|
|
65b1660 |
|
|
|
65b1660 |
%files -n python2-libarchive-c
|
|
|
65b1660 |
%doc README.rst
|
|
|
65b1660 |
%{python2_sitelib}/libarchive*
|
|
|
65b1660 |
|
|
|
65b1660 |
%files -n python3-libarchive-c
|
|
|
65b1660 |
%doc README.rst
|
|
|
65b1660 |
%{python3_sitelib}/libarchive*
|
|
|
65b1660 |
|
|
|
65b1660 |
%changelog
|
|
|
5009bab |
* Wed May 04 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@bupkis> - 2.3-1
|
|
|
5009bab |
- Update to latest release
|
|
|
5009bab |
|
|
|
c97cbfd |
* Wed May 04 2016 Pavel Raiskup <praiskup@redhat.com> - 2.2-5
|
|
|
c97cbfd |
- fix the build against new libarchive
|
|
|
c97cbfd |
- stop requiring libarchive 3.1.2 explicitly
|
|
|
c97cbfd |
|
|
|
e510ac4 |
* Wed May 04 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2-4
|
|
|
e510ac4 |
- Rebuild for libarchive 3.2.0
|
|
|
e510ac4 |
|
|
|
65b1660 |
* Wed Mar 9 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@bupkis> - 2.2-3
|
|
|
65b1660 |
- Add license text
|
|
|
65b1660 |
|
|
|
65b1660 |
* Tue Mar 8 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2-2
|
|
|
65b1660 |
- Remove debuginfo removal and enable tests
|
|
|
65b1660 |
|
|
|
65b1660 |
* Sat Dec 05 2015 Dhiru Kholia <dhiru@openwall.com> - 2.2-1
|
|
|
65b1660 |
- Initial version
|