59 lines
1.8 KiB
RPMSpec
59 lines
1.8 KiB
RPMSpec
|
# Created by pyp2rpm-3.3.8
|
||
|
%global pypi_name mgzip
|
||
|
%global pypi_version 0.2.1
|
||
|
%global pypi_source https://github.com/vinlyx/mgzip/archive/refs/tags/%{pypi_version}.tar.gz
|
||
|
|
||
|
Name: python-%{pypi_name}
|
||
|
Version: %{pypi_version}
|
||
|
Release: 1%{?dist}
|
||
|
Summary: A multi-threading implementation of Python gzip module
|
||
|
|
||
|
License: MIT
|
||
|
URL: https://github.com/vinlyx/mgzip
|
||
|
Source0: %{pypi_source}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
BuildRequires: python3-devel
|
||
|
BuildRequires: python3dist(setuptools)
|
||
|
|
||
|
%description
|
||
|
A multi-threading implement of Python gzip moduleUsing a block indexed GZIP
|
||
|
file format to enable compress and decompress in parallel. This implement use
|
||
|
'FEXTRA' to record the index of compressed member, which is defined in offical
|
||
|
GZIP file format specification version 4.3, so it is fully compatible with
|
||
|
normal GZIP implement.This module is **25X** faster for compression and **7X**
|
||
|
faster...
|
||
|
|
||
|
%package -n python3-%{pypi_name}
|
||
|
Summary: %{summary}
|
||
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||
|
|
||
|
%description -n python3-%{pypi_name}
|
||
|
A multi-threading implement of Python gzip moduleUsing a block indexed GZIP
|
||
|
file format to enable compress and decompress in parallel. This implement use
|
||
|
'FEXTRA' to record the index of compressed member, which is defined in offical
|
||
|
GZIP file format specification version 4.3, so it is fully compatible with
|
||
|
normal GZIP implement.This module is **25X** faster for compression and **7X**
|
||
|
faster...
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n %{pypi_name}-%{pypi_version}
|
||
|
# Remove bundled egg-info
|
||
|
rm -rf %{pypi_name}.egg-info
|
||
|
|
||
|
%build
|
||
|
%py3_build
|
||
|
|
||
|
%install
|
||
|
%py3_install
|
||
|
|
||
|
%files -n python3-%{pypi_name}
|
||
|
%doc README.md
|
||
|
%{python3_sitelib}/%{pypi_name}
|
||
|
%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info
|
||
|
|
||
|
%changelog
|
||
|
* Tue Nov 29 2022 Josh Lay <me+fedora@jlay.io> - 0.2.1-1
|
||
|
- Initial package.
|