65b166
Name:          python-libarchive-c
d01851
Version:       2.9
d01851
Release:       1%{?dist}
65b166
Summary:       Python interface to libarchive
5009ba
License:       CC0
65b166
URL:           https://github.com/Changaco/python-libarchive-c
d01851
d01851
%global forgeurl %{url}
d01851
%global tag %{version}
d01851
%forgemeta
d01851
d01851
Source0:       %forgesource
011cc2
65b166
BuildRequires: libarchive-devel
65b166
BuildArch:     noarch
65b166
d01851
%global _description %{expand:
d01851
The libarchive library provides a flexible interface for reading and
d01851
writing archives in various formats such as tar and cpio. libarchive
d01851
also supports reading and writing archives compressed using various
d01851
compression filters such as gzip and bzip2.
d01851
d01851
A Python interface to libarchive. It uses the standard ctypes module
d01851
to dynamically load and access the C library.}
65b166
dfb420
%description %_description
65b166
6c3294
%package -n python%{python3_pkgversion}-libarchive-c
65b166
Summary:       %{summary}
6c3294
%{?python_provide:%python_provide python%{python3_pkgversion}-libarchive-c}
6c3294
BuildRequires: python%{python3_pkgversion}-setuptools
6c3294
BuildRequires: python%{python3_pkgversion}-devel
6c3294
BuildRequires: python%{python3_pkgversion}-mock
6c3294
BuildRequires: python%{python3_pkgversion}-pytest
c97cbf
Requires:      libarchive
65b166
6c3294
%description -n python%{python3_pkgversion}-libarchive-c %_description
65b166
65b166
%prep
c97cbf
%autosetup -n %{name}-%{version} -p1
65b166
65b166
%build
65b166
%py3_build
65b166
65b166
%install
65b166
%py3_install
65b166
%{_fixperms} %{buildroot}
65b166
65b166
%check
6c3294
%{?el7:export LANG=en_US.UTF-8}
6c3294
pytest-%{python3_version} -s -vv tests %{?el7:-k "not test_check_archiveentry_using_python_testtar"}
65b166
65b166
%global _docdir_fmt %{name}
65b166
6c3294
%files -n python%{python3_pkgversion}-libarchive-c
65b166
%doc README.rst
61c9c8
%license LICENSE.md
65b166
%{python3_sitelib}/libarchive*
65b166
65b166
%changelog
d01851
* Tue Mar 31 2020  <zbyszek@in.waw.pl> - 2.9-1
d01851
- Update to latest upstream version (#1763575)
d01851
077306
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-11
077306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
077306
803a32
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.8-10
803a32
- Rebuilt for Python 3.8.0rc1 (#1748018)
803a32
227a48
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.8-9
227a48
- Rebuilt for Python 3.8
227a48
dfc70a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-8
dfc70a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dfc70a
ff2908
* Fri May 31 2019 Orion Poplawski <orion@nwra.com> - 2.8-7
ff2908
- Add support for zstd
ff2908
6c3294
* Sat May 18 2019 Orion Poplawski <orion@nwra.com> - 2.8-6
6c3294
- Build for EPEL7
6c3294
011cc2
* Sat May  4 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.8-5
011cc2
- Fix compatibility with python3.8 (#1705558)
011cc2
8a7a8f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-4
8a7a8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8a7a8f
38e490
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.8-3
38e490
- Subpackage python2-libarchive-c has been removed
38e490
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
38e490
136b60
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-2
136b60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
136b60
61c9c8
* Mon Jun 25 2018 Miro Hrončok <mhroncok@redhat.com> - 2.8-1
61c9c8
- Update to 2.8 (#1589605)
61c9c8
fa4208
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.5-7
fa4208
- Rebuilt for Python 3.7
fa4208
ab89c3
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-6
ab89c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ab89c3
1c67bd
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.5-5
1c67bd
- Update Python 2 dependency declarations to new packaging standards
1c67bd
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
1c67bd
e08cc5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-4
e08cc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e08cc5
07b987
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-3
07b987
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
07b987
5b0312
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.5-2
5b0312
- Rebuild for Python 3.6
5b0312
d6c8ee
* Mon Aug 15 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.5-1
d6c8ee
- Update to latest version
d6c8ee
5dd33a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-2
5dd33a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5dd33a
5009ba
* Wed May 04 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@bupkis> - 2.3-1
5009ba
- Update to latest release
5009ba
c97cbf
* Wed May 04 2016 Pavel Raiskup <praiskup@redhat.com> - 2.2-5
c97cbf
- fix the build against new libarchive
c97cbf
- stop requiring libarchive 3.1.2 explicitly
c97cbf
e510ac
* Wed May 04 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2-4
e510ac
- Rebuild for libarchive 3.2.0
e510ac
65b166
* Wed Mar  9 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@bupkis> - 2.2-3
65b166
- Add license text
65b166
65b166
* Tue Mar  8 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2-2
65b166
- Remove debuginfo removal and enable tests
65b166
65b166
* Sat Dec 05 2015 Dhiru Kholia <dhiru@openwall.com> - 2.2-1
65b166
- Initial version