blob: dfba0da7881038979e5da007211773d201da95a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
%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
|