summaryrefslogtreecommitdiff
path: root/spec/python-obsapi.spec.tmpl
blob: d0b206e5b13c999c1f20670acb3f70f0516172b8 (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
53
54
55
56
#
# spec file for package python-obsapi (version __version__)
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.


%{?!python_module:%define python_module() python-%{**} python3-%{**}}

Name:           python-obsapi
Version:        __version__
Release:        0
Summary:        Python library abstracting the OBS api
License:        GPL-2.0
Group:          Development/Languages/Python
BuildRequires:  python-rpm-macros
BuildRequires:  %{pythons}
BuildRequires:  %{python_module setuptools}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         obsapi-%{version}.tar.bz2

%python_subpackages

%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%description
The obsapi library is meant to provide a simple set of abstractions to the
Open Build Service api for use in python scripting.

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

%build
%python_build

%install
%python_install

%clean
rm -rf %{buildroot}

%files %{python_files}
%defattr(-,root,root)
%doc README.rst AUTHORS COPYING ChangeLog
%{python_sitelib}/obsapi
%{python_sitelib}/obsapi-%{version}-py*.egg-info

%changelog