]> git.pld-linux.org Git - packages/python-click.git/commitdiff
new, version 6.3 auto/th/python-click-6.3-1
authorElan Ruusamäe <glen@delfi.ee>
Fri, 11 Mar 2016 21:38:44 +0000 (23:38 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 11 Mar 2016 21:38:44 +0000 (23:38 +0200)
based on fedora package, d84ba79

python-click.spec [new file with mode: 0644]

diff --git a/python-click.spec b/python-click.spec
new file mode 100644 (file)
index 0000000..e58ed99
--- /dev/null
@@ -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
This page took 0.11761 seconds and 4 git commands to generate.