Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > ce27ebf6ee1da328faa9ea3095d249ae > files > 2

python-django-keyedcache-1.4.1-4.mga3.src.rpm

%global srcversion 1.4-1
%define mod_name django-keyedcache

Name:           python-django-keyedcache
Version:        1.4.1
Release:        %mkrel 4
Summary:        Utilities for simplified development of cache aware objects
Group:          Development/Python
License:        BSD
URL:            http://pypi.python.org/pypi/%{mod_name}
Source0:        http://pypi.python.org/packages/source/d/%{mod_name}/%{mod_name}-%{srcversion}.tar.gz
BuildArch:      noarch
BuildRequires:  python-setuptools
BuildRequires:  python-devel 
BuildRequires:  gettext
Requires:       python-django

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

%prep
%setup -q -n %{mod_name}-%{srcversion}
sed -i '/\/usr\/bin\/env/d' tests/manage.py

%build
%{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --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
%defattr(-,root,root,-)
%doc PKG-INFO
# list some files explicitly to avoid listing locale files twice
%{python_sitelib}/keyedcache/*.py*
%{python_sitelib}/keyedcache/templates/
%{python_sitelib}/tests/
%{python_sitelib}/django_keyedcache*.egg-info



%changelog

* Mon Feb 04 2013 pterjan <pterjan> 1.4.1-4.mga3
+ Revision: 394581
- Fix specfile name

  + umeabot <umeabot>
    - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Apr 26 2011 philippem <philippem> 1.4.1-3.mga1
+ Revision: 91788
+ rebuild (emptylog)

* Tue Apr 26 2011 misc <misc> 1.4.1-2.mga1
+ Revision: 91726
- Fix Group
- rename the rpm, and fix the adaptation to mageia
- rename the package
- imported package django-keyedcache