[python-ordereddict] Add spec file

james ni jamesni at fedoraproject.org
Thu Jan 6 05:40:06 UTC 2011


commit f92bac4822eab163cad20894aaafc1d8acafd0b5
Author: James Ni <kent.neo at gmail.com>
Date:   Thu Jan 6 13:39:41 2011 +0800

    Add spec file

 python-ordereddict.spec |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/python-ordereddict.spec b/python-ordereddict.spec
new file mode 100644
index 0000000..96a6a0f
--- /dev/null
+++ b/python-ordereddict.spec
@@ -0,0 +1,44 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+Name:           python-ordereddict
+Version:        1.1
+Release:        2%{?dist}
+Summary:        Implementation of Python 2.7's OrderedDict
+Group:          Development/Languages
+License:        MIT
+URL:            http://pypi.python.org/pypi/ordereddict
+Source0:        http://pypi.python.org/packages/source/o/ordereddict/ordereddict-1.1.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  python-devel
+
+%description
+Drop-in substitute for Py2.7's new collections.OrderedDict. 
+Originally based on http://code.activestate.com/recipes/576693/
+
+%prep
+%setup -q -n ordereddict-%{version}
+
+%build
+%{__python} setup.py build
+
+%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
+%{python_sitelib}/*
+
+%changelog
+* Thu Oct 28 2010 James Ni <jni at redhat.com> 1.1-2
+- Modify the spec file and update to upstream source
+
+* Wed Jul 14 2010 James Ni <jni at redhat.com> 1.1-1
+- Initial RPM release
+


More information about the scm-commits mailing list