blob: 13bac9057118e0bff1b97a4002d6a5f7685be0d9 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
%global srcname novaclient-os-diskconfig
%global upstreamname os_diskconfig_python_novaclient_ext
%if 0%{?fedora} >= 25
%global with_python3 1
%endif
Name: python-%{srcname}
Version: 0.1.3
Release: 1%{?dist}
Summary: Disk Config extension for python-novaclient
Group: Development/Libraries
License: ASL 2.0
URL: http://pypi.python.org/pypi/%{upstreamname}
Source0: http://pypi.python.org/packages/source/o/%{upstreamname}/%{upstreamname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
%if 0%{?with_python3}
BuildRequires: python3-devel
%endif
%description
%{summary}
%package -n python2-%{srcname}
Summary: %{summary}
BuildRequires: python-novaclient
Requires: python-novaclient
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
%{summary}
%if 0%{?with_python3}
%package -n python3-%{srcname}
Summary: %{summary}
BuildRequires: python3-novaclient
Requires: python3-novaclient
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{srcname}
%{summary}
%endif
%prep
%autosetup -n %{upstreamname}-%{version}
%build
%py2_build
%if 0%{?with_python3}
%py3_build
%endif
%install
%py2_install
%if 0%{?with_python3}
%py3_install
%endif
%check
%{__python2} setup.py test
%if 0%{?with_python3}
%{__python3} setup.py test
%endif
%files -n python2-%{srcname}
%doc README.rst
%{python2_sitelib}/*
%if 0%{?with_python3}
%files -n python3-%{srcname}
%doc README.rst
%{python3_sitelib}/*
%endif
%changelog
* Sat Dec 31 2016 Ricardo Cordeiro <gryfrev8-redhat.com-rjmco@tux.com.pt> - 0.1.3-1
- Added python3 sub-package for the releases that have the necessary dependencies
* Thu Mar 03 2016 Ricardo Cordeiro <gryfrev8-redhat.com-rjmco@tux.com.pt> - 0.1.3-1
- Initial package
|