Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 28dd4ec40505345fd8f59f26a17b7e53 > files > 2

python-ordereddict-1.1-2.fc13.src.rpm

%{!?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@redhat.com> 1.1-2
- Modify the spec file and update to upstream source

* Wed Jul 14 2010 James Ni <jni@redhat.com> 1.1-1
- Initial RPM release