1
0
Tomáš Chvátal
2019-04-15 09:27:15 +00:00
committed by Git OBS Bridge
parent 154c6d4ca5
commit 7ff0bf91b8
2 changed files with 12 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
#
# spec file for package python-ordered-set
# spec file for package python
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 Neal Gompa <ngompa13@gmail.com>.
#
# All modifications and additions to the file contributed by third parties
@@ -18,54 +19,44 @@
%global short_name ordered-set
%global dir_name ordered_set
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-%{short_name}
Version: 2.0.2
Release: 0
Summary: Custom MutableSet that remembers its order
Group: Development/Libraries/Python
License: MIT
Group: Development/Libraries/Python
URL: https://github.com/LuminosoInsight/ordered-set
Source0: https://pypi.python.org/packages/source/o/%{short_name}/%{short_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%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
%python_exec setup.py nosetests
%files %{python_files}
%license MIT-LICENSE
%doc README
%{python_sitelib}/%{dir_name}-*
%{python_sitelib}/%{dir_name}.py*
%python3_only %{python3_sitelib}/__pycache__/%{dir_name}.*
%pycache_only %{python3_sitelib}/__pycache__/%{dir_name}.*
%changelog