diff --git a/.gitignore b/.gitignore index e69de29..619ed00 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/django-registration-0.7.tar.gz diff --git a/django-registration.spec b/django-registration.spec new file mode 100644 index 0000000..b547fd5 --- /dev/null +++ b/django-registration.spec @@ -0,0 +1,52 @@ +Name: django-registration +Version: 0.7 +Release: 2%{?dist} +Summary: A user-registration application for Django + +Group: Development/Libraries +License: BSD +URL: http://bitbucket.org/ubernostrum/django-registration/ +Source0: http://pypi.python.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz + +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 + +%build +CFLAGS="$RPM_OPT_FLAGS" %{__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 + + +%files -f %{name}.lang +%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 +* Sat Aug 06 2011 Praveen Kumar - 0.7-2 +- Take over the package + +* Mon Sep 28 2009 Michel Salim - 0.7-1 +- Initial package diff --git a/sources b/sources index e69de29..faf37fe 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +5c92e93a699905dce2e3f59285013b0a django-registration-0.7.tar.gz