Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:python:backports
python-zlib-ng
python-zlib-ng.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-zlib-ng.spec of Package python-zlib-ng
# # spec file for package python-zlib-ng # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test %bcond_without test %else %define psuffix %{nil} %bcond_with test %endif Name: python-zlib-ng%{psuffix} Version: 0.4.1 Release: 0 License: Python-2.0 Summary: Faster zlib and gzip compatible compression and decompression Group: Development/Languages/Python URL: https://github.com/pycompression/python-zlib-ng Source0: https://files.pythonhosted.org/packages/source/z/zlib-ng/zlib-ng-%{version}.tar.gz Source1: https://github.com/pycompression/python-zlib-ng/raw/v%{version}/tests/data/concatenated.fastq.gz Source2: https://github.com/pycompression/python-zlib-ng/raw/v%{version}/tests/data/seeds.txt Source3: https://github.com/pycompression/python-zlib-ng/raw/v%{version}/tests/data/test.fastq.bgzip.gz Source4: https://github.com/pycompression/python-zlib-ng/raw/v%{version}/tests/data/test.fastq.gz BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: zlib-ng-devel Provides: python-zlib_ng = %{version}-%{release} %if %{with test} BuildRequires: %{python_module pytest} BuildRequires: %{python_module testsuite} BuildRequires: %{python_module zlib-ng = %{version}} %endif %python_subpackages %description Faster zlib and gzip compatible compression and decompression by providing Python bindings for the zlib-ng library. This package provides Python bindings for the zlib-ng library. %prep %setup -q -n zlib-ng-%{version} mkdir tests/data cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} tests/data/ %build %if !%{with test} export PYTHON_ZLIB_NG_LINK_DYNAMIC=1 %pyproject_wheel %endif %install %if !%{with test} %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %endif %if %{with test} %check %pytest_arch %endif %if !%{with test} %files %{python_files} %license LICENSE %doc README.rst %{python_sitearch}/zlib_ng %{python_sitearch}/zlib_ng-%{version}.dist-info %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor