-
Notifications
You must be signed in to change notification settings - Fork 15
/
python3-susepubliccloudinfo.spec
63 lines (53 loc) · 1.98 KB
/
python3-susepubliccloudinfo.spec
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
57
58
59
60
61
62
63
#
# spec file for package python3-susepubliccloudinfo
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define upstream_name susepubliccloudinfo
Name: python3-susepubliccloudinfo
Version: 1.4.0
Release: 0
Summary: Query SUSE Public Cloud Info Service
License: GPL-3.0-or-later
Group: System/Management
Url: https://github.com/SUSE-Enceladus/public-cloud-info-client
Source0: %{upstream_name}-%{version}.tar.bz2
Requires: python3
Requires: python3-docopt
Requires: python3-lxml
Requires: python3-requests
BuildRequires: python3-setuptools
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Provides: python-susepubliccloudinfo = %{version}
Obsoletes: python-susepubliccloudinfo < %{version}
%description
Query the SUSE Public Cloud Information Service REST API
%prep
%setup -q -n %{upstream_name}-%{version}
%build
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -d -m 755 %{buildroot}/%{_mandir}/man1
install -m 644 man/man1/pint.1 %{buildroot}/%{_mandir}/man1
gzip %{buildroot}/%{_mandir}/man1/pint.1
%files
%defattr(-,root,root,-)
%license LICENSE
%{_mandir}/man1/*
%dir %{python3_sitelib}/susepubliccloudinfoclient
%{python3_sitelib}/*
%{_bindir}/pint
%changelog