[python-odict] Initial import (#862853)

Stephen Gallagher sgallagh at fedoraproject.org
Thu Oct 4 20:27:10 UTC 2012


commit 6ca31970f293c3a87f81b9f32b4cfc9e2cb7924c
Author: Stephen Gallagher <sgallagh at redhat.com>
Date:   Thu Oct 4 16:26:40 2012 -0400

    Initial import (#862853)

 .gitignore        |    1 +
 python-odict.spec |   75 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3d0fc2c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/odict-1.5.0.tar.gz
diff --git a/python-odict.spec b/python-odict.spec
new file mode 100644
index 0000000..1cc482a
--- /dev/null
+++ b/python-odict.spec
@@ -0,0 +1,75 @@
+%if 0%{?rhel} && 0%{?rhel} <= 5
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+%global pkgname odict
+
+Name: python-odict
+Version: 1.5.0
+Release: 4%{?dist}
+Summary: Ordered dictionary
+
+Group: Development/Languages
+License: Python
+URL: http://slimit.org/
+Source0: http://pypi.python.org/packages/source/o/%{pkgname}/%{pkgname}-%{version}.tar.gz
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+
+Requires: python2
+
+%description
+Dictionary in which the insertion order of items is preserved (using an
+internal double linked list). In this implementation replacing an existing
+item keeps it at its original position
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+rm -rf %{pkgname}-%{version}*.egg-info
+
+
+%build
+%{__python} setup.py build
+
+%check
+# Tests are broken upstream and also require unpackaged python-interlude
+# Uncomment when fixed upstream
+# python setup.py test -m odict.tests
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.rst README.rst
+%{python_sitelib}/%{pkgname}/
+%{python_sitelib}/%{pkgname}-%{version}*.egg-info
+
+%changelog
+* Thu Oct 04 2012 Stephen Gallagher <sgallagh at redhat.com> - 1.5.0-4
+- Spec changes from package review
+- %%check section reordered
+- Minor edits to comments
+
+* Thu Oct 04 2012 Stephen Gallagher <sgallagh at redhat.com> - 1.5.0-3
+- Spec changes from package review
+- Add %%clean section
+- Explain why the test suite is not run
+
+* Thu Oct 04 2012 Stephen Gallagher <sgallagh at redhat.com> - 1.5.0-2
+- Spec changes from package review
+- Add support for EPEL5
+- Use %%{pkgname} instead of hard-coding odict
+
+
+* Wed Oct 03 2012 Stephen Gallagher <sgallagh at redhat.com> - 1.5.0-1
+- Initial release
diff --git a/sources b/sources
index e69de29..9614578 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+43d4b2d5775245c6f11df12a09c7bfdb  odict-1.5.0.tar.gz


More information about the scm-commits mailing list