[packages/python-django-registration] up to 0.8; new home, unified .spec

glen glen at pld-linux.org
Sun Mar 17 12:39:41 CET 2013


commit 5feb270fd43c779e51a3118ba9dc5426cbe5e9b4
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 17 13:39:11 2013 +0200

    up to 0.8; new home, unified .spec

 python-django-registration.spec | 55 +++++++++++++++++++++++++++--------------
 1 file changed, 36 insertions(+), 19 deletions(-)
---
diff --git a/python-django-registration.spec b/python-django-registration.spec
index 41490bc..2c9955e 100644
--- a/python-django-registration.spec
+++ b/python-django-registration.spec
@@ -1,42 +1,53 @@
-%define		projectname	django-registration
-%define		module		registration
+%define		module	django-registration
 Summary:	Simple, portable, generic user-registration application for Django projects
 Summary(pl.UTF-8):	Prosta i przenośna aplikacja do rejestrowania użytkowników w projektach Django
-Name:		python-django-registration
-Version:	0.6
-Release:	2
+Name:		python-%{module}
+Version:	0.8
+Release:	1
 License:	BSD
 Group:		Development/Languages/Python
-Source0:	http://%{projectname}.googlecode.com/files/%{projectname}-%{version}.tar.gz
-# Source0-md5:	70c24a498443ebefac04b850762fe927
-URL:		http://django-registration.googlecode.com/
-BuildRequires:	python-devel
+Source0:	http://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5:	d3e785858e0040a6c3201acd43409b2e
+URL:		https://bitbucket.org/ubernostrum/django-registration/
 BuildRequires:	rpm-pythonprov
-# if py_postclean is used
 BuildRequires:	rpmbuild(macros) >= 1.219
-#%pyrequires_eq	python-libs
-%pyrequires_eq	python-modules
-Requires:	python-django >= 1.0
-Obsoletes:		python-django_registration < 0.6-2
-Provides:		python-django_registration = %{version}-%{release}
+Requires:	python-django >= 1.3
+Requires:	python-modules
+Provides:	python-django_registration = %{version}-%{release}
+Obsoletes:	python-django_registration < 0.6-2
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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.3 or newer, but has no
+other dependencies.
 
 %prep
-%setup -q -n %{projectname}-%{version}
+%setup -q -n %{module}-%{version}
+
+rm -r docs/_build/html/.buildinfo
 
 %build
-export CFLAGS="%{rpmcflags}"
 %{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install \
+	--skip-build \
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/registration/tests
+
+# Language files; not under %{_datadir}, need to be handled manually
+for a in $RPM_BUILD_ROOT%{py_sitescriptdir}/registration/locale/[a-z]*; do
+	# path file and lang
+	p=${a#$RPM_BUILD_ROOT} l=${a##*/}
+	echo "%lang($l) $p"
+done >> %{name}.lang
+
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
 %py_postclean
@@ -44,6 +55,12 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%{py_sitescriptdir}/%{module}
+%doc LICENSE AUTHORS CHANGELOG README docs/*
+%dir %{py_sitescriptdir}/registration
+%{py_sitescriptdir}/registration/*.py[co]
+%{py_sitescriptdir}/registration/backends
+%{py_sitescriptdir}/registration/management
+%dir %{py_sitescriptdir}/registration/locale
+%{py_sitescriptdir}/django_registration-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-django-registration.git/commitdiff/5feb270fd43c779e51a3118ba9dc5426cbe5e9b4



More information about the pld-cvs-commit mailing list