diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..098c436 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/django-keyedcache-1.4-1.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 02668cf..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Renamed to python-django-keyedcache diff --git a/django-keyedcache.spec b/django-keyedcache.spec new file mode 100644 index 0000000..95443a4 --- /dev/null +++ b/django-keyedcache.spec @@ -0,0 +1,46 @@ +%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 - 1.4.1-2 +- Fix a build issue + +* Thu Apr 14 2011 Rahul Sundaram - 1.4.1-1 +- initial spec diff --git a/sources b/sources new file mode 100644 index 0000000..941e18b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +49d50e6a44db5fe820108534496a7892 django-keyedcache-1.4-1.tar.gz