Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:crameleon:misc
python-iteration_utilities
python-iteration_utilities.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-iteration_utilities.spec of Package python-iteration_utilities
# # spec file for package python-iteration_utilities # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2024 Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net> # # 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/ # %define appname iteration_utilities %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test %bcond_without test %else %define psuffix %{nil} %bcond_with test %endif Name: python-%{appname}%{psuffix} Version: 0 Release: 0 Summary: Utilities based on Pythons iterators and generators License: Apache-2.0 Group: Development/Languages/Python URL: https://iteration-utilities.rtfd.io Source: %{appname}-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: %{pythons} BuildRequires: fdupes BuildRequires: python-rpm-macros Provides: python3-iteration-utilities %if %{with test} BuildRequires: %{python_module %{appname}} BuildRequires: %{python_module pytest} %endif %python_subpackages %description Utilities based on Pythons iterators and generators. %package devel Summary: Development headers for python-iteration-utilities Requires: python-base %description devel Development headers for python-iteration-utilities. %prep %autosetup -n %{appname}-%{version} %build %if !%{with test} %pyproject_wheel %endif %install %if !%{with test} %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch}/%{appname} %endif %if %{with test} %check %pytest tests %endif %if !%{with test} %files %{python_files} %license LICENSE.txt %doc README.rst %dir %{python_sitearch}/%{appname} %{python_sitearch}/%{appname}/*.py %{python_sitearch}/%{appname}/_%{appname}.cpython-*-%{_arch}-linux-gnu.so %pycache_only %{python_sitearch}/%{appname}/__pycache__ %{python_sitearch}/%{appname}-%{version}.dist-info %files %{python_files devel} %dir %{python_sitearch}/%{appname}/_%{appname} %{python_sitearch}/%{appname}/_%{appname}/*.{c,h} %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