You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.6 KiB
71 lines
1.6 KiB
7 months ago
|
# Copyright (C) 2024 Maxwell G <maxwell@gtmx.me>
|
||
|
# SPDX-License-Identifier: MIT
|
||
|
# License text: https://spdx.org/licenses/MIT
|
||
|
|
||
|
Name: python-zstarfile
|
||
|
Version: 0.2.0
|
||
|
Release: 1%{?dist}
|
||
|
Summary: Tarfile extension with additional compression algorithms and PEP 706 by default
|
||
|
|
||
|
|
||
|
License: MIT
|
||
|
URL: https://sr.ht/~gotmax23/zstarfile
|
||
|
%global furl https://git.sr.ht/~gotmax23/zstarfile
|
||
|
Source0: %{furl}/refs/download/v%{version}/zstarfile-%{version}.tar.gz
|
||
|
Source1: %{furl}/refs/download/v%{version}/zstarfile-%{version}.tar.gz.asc
|
||
|
Source2: https://meta.sr.ht/~gotmax23.pgp
|
||
|
|
||
|
BuildArch: noarch
|
||
|
|
||
|
BuildRequires: gnupg2
|
||
|
BuildRequires: python3-devel
|
||
|
|
||
|
Recommends: %{py3_dist zstarfile[all]}
|
||
|
|
||
|
%global _description %{expand:
|
||
|
zstarfile is a tarfile extension with additional compression algorithms and
|
||
|
PEP 706 by default.}
|
||
|
|
||
|
%description %_description
|
||
|
|
||
|
%package -n python3-zstarfile
|
||
|
Summary: %{summary}
|
||
|
|
||
|
%description -n python3-zstarfile %_description
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%gpgverify -d0 -s1 -k2
|
||
|
%autosetup -p1 -n zstarfile-%{version}
|
||
|
|
||
|
|
||
|
%generate_buildrequires
|
||
|
%pyproject_buildrequires -x all,lz4,zstandard,test
|
||
|
|
||
|
|
||
|
%build
|
||
|
%pyproject_wheel
|
||
|
|
||
|
|
||
|
%install
|
||
|
%pyproject_install
|
||
|
%pyproject_save_files zstarfile
|
||
|
|
||
|
|
||
|
%check
|
||
|
%pytest
|
||
|
|
||
|
|
||
|
%files -n python3-zstarfile -f %{pyproject_files}
|
||
|
%doc README.md
|
||
|
%license LICENSES/*
|
||
|
|
||
|
%pyproject_extras_subpkg -n python3-zstarfile all lz4 zstandard
|
||
|
|
||
|
%changelog
|
||
|
* Thu Jul 18 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 0.2.0-1
|
||
|
- Rebuilt for MSVSphere 9.4
|
||
|
|
||
|
* Sun Apr 07 2024 Maxwell G <maxwell@gtmx.me> - 0.2.0-1
|
||
|
- Initial package (rhbz#2274272).
|