[packages/python-click] new, version 6.3
glen
glen at pld-linux.org
Fri Mar 11 22:39:17 CET 2016
commit 70e5f34bce3e5c41ae2008b2dd409028c04f40cb
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Mar 11 23:38:44 2016 +0200
new, version 6.3
based on fedora package, d84ba79
python-click.spec | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 94 insertions(+)
---
diff --git a/python-click.spec b/python-click.spec
new file mode 100644
index 0000000..e58ed99
--- /dev/null
+++ b/python-click.spec
@@ -0,0 +1,94 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module click
+Summary: A simple wrapper around optparse for powerful command line utilities
+Name: python-%{module}
+Version: 6.3
+Release: 1
+License: BSD
+Group: Libraries/Python
+Source0: https://pypi.python.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5: 2f171cdf12b8f2e284c224825f5e4634
+URL: http://github.com/mitsuhiko/click
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires: python-modules
+BuildRequires: python-pytest
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules
+BuildRequires: python3-pytest
+BuildRequires: python3-setuptools
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+click is a Python package for creating beautiful command line
+interfaces in a composable way with as little amount of code as
+necessary. It's the "Command Line Interface Creation Kit". It's highly
+configurable but comes with good defaults out of the box.
+
+%package -n python3-%{module}
+Summary: A simple wrapper around optparse for powerful command line utilities
+Group: Libraries/Python
+
+%description -n python3-%{module}
+click is a Python 3 package for creating beautiful command line
+interfaces in a composable way with as little amount of code as
+necessary. It's the "Command Line Interface Creation Kit". It's highly
+configurable but comes with good defaults out of the box.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%if %{with tests}
+PYTHONPATH=$(pwd) py.test-%{py_ver} tests --tb=long --verbose
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+%if %{with tests}
+LANG=en_GB.utf8 LC_ALL=en_GB.utf8 PYTHONPATH=$(pwd) py.test-%{py3_ver} tests --tb=long --verbose
+%endif
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+%py_install
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-click.git/commitdiff/70e5f34bce3e5c41ae2008b2dd409028c04f40cb
More information about the pld-cvs-commit
mailing list