From a9fc0e619862fb40eb85f9f3870c270fe2fe8b01 Mon Sep 17 00:00:00 2001 From: Miroslav Suchý Date: Sep 09 2015 16:29:25 +0000 Subject: Update python-ordered-set to 1.3.1-3 --- diff --git a/.gitignore b/.gitignore index e69de29..b9c4cf9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ordered-set-1.3.1.tar.gz diff --git a/python-ordered-set.spec b/python-ordered-set.spec new file mode 100644 index 0000000..a210d70 --- /dev/null +++ b/python-ordered-set.spec @@ -0,0 +1,107 @@ +%if 0%{?fedora} +%bcond_without python3 +%else +%bcond_with python3 +%endif +%global short_name ordered-set +%global dir_name ordered_set + +Name: python-%{short_name} +Version: 1.3.1 +Release: 3%{?dist} +Summary: A Custom MutableSet that remembers its order + +License: MIT +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: python2-devel +%if %{with python3} +BuildRequires: python3-devel +%endif # with python3 + +%description +An OrderedSet is a custom MutableSet that remembers its order, so that every +entry has an index that can be looked up. + +%if %{with python3} +%package -n python3-%{short_name} +Summary: A Custom MutableSet that remembers its order + +%description -n python3-%{short_name} +An OrderedSet is a custom MutableSet that remembers its order, so that every +entry has an index that can be looked up. + +This package contains python3 bindings. +%endif # with python3 + + +%prep +%setup -qc +mv %{short_name}-%{version} python2 + +%if %{with python3} +cp -a python2 python3 +%endif # with python3 + + +%build +pushd python2 +%{__python2} setup.py build +popd + +%if %{with python3} +pushd python3 +%{__python3} setup.py build +popd +%endif # with python3 + +%install +%if %{with python3} +pushd python3 +%{__python3} setup.py install -O1 --skip-build --root %{buildroot} +popd +%endif # with python3 + +pushd python2 +%{__python2} setup.py install -O1 --skip-build --root %{buildroot} +popd + + +%check +pushd python2 +%{__python2} setup.py test +popd + +%if %{with python3} +pushd python3 +%{__python2} setup.py test +popd +%endif + + +%files +%doc python2/README +%{python_sitelib}/* + +%if %{with python3} +%files -n python3-%{short_name} +%doc python3/README +%{python3_sitelib}/%{dir_name}.py +%{python3_sitelib}/*egg-info/ +%{python3_sitelib}/__pycache__/* +%endif # with python3 + + +%changelog +* Mon Sep 07 2015 Miroslav Suchý 1.3.1-3 +- include egg-info again +- fix typo + +* Mon Sep 07 2015 Miroslav Suchý 1.3.1-2 +- exclude __pycache__/ from filelist + +* Mon Sep 07 2015 Miroslav Suchý 1.3.1-1 +- new package + diff --git a/sources b/sources index e69de29..e6a6b84 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6b00a116f22bd83cb8b9962434139427 ordered-set-1.3.1.tar.gz