65b1660
Name:          python-libarchive-c
d6c8eeb
Version:       2.5
e08cc57
Release:       4%{?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
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
e08cc57
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-4
e08cc57
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e08cc57
07b987d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-3
07b987d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
07b987d
5b03121
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.5-2
5b03121
- Rebuild for Python 3.6
5b03121
d6c8eeb
* Mon Aug 15 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.5-1
d6c8eeb
- Update to latest version
d6c8eeb
5dd33a0
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-2
5dd33a0
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5dd33a0
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