[packages/python3-zstd] - spec cleanup, rel 1

baggins baggins at pld-linux.org
Sat Apr 9 20:46:45 CEST 2022


commit 2b683434e62d2976c010f61db9bca88e62469372
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Apr 9 20:46:26 2022 +0200

    - spec cleanup, rel 1

 python3-zstd.spec | 31 +++----------------------------
 1 file changed, 3 insertions(+), 28 deletions(-)
---
diff --git a/python3-zstd.spec b/python3-zstd.spec
index fcd3c7e..dd53fdf 100644
--- a/python3-zstd.spec
+++ b/python3-zstd.spec
@@ -6,8 +6,8 @@
 Summary:	Simple python bindings to Yann Collet ZSTD compression library
 Name:		python3-%{module}
 Version:	1.5.1.0
-Release:	0.1
-License:	- (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here)
+Release:	1
+License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/zstd/
 Source0:	https://files.pythonhosted.org/packages/source/z/zstd/%{module}-%{version}.tar.gz
@@ -15,20 +15,10 @@ Source0:	https://files.pythonhosted.org/packages/source/z/zstd/%{module}-%{versi
 Patch0:		unbundle-zstd.patch
 URL:		https://pypi.org/project/zstd/
 BuildRequires:	python3-devel >= 1:3.2
-#BuildRequires:	python3-setuptools
-%if %{with tests}
-#BuildRequires:	python3-
-%endif
-# if using noarch subpackage:
-#BuildRequires:	rpm-build >= 4.6
+BuildRequires:	python3-setuptools
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 BuildRequires:	zstd-devel
-# when using /usr/bin/env or other in-place substitutions
-#BuildRequires:        sed >= 4.0
-%if %{with doc}
-BuildRequires:	sphinx-pdg-3
-%endif
 # replace with other requires if defined in setup.py
 Requires:	python3-modules >= 1:3.2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -36,18 +26,6 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 Simple python bindings to Yann Collet ZSTD compression library.
 
-%package apidocs
-Summary:	API documentation for Python %{module} module
-Summary(pl.UTF-8):	Dokumentacja API modułu Pythona %{module}
-Group:		Documentation
-BuildArch:	noarch
-
-%description apidocs
-API documentation for Python %{module} module.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu Pythona %{module}.
-
 %prep
 %setup -q -n %{module}-%{version}
 %patch0 -p1
@@ -55,9 +33,6 @@ Dokumentacja API modułu Pythona %{module}.
 # Remove bundled lib
 %{__rm} -rf zstd
 
-# fix #!/usr/bin/env python -> #!/usr/bin/python:
-#%{__sed} -i -e '1s,^#!.*python3,#!%{__python3},' %{name}.py
-
 %build
 %py3_build %{?with_tests:test}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-zstd.git/commitdiff/2b683434e62d2976c010f61db9bca88e62469372



More information about the pld-cvs-commit mailing list