summaryrefslogtreecommitdiff
path: root/packaging/python-gerritrest.spec
blob: 4ce11a95df68c8b959c41b006a96a3bda3bae629 (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
Name:           python-gerritrest
Version:        0.1.0
%if 0%{?opensuse_bs}
Release:        0.dev.<CI_CNT>.<B_CNT>
%else
Release:        0
%endif
Summary:        Python library to access Gerrit via REST API
License:        GPL-2
Group:          Development/Languages/Python
Url:            http://download.tizen.org/tools
Source:         gerritrest-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
%py_requires
%endif
BuildArch:      noarch
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%description
Very simple Python library to access various Gerrit objects via REST APIs

%prep
%setup -q -n gerritrest-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%doc README.rst
#{_bindir}/*
%{python_sitelib}/*

%changelog