[packages/python-jenkins] new, version 0.2.1

glen glen at pld-linux.org
Fri Aug 1 15:16:44 CEST 2014


commit b81162feebc0a86588b11fa38eeadfd5df205b02
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Aug 1 16:16:22 2014 +0300

    new, version 0.2.1
    
    based on fedora package
    ee2729b010bb566113d4a81110f96e7a2e61b719

 python-jenkins.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
---
diff --git a/python-jenkins.spec b/python-jenkins.spec
new file mode 100644
index 0000000..42b2d31
--- /dev/null
+++ b/python-jenkins.spec
@@ -0,0 +1,70 @@
+#
+# Conditional build:
+%bcond_without	doc		# don't build doc
+%bcond_without	tests	# do not perform "make test"
+
+%define 	module	jenkins
+Summary:	Python bindings for the remote Jenkins API
+Name:		python-%{module}
+Version:	0.2.1
+Release:	1
+License:	BSD
+Group:		Development/Libraries
+Source0:	https://launchpad.net/python-jenkins/0.2/%{version}/+download/%{name}-%{version}.tar.gz
+# Source0-md5:	4e9ff3c2e6b0ae8da59a6c46080df898
+URL:		http://launchpad.net/python-jenkins
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+%if %{with tests}
+BuildRequires:	python-mock
+BuildRequires:	python-nose
+%endif
+%if %{with doc}
+BuildRequires:	python-Sphinx
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python Jenkins is a library for the remote API of the Jenkins
+continuous integration server. It is useful for creating and managing
+jobs as well as build nodes.
+
+%prep
+%setup -q
+
+# Remove env from __init__.py
+sed -i '/^#!\%{_prefix}\/bin\/env python$/d' jenkins/__init__.py
+
+%build
+%{__python} setup.py build
+
+%if %{with tests}
+PYTHONPATH=. nosetests-%{py_ver} -w tests
+%endif
+
+%{__make} -C doc html man
+rm -f doc/build/html/.buildinfo
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+install -D doc/build/man/pythonjenkins.1 $RPM_BUILD_ROOT%{_mandir}/man1/pythonjenkins.1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING doc/build/html
+%{py_sitescriptdir}/jenkins/__init__.py[co]
+%{py_sitescriptdir}/python_jenkins-%{version}-py*.egg-info
+# this should be .3?
+%{_mandir}/man1/pythonjenkins.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-jenkins.git/commitdiff/b81162feebc0a86588b11fa38eeadfd5df205b02



More information about the pld-cvs-commit mailing list