From: Elan Ruusamäe Date: Sat, 16 Mar 2013 22:33:28 +0000 (+0200) Subject: new, version 0.2 X-Git-Tag: auto/th/python-django-voting-0.2-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=b16f754c9fee07fe6862b75fc4c8da4dd5a064ed;p=packages%2Fpython-django-voting.git new, version 0.2 --- b16f754c9fee07fe6862b75fc4c8da4dd5a064ed diff --git a/python-django-voting.spec b/python-django-voting.spec new file mode 100644 index 0000000..fb66e8a --- /dev/null +++ b/python-django-voting.spec @@ -0,0 +1,51 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" + +%define module django-voting +Summary: Generic voting application for Django +Name: python-%{module} +Version: 0.2 +Release: 1 +License: BSD +Group: Libraries/Python +Source0: https://pypi.python.org/packages/source/d/django-voting/django-voting-%{version}.tar.gz +# Source0-md5: d4dbc8c0530f127027f6af6e76f91ead +URL: https://pypi.python.org/pypi/django-voting +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.219 +Requires: python-modules +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +This is a generic voting application for Django projects. + +%prep +%setup -q -n %{module}-%{version} + +%build +%{__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}/voting/tests + +%py_postclean + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGELOG.txt INSTALL.txt LICENSE.txt README.txt docs/overview.txt +%dir %{py_sitescriptdir}/voting +%{py_sitescriptdir}/voting/*.py[co] +%{py_sitescriptdir}/voting/migrations +%{py_sitescriptdir}/voting/templatetags +%{py_sitescriptdir}/django_voting-%{version}-py*.egg-info