|
|
65b1660 |
Name: python-libarchive-c
|
|
|
9ab6003 |
Version: 4.0
|
|
|
a5d306e |
Release: %autorelease
|
|
|
65b1660 |
Summary: Python interface to libarchive
|
|
|
5009bab |
License: CC0
|
|
|
65b1660 |
URL: https://github.com/Changaco/python-libarchive-c
|
|
|
d018519 |
|
|
|
d018519 |
%global forgeurl %{url}
|
|
|
d018519 |
%global tag %{version}
|
|
|
d018519 |
%forgemeta
|
|
|
d018519 |
|
|
|
914586a |
Source0: https://github.com/Changaco/python-libarchive-c/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
011cc27 |
|
|
|
65b1660 |
BuildRequires: libarchive-devel
|
|
|
65b1660 |
BuildArch: noarch
|
|
|
65b1660 |
|
|
|
d018519 |
%global _description %{expand:
|
|
|
d018519 |
The libarchive library provides a flexible interface for reading and
|
|
|
d018519 |
writing archives in various formats such as tar and cpio. libarchive
|
|
|
d018519 |
also supports reading and writing archives compressed using various
|
|
|
d018519 |
compression filters such as gzip and bzip2.
|
|
|
d018519 |
|
|
|
d018519 |
A Python interface to libarchive. It uses the standard ctypes module
|
|
|
d018519 |
to 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
|
|
|
a5d306e |
%autochangelog
|