Mageia Bugzilla – Attachment 13869 Details for
Bug 32008
python-libarchive-c is a python interface to libarchive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec file
python-libarchive-c.spec (text/x-matlab), 1.79 KB, created by
Kristoffer Grundström
on 2023-06-12 14:16:15 CEST
(
hide
)
Description:
Proposal spec file
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2023-06-12 14:16:15 CEST
Size:
1.79 KB
patch
obsolete
>%global pypi_name libarchive-c >%global srcname python-libarchive-c > >Name: python-%{pypi_name} >Version: 4.0 >Release: %mkrel 1 >Summary: Python interface to libarchive >Group: Development/Python >License: LGPLv2+ >URL: https://github.com/Changaco/python-libarchive-c >Source0: https://files.pythonhosted.org/packages/93/c4/d8fa5dfcfef8aa3144ce4cfe4a87a7428b9f78989d65e9b4aa0f0beda5a8/%{srcname}-%{version}.tar.gz >BuildArch: noarch >BuildRequires: libpython3-devel >BuildRequires: python3dist(setuptools) > >%description >A Python interface to libarchive. It uses the standard ctypes_ module to >dynamically load and access the C library... _ctypes: pip install libarchive- >cpython-libarchive-c is compatible with python 2 and 3.Usage import >libarchiveTo extract an archive to the current directory:: >libarchive.extract_file('test.zip')extract_memory extracts from a buffer >instead, and extract_fd extracts from a file... > >%package -n python3-%{pypi_name} >Summary: %{summary} >%{?python_provide:%python_provide python3-%{pypi_name}} > >%description -n python3-%{pypi_name} >A Python interface to libarchive. It uses the standard ctypes_ module to >dynamically load and access the C library... _ctypes: pip install libarchive- >cpython-libarchive-c is compatible with python 2 and 3.Usage import >libarchiveTo extract an archive to the current directory:: >libarchive.extract_file('test.zip')extract_memory extracts from a buffer >instead, and extract_fd extracts from a file... > > >%prep >%autosetup -n %{srcname}-%{version} ># Remove bundled egg-info >rm -rf %{srcname}.egg-info > >%build >%py3_build > >%install >%py3_install > >%files -n python3-%{pypi_name} >%doc README.rst >%{python3_sitelib}/libarchive >%{python3_sitelib}/libarchive_c-%{version}-py%{python3_version}.egg-info
%global pypi_name libarchive-c %global srcname python-libarchive-c Name: python-%{pypi_name} Version: 4.0 Release: %mkrel 1 Summary: Python interface to libarchive Group: Development/Python License: LGPLv2+ URL: https://github.com/Changaco/python-libarchive-c Source0: https://files.pythonhosted.org/packages/93/c4/d8fa5dfcfef8aa3144ce4cfe4a87a7428b9f78989d65e9b4aa0f0beda5a8/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: libpython3-devel BuildRequires: python3dist(setuptools) %description A Python interface to libarchive. It uses the standard ctypes_ module to dynamically load and access the C library... _ctypes: pip install libarchive- cpython-libarchive-c is compatible with python 2 and 3.Usage import libarchiveTo extract an archive to the current directory:: libarchive.extract_file('test.zip')extract_memory extracts from a buffer instead, and extract_fd extracts from a file... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} A Python interface to libarchive. It uses the standard ctypes_ module to dynamically load and access the C library... _ctypes: pip install libarchive- cpython-libarchive-c is compatible with python 2 and 3.Usage import libarchiveTo extract an archive to the current directory:: libarchive.extract_file('test.zip')extract_memory extracts from a buffer instead, and extract_fd extracts from a file... %prep %autosetup -n %{srcname}-%{version} # Remove bundled egg-info rm -rf %{srcname}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %doc README.rst %{python3_sitelib}/libarchive %{python3_sitelib}/libarchive_c-%{version}-py%{python3_version}.egg-info
View Attachment As Raw
Actions:
View
Attachments on
bug 32008
: 13869