[packages/python-django-crispy-forms] new, version 1.6.0
glen
glen at pld-linux.org
Tue Jun 21 21:32:59 CEST 2016
commit 86d9fcbff58c82ba14eba298c642f7e36fe72187
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jun 21 22:31:47 2016 +0300
new, version 1.6.0
created with pyp2rpm
python-django-crispy-forms.spec | 97 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 97 insertions(+)
---
diff --git a/python-django-crispy-forms.spec b/python-django-crispy-forms.spec
new file mode 100644
index 0000000..6a6dada
--- /dev/null
+++ b/python-django-crispy-forms.spec
@@ -0,0 +1,97 @@
+#
+# Conditional build:
+%bcond_with doc # don't build doc
+%bcond_with tests # do not perform "make test" (needs django settings to test)
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module crispy_forms
+%define egg_name django_crispy_forms
+%define pypi_name django-crispy-forms
+Summary: Best way to have Django DRY forms
+Name: python-%{pypi_name}
+Version: 1.6.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+# Source0-md5: cf9537e0d2e5150644f45ea966b106dc
+URL: https://django-crispy-forms.readthedocs.io/
+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
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+django-crispy-forms is a Django application that lets you easily
+build, customize and reuse forms using your favorite CSS framework,
+without writing template code and without having to take care of
+annoying details.
+
+%package -n python3-%{pypi_name}
+Summary: Best way to have Django DRY forms
+Group: Libraries/Python
+
+%description -n python3-%{pypi_name}
+django-crispy-forms is a Django application that lets you easily
+build, customize and reuse forms using your favorite CSS framework,
+without writing template code and without having to take care of
+annoying details.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%if %{with doc}
+cd docs
+%{__make} -j1 html
+rm -rf _build/html/_sources
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+%py_install
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/%{module}/tests
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst LICENSE.txt
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{pypi_name}
+%defattr(644,root,root,755)
+%doc README.rst LICENSE.txt
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-django-crispy-forms.git/commitdiff/86d9fcbff58c82ba14eba298c642f7e36fe72187
More information about the pld-cvs-commit
mailing list