summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott K Logan <logans@cottsay.net>2014-03-06 13:22:18 -0700
committerScott K Logan <logans@cottsay.net>2014-03-06 13:22:18 -0700
commitb21287006bc6e783708485afb0bf974d76ef7229 (patch)
tree8b352b688e3b3e15af446eecd6435b60c4a03ed9
parentee75f9486c02a910ccfa5fa2837942c4f42629ec (diff)
downloadpython-jenkins-b21287006bc6e783708485afb0bf974d76ef7229.tar.gz
python-jenkins-b21287006bc6e783708485afb0bf974d76ef7229.tar.xz
python-jenkins-b21287006bc6e783708485afb0bf974d76ef7229.zip
Initial package
-rw-r--r--.gitignore1
-rw-r--r--python-jenkins.spec52
-rw-r--r--sources1
3 files changed, 54 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..6184566 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/sources b/sources
index e69de29..3b124bf 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4e9ff3c2e6b0ae8da59a6c46080df898 python-jenkins-0.2.1.tar.gz