Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:saltstack:bundle:testing:SLE12
saltbundlepy-six
saltbundlepy-six.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File saltbundlepy-six.spec of Package saltbundlepy-six
# # spec file for package saltbundlepy-six # # Copyright (c) 2021 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/ # %{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}} %define pythons saltbundlepy # Disable python bytecompile for all distros # It's called explicitly in the spec %global __brp_python_bytecompile %{nil} # This is not only because of dependency of testsuite, but mostly # because of cyclical dependencies between six and Sphinx. %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %bcond_without test %define psuffix -test %else %bcond_with test %define psuffix %{nil} %endif Name: saltbundlepy-six%{psuffix} Version: 1.16.0 Release: 0 Summary: Python 2 and 3 compatibility utilities License: MIT Group: Development/Libraries/Python URL: http://pypi.python.org/pypi/six/ Source: https://files.pythonhosted.org/packages/source/s/six/six-%{version}.tar.gz BuildRequires: %{saltbundlepy_module base >= 3.10} BuildRequires: %{saltbundlepy_module pip} BuildRequires: %{saltbundlepy_module wheel} BuildRequires: fdupes BuildRequires: saltbundlepy-rpm-macros Requires: saltbundlepy-base BuildArch: noarch %if %{with test} BuildRequires: %{saltbundlepy_module dbm} BuildRequires: %{saltbundlepy_module pytest} BuildRequires: %{saltbundlepy_module py} BuildRequires: %{saltbundlepy_module sphinx} %endif %python_subpackages %description Six is a Python 2 and 3 compatibility library. It provides utility functions for smoothing over the differences between the Python versions with the goal of writing Python code that is compatible on both Python versions. See the documentation for more information on what is provided. %package -n saltbundlepy-six-doc Summary: Documentation files for %{name} Group: Documentation/HTML Provides: %{python_module six-doc = %{version}} %description -n saltbundlepy-six-doc Six is a Python 2 and 3 compatibility library. It provides utility functions for smoothing over the differences between the Python versions with the goal of writing Python code that is compatible on both Python versions. This package provides documentation for %{name}. %prep %setup -q -n six-%{version} %build %pyproject_wheel %if %{with test} cd documentation && make html && rm _build/html/.buildinfo %endif %install %if ! %{with test} %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %check %if %{with test} %pytest test_six.py %endif %pre # handle distutils (file) to setuptools transition (directory) if [ -f %{python_sitelib}/six-*-py%{python_version}.egg-info ]; then rm -vf %{python_sitelib}/six-*-py%{python_version}.egg-info fi %if !%{with test} %files %{python_files} %license LICENSE %doc README.rst CHANGES %{python_sitelib}/six.py %pycache_only %{python_sitelib}/__pycache__/six*.pyc %{python_sitelib}/six-%{version}*-info %else %files -n saltbundlepy-six-doc %license LICENSE %doc documentation/_build/html %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