Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > bb0aaee98826f592ad625838a3010737 > files > 2

django-keyedcache-1.4.1-2.fc15.src.rpm

%global srcversion 1.4-1
Name:           django-keyedcache
Version:        1.4.1
Release:        2%{?dist}
Summary:        Utilities for simplified development of cache aware objects
Group:          Development/Languages
License:        BSD
URL:            http://pypi.python.org/pypi/%{name}
Source0:        http://pypi.python.org/packages/source/d/%{name}/%{name}-%{srcversion}.tar.gz

BuildArch:      noarch
BuildRequires:  python-setuptools-devel python-devel gettext
Requires:       Django

%description
Django Keyedcache provides utilities and class mixins for simplified development
of cache-aware objects.  Used in Satchmo

%prep
%setup -q -n %{name}-%{srcversion}
rm -rf tests
%build
%{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

# Language files; not under /usr/share, need to be handled manually
(cd $RPM_BUILD_ROOT && find . -name 'django.?o') | sed -e 's|^.||' | sed -e \
  's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \
  >> %{name}.lang

%files -f %{name}.lang
%doc PKG-INFO
# list some files explicitly to avoid listing locale files twice
%{python_sitelib}/keyedcache/*.py*
%{python_sitelib}/keyedcache/templates/
%{python_sitelib}/django_keyedcache*.egg-info

%changelog
* Sat Jun 09 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 1.4.1-2
- Fix a build issue

* Thu Apr 14 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 1.4.1-1
- initial spec