[python-django-keyedcache] Initial import

Bohuslav Kabrda bkabrda at fedoraproject.org
Wed Aug 15 11:16:05 UTC 2012


commit f49411f9fbc374c1eb83d4d84f45216ae715cfb0
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Wed Aug 15 13:15:35 2012 +0200

    Initial import

 .gitignore                    |    1 +
 python-django-keyedcache.spec |   89 +++++++++++++++++++++++++++++++++++++++++
 sources                       |    1 +
 3 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3f8d2e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-keyedcache-1.4-6.tar.gz
diff --git a/python-django-keyedcache.spec b/python-django-keyedcache.spec
new file mode 100644
index 0000000..b9b6467
--- /dev/null
+++ b/python-django-keyedcache.spec
@@ -0,0 +1,89 @@
+%global pypi_name django-keyedcache
+%global srcversion 1.4-6
+%global obs_ver 1.4.1-5
+
+Name:           python-%{pypi_name}
+Version:        1.4.6
+Release:        3%{?dist}
+Summary:        Utilities for simplified development of cache aware objects
+Group:          Development/Languages
+License:        BSD
+URL:            http://pypi.python.org/pypi/%{pypi_name}
+Source0:        http://pypi.python.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{srcversion}.tar.gz
+
+BuildArch:      noarch
+BuildRequires:  python-setuptools
+BuildRequires:  python2-devel
+BuildRequires:  python-django
+BuildRequires:  gettext
+Requires:       python-django
+
+Provides:       django-keyedcache = %{version}-%{release}
+Obsoletes:      django-keyedcache < %{obs_ver}
+
+%description
+Django Keyedcache provides utilities and class mixins for simplified development
+of cache-aware objects. Used in Satchmo
+
+%prep
+%setup -q -n %{pypi_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
+
+%find_lang django
+
+# remove unneeded .po files
+pushd $RPM_BUILD_ROOT
+find -type f -name '*.po' -exec rm {} \;
+popd
+
+%check
+pushd keyedcache/test_app
+# remove unneded 'livesettings' app
+sed -i "/'livesettings'/d" settings.py
+PYTHONPATH=../.. python manage.py test keyedcache
+popd
+
+%files -f django.lang
+%doc PKG-INFO
+%dir %{python_sitelib}/keyedcache/
+%{python_sitelib}/keyedcache/*.py*
+# own all the locale directories
+%dir %{python_sitelib}/keyedcache/locale/
+%dir %{python_sitelib}/keyedcache/locale/*/
+%dir %{python_sitelib}/keyedcache/locale/*/*/
+%{python_sitelib}/keyedcache/templates/
+%exclude %{python_sitelib}/keyedcache/test_app
+%{python_sitelib}/django_keyedcache*.egg-info
+
+%changelog
+* Tue Aug 14 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 1.4.6-3
+- Add proper Provides and Obsoletes tags.
+
+* Tue Aug 14 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 1.4.6-2
+- Fixed the package's locale directory ownership issue.
+
+* Mon Aug 13 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 1.4.6-1
+- Renamed to python-django-keyedcache.
+- Updated to latest upstream release.
+- Fixed URL to point to upstream, not to PyPI.
+- Introduced %%check section.
+- Improved lang files handling.
+
+* Wed Jul 18 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.1-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* 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..0141dbf 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cfb044c368c5b6c3b3d34277a0a2adb4  django-keyedcache-1.4-6.tar.gz


More information about the scm-commits mailing list