65b1660
Name:          python-libarchive-c
61c9c8e
Version:       2.8
dfc70ab
Release:       8%{?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
011cc27
Patch1:        https://github.com/Changaco/python-libarchive-c/commit/7480fcdc8c6585d3f8ac67fe9a4dff0ebb0e479e.patch
ff29088
# Add support for zstd
ff29088
Patch2:        https://patch-diff.githubusercontent.com/raw/Changaco/python-libarchive-c/pull/90.patch
011cc27
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
6c3294d
%package -n python%{python3_pkgversion}-libarchive-c
65b1660
Summary:       %{summary}
6c3294d
%{?python_provide:%python_provide python%{python3_pkgversion}-libarchive-c}
6c3294d
BuildRequires: python%{python3_pkgversion}-setuptools
6c3294d
BuildRequires: python%{python3_pkgversion}-devel
6c3294d
BuildRequires: python%{python3_pkgversion}-mock
6c3294d
BuildRequires: python%{python3_pkgversion}-pytest
c97cbfd
Requires:      libarchive
65b1660
6c3294d
%description -n python%{python3_pkgversion}-libarchive-c %_description
65b1660
65b1660
%prep
c97cbfd
%autosetup -n %{name}-%{version} -p1
65b1660
65b1660
%build
65b1660
%py3_build
65b1660
65b1660
%install
65b1660
%py3_install
65b1660
%{_fixperms} %{buildroot}
65b1660
65b1660
%check
6c3294d
%{?el7:export LANG=en_US.UTF-8}
6c3294d
pytest-%{python3_version} -s -vv tests %{?el7:-k "not test_check_archiveentry_using_python_testtar"}
65b1660
65b1660
%global _docdir_fmt %{name}
65b1660
6c3294d
%files -n python%{python3_pkgversion}-libarchive-c
65b1660
%doc README.rst
61c9c8e
%license LICENSE.md
65b1660
%{python3_sitelib}/libarchive*
65b1660
65b1660
%changelog
dfc70ab
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-8
dfc70ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dfc70ab
ff29088
* Fri May 31 2019 Orion Poplawski <orion@nwra.com> - 2.8-7
ff29088
- Add support for zstd
ff29088
6c3294d
* Sat May 18 2019 Orion Poplawski <orion@nwra.com> - 2.8-6
6c3294d
- Build for EPEL7
6c3294d
011cc27
* Sat May  4 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.8-5
011cc27
- Fix compatibility with python3.8 (#1705558)
011cc27
8a7a8fd
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-4
8a7a8fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8a7a8fd
38e4900
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.8-3
38e4900
- Subpackage python2-libarchive-c has been removed
38e4900
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
38e4900
136b60c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-2
136b60c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
136b60c
61c9c8e
* Mon Jun 25 2018 Miro Hrončok <mhroncok@redhat.com> - 2.8-1
61c9c8e
- Update to 2.8 (#1589605)
61c9c8e
fa4208b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.5-7
fa4208b
- Rebuilt for Python 3.7
fa4208b
ab89c3c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-6
ab89c3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ab89c3c
1c67bd8
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.5-5
1c67bd8
- Update Python 2 dependency declarations to new packaging standards
1c67bd8
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
1c67bd8
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