[django-keyedcache] Fix a build issue

Rahul Sundaram sundaram at fedoraproject.org
Sun Jul 10 04:30:40 UTC 2011


commit ba6ef0a5ce84f9b7f826b90a49d3720ca5469de6
Author: Rahul Sundaram <sundaram at fedoraproject.org>
Date:   Sun Jul 10 09:54:53 2011 +0530

    Fix a build issue

 .gitignore             |    1 +
 django-keyedcache.spec |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 48 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..098c436 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-keyedcache-1.4-1.tar.gz
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 <sundaram at fedoraproject.org> - 1.4.1-2
+- Fix a build issue
+
+* Thu Apr 14 2011 Rahul Sundaram <sundaram at fedoraproject.org> - 1.4.1-1
+- initial spec
diff --git a/sources b/sources
index e69de29..941e18b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+49d50e6a44db5fe820108534496a7892  django-keyedcache-1.4-1.tar.gz


More information about the scm-commits mailing list