[packages/python-django-contact-form] new, version 1.1

glen glen at pld-linux.org
Mon Jun 20 15:03:14 CEST 2016


commit 1669ae284629fbf91b3f5850909f2a60cdcd636b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jun 20 16:02:52 2016 +0300

    new, version 1.1
    
    created from fedora package, dc0f27a

 python-django-contact-form.spec | 81 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 81 insertions(+)
---
diff --git a/python-django-contact-form.spec b/python-django-contact-form.spec
new file mode 100644
index 0000000..283259d
--- /dev/null
+++ b/python-django-contact-form.spec
@@ -0,0 +1,81 @@
+#
+# Conditional build:
+%bcond_with	tests	# do not perform "make test"
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+%define 	module	django-contact-form
+Summary:	An extensible contact-form application for Django
+Name:		python-django-contact-form
+Version:	1.1
+Release:	1
+License:	BSD
+Group:		Development/Languages
+Source0:	https://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5:	cd015803837f8fd1baa45dc7d21d7fce
+URL:		http://bitbucket.org/ubernostrum/django-contact-form/
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires:	python-modules
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules
+BuildRequires:	python3-setuptools
+%endif
+Requires:	python-django
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+An extensible contact-form application for Django
+
+%package -n python3-%{module}
+Summary:	An extensible contact-form application for Django
+Requires:	python3-django
+
+%description -n python3-%{module}
+An extensible contact-form application for Django
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+%py_install
+%py_postclean
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/contact_form/tests
+%endif
+
+%if %{with python3}
+%py3_install
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/contact_form/tests
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+rm -rf $RPM_BUILD_ROOT
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst docs/
+%{py_sitescriptdir}/contact_form
+%{py_sitescriptdir}/django_contact_form-%{version}-py*.egg-info
+
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc LICENSE README.rst docs/
+%{py3_sitescriptdir}/contact_form
+%{py3_sitescriptdir}/django_contact_form-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-django-contact-form.git/commitdiff/1669ae284629fbf91b3f5850909f2a60cdcd636b



More information about the pld-cvs-commit mailing list