Group :: Development/Python3
RPM: python3-module-snappy
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname snappy
%define pypi_name python-snappy
%def_with check
Name: python3-module-%oname
Version: 0.6.1
Release: alt2
Summary: Python library for the snappy compression library from Google
License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.org/project/python-snappy
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: gcc-c++
BuildRequires: libsnappy-devel
BuildRequires: python3-module-cffi
%py3_provides %pypi_name
Provides: python3-module-%pypi_name
%description
Python bindings for the snappy compression library from Google.
%prep
%setup
%build
%add_optflags -fno-strict-aliasing
%python3_build
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
%__python3 test_formats.py
%__python3 test_hadoop_snappy.py
%__python3 test_snappy_cffi.py
%__python3 test_snappy.py
%install
%python3_install
%files
%doc AUTHORS *.rst
%python3_sitelibdir/%oname
%python3_sitelibdir/python_%oname-%version-py%_python3_version.egg-info
%changelog
…
Todas as alterações você pod ver aqui
%define oname snappy
%define pypi_name python-snappy
%def_with check
Name: python3-module-%oname
Version: 0.6.1
Release: alt2
Summary: Python library for the snappy compression library from Google
License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.org/project/python-snappy
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: gcc-c++
BuildRequires: libsnappy-devel
BuildRequires: python3-module-cffi
%py3_provides %pypi_name
Provides: python3-module-%pypi_name
%description
Python bindings for the snappy compression library from Google.
%prep
%setup
%build
%add_optflags -fno-strict-aliasing
%python3_build
%check
export PYTHONPATH=%buildroot%python3_sitelibdir
%__python3 test_formats.py
%__python3 test_hadoop_snappy.py
%__python3 test_snappy_cffi.py
%__python3 test_snappy.py
%install
%python3_install
%files
%doc AUTHORS *.rst
%python3_sitelibdir/%oname
%python3_sitelibdir/python_%oname-%version-py%_python3_version.egg-info
%changelog
…
Todas as alterações você pod ver aqui