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
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)
%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
# 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}