Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:acdc:as_python3_module
python3-ordered-set
python3-ordered-set.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python3-ordered-set.spec of Package python3-ordered-set
# # spec file # # Copyright (c) 2021 SUSE LLC # Copyright (c) 2019 Neal Gompa <ngompa13@gmail.com>. # # 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/ # # in order to avoid rewriting for subpackage generator %define mypython python %global modname ordered-set %global dir_name ordered_set %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test %bcond_without test %else %define psuffix %{nil} %bcond_with test %endif Name: python-%{modname}%{psuffix} Version: 4.0.2 Release: 0 Summary: Custom MutableSet that remembers its order License: MIT URL: https://github.com/LuminosoInsight/ordered-set Source: https://files.pythonhosted.org/packages/source/o/%{modname}/%{modname}-%{version}.tar.gz # this package is build dependency of setuptools BuildRequires: %{python_module base} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch %if %{with test} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} %endif # work around boo#1186870 Provides: %{mypython}%{python_version}dist(%modname) = %{version} %if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3" Provides: %{mypython}3dist(%modname) = %{version} %endif %python_subpackages %description An OrderedSet is a custom MutableSet that remembers its order, so that every entry has an index that can be looked up. %prep %setup -q -n %{modname}-%{version} # we are build dep of setuptools sed -i -e 's:from setuptools :from distutils.core :g' setup.py %build %python_build %install %if !%{with test} %python_install # ensure egg-info is a directory %{python_expand rm -rf %{buildroot}%{$python_sitelib}/*.egg-info cp -r ordered_set.egg-info %{buildroot}%{$python_sitelib}/ordered_set-%{version}-py%{$python_version}.egg-info } %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %check %if %{with test} %pytest test.py %endif %if !%{with test} %files %{python_files} %license MIT-LICENSE %doc README.md %{python_sitelib}/%{dir_name}-* %{python_sitelib}/%{dir_name}.py* %pycache_only %{python_sitelib}/__pycache__/%{dir_name}.* %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