summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2009-09-28 14:44:19 -0400
committerMichel Alexandre Salim <salimma@fedoraproject.org>2009-09-28 14:44:19 -0400
commite4219fb1e6fd1fccfef0ee7b72780d4da67b94a4 (patch)
treee106799ddf66721777a38b309f461f1be4bbcda8 /python
parentd2716f01ddebc70133a17f37a8cfba197af8c1c6 (diff)
downloadspecs-e4219fb1e6fd1fccfef0ee7b72780d4da67b94a4.tar.gz
specs-e4219fb1e6fd1fccfef0ee7b72780d4da67b94a4.tar.xz
specs-e4219fb1e6fd1fccfef0ee7b72780d4da67b94a4.zip
django-registration: initial spec
Diffstat (limited to 'python')
-rw-r--r--python/django-registration.spec55
1 files changed, 55 insertions, 0 deletions
diff --git a/python/django-registration.spec b/python/django-registration.spec
new file mode 100644
index 0000000..dd20644
--- /dev/null
+++ b/python/django-registration.spec
@@ -0,0 +1,55 @@
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+Name: django-registration
+Version: 0.7
+Release: 1%{?dist}
+Summary: A user-registration application for Django
+
+Group: Development/Languages
+License: BSD
+URL: http://bitbucket.org/ubernostrum/django-registration/
+Source0: http://bitbucket.org/ubernostrum/%{name}/get/v%{version}.tar.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch: noarch
+BuildRequires: python-devel
+Requires: Django
+
+%description
+This is a fairly simple user-registration application for Django_,
+designed to make allowing user signups as painless as possible. It
+requires a functional installation of Django 1.0 or newer, but has no
+other dependencies.
+
+
+%prep
+%setup -q -n %{name}
+
+%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*.[mp]o') |
+ %{__sed} -e 's|^.||' | %{__sed} -e \
+ 's:\(.*/locale/\)\([^/_]\+\)\(.*\.[mp]o$\):%lang(\2) \1\2\3:' \
+ >> %{name}.lang
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc LICENSE.txt AUTHORS.txt CHANGELOG.txt README.txt docs/*
+%{python_sitelib}/*.egg-info
+%dir %{python_sitelib}/registration
+%{python_sitelib}/registration/management
+%{python_sitelib}/registration/*.py*
+
+
+%changelog
+* Mon Sep 28 2009 Michel Salim <salimma@fedoraproject.org> - 0.7-1
+- Initial package