From: Jan Rękorajski Date: Sat, 9 Apr 2022 18:46:26 +0000 (+0200) Subject: - spec cleanup, rel 1 X-Git-Tag: auto/th/python3-zstd-1.5.1.0-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=2b683434e62d2976c010f61db9bca88e62469372;p=packages%2Fpython3-zstd.git - spec cleanup, rel 1 --- 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}