2019-04-15 09:25:45 +00:00
|
|
|
#
|
2019-04-15 09:27:15 +00:00
|
|
|
# spec file for package python
|
2019-04-15 09:25:45 +00:00
|
|
|
#
|
2019-04-15 09:27:15 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2019-04-15 09:25:45 +00:00
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global short_name ordered-set
|
|
|
|
|
%global dir_name ordered_set
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
Name: python-%{short_name}
|
2019-05-22 14:50:10 +00:00
|
|
|
Version: 3.1.1
|
2019-04-15 09:25:45 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Custom MutableSet that remembers its order
|
|
|
|
|
License: MIT
|
2019-04-15 09:27:15 +00:00
|
|
|
Group: Development/Libraries/Python
|
2019-04-15 09:25:45 +00:00
|
|
|
URL: https://github.com/LuminosoInsight/ordered-set
|
|
|
|
|
Source0: https://pypi.python.org/packages/source/o/%{short_name}/%{short_name}-%{version}.tar.gz
|
2019-05-22 14:50:10 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-04-15 09:25:45 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-04-15 09:27:15 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
BuildArch: noarch
|
2019-04-15 09:25:45 +00:00
|
|
|
%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
|
|
|
|
|
%autosetup -n %{short_name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2019-05-22 14:50:10 +00:00
|
|
|
%pytest test.py
|
2019-04-15 09:25:45 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license MIT-LICENSE
|
2019-05-22 14:50:10 +00:00
|
|
|
%doc README.md
|
2019-04-15 09:25:45 +00:00
|
|
|
%{python_sitelib}/%{dir_name}-*
|
|
|
|
|
%{python_sitelib}/%{dir_name}.py*
|
2019-04-15 09:27:15 +00:00
|
|
|
%pycache_only %{python3_sitelib}/__pycache__/%{dir_name}.*
|
2019-04-15 09:25:45 +00:00
|
|
|
|
|
|
|
|
%changelog
|