diff options
author | Scott K Logan <logans@cottsay.net> | 2014-03-06 13:22:18 -0700 |
---|---|---|
committer | Scott K Logan <logans@cottsay.net> | 2014-03-06 13:22:18 -0700 |
commit | b21287006bc6e783708485afb0bf974d76ef7229 (patch) | |
tree | 8b352b688e3b3e15af446eecd6435b60c4a03ed9 | |
parent | ee75f9486c02a910ccfa5fa2837942c4f42629ec (diff) | |
download | python-jenkins-b21287006bc6e783708485afb0bf974d76ef7229.tar.gz python-jenkins-b21287006bc6e783708485afb0bf974d76ef7229.tar.xz python-jenkins-b21287006bc6e783708485afb0bf974d76ef7229.zip |
Initial package
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-jenkins.spec | 52 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 54 insertions, 0 deletions
@@ -0,0 +1 @@ +/python-jenkins-0.2.1.tar.gz diff --git a/python-jenkins.spec b/python-jenkins.spec new file mode 100644 index 0000000..ddc470c --- /dev/null +++ b/python-jenkins.spec @@ -0,0 +1,52 @@ +Name: python-jenkins +Version: 0.2.1 +Release: 1%{?dist} +Summary: Python bindings for the remote Jenkins API + +Group: Development/Libraries +License: BSD +URL: http://launchpad.net/python-jenkins +Source0: https://launchpad.net/%{name}/0.2/%{version}/+download/%{name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python-mock +BuildRequires: python-nose +BuildRequires: python-sphinx +Requires: python2 + +%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 '/^#!\/usr\/bin\/env python$/d' jenkins/__init__.py + +%build +%{__python2} setup.py build +pushd doc +make html man +rm -f build/html/.buildinfo +popd doc + +%install +%{__python2} setup.py install --skip-build --root %{buildroot} +install -D -m0644 doc/build/man/pythonjenkins.1 %{buildroot}%{_mandir}/man1/pythonjenkins.1 + +%check +PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests -w tests + +%files +%doc COPYING doc/build/html +%{python2_sitelib}/jenkins +%{python2_sitelib}/python_jenkins-%{version}-py?.?.egg-info +%{_mandir}/man1/pythonjenkins.1.gz + +%changelog +* Fri Feb 21 2014 Scott K Logan <logans@cottsay.net> - 0.2.1-1 +- Initial package @@ -0,0 +1 @@ +4e9ff3c2e6b0ae8da59a6c46080df898 python-jenkins-0.2.1.tar.gz |