-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-osprofiler.spec
64 lines (47 loc) · 1.37 KB
/
python-osprofiler.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
64
# Created by pyp2rpm-1.1.0b
%global pypi_name osprofiler
Name: python-%{pypi_name}
Version: XXX
Release: XXX
Summary: OpenStack Profiler Library
License: ASL 2.0
URL: http://www.openstack.org/
Source0: https://pypi.python.org/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-pbr
Requires: python-six
Requires: python-webob
%description
OSProfiler is an OpenStack cross-project profiling library.
%package doc
Summary: Documentation for the OpenStack Profiler Library
Group: Documentation
BuildRequires: python-sphinx
BuildRequires: python-oslo-sphinx
BuildRequires: git
%description doc
Documentation for the OpenStack Profiler Library
%prep
%setup -q -n %{pypi_name}-%{upstream_version}
# Let RPM handle the dependencies
rm -f requirements.txt
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%{__python2} setup.py build
# generate html docs
sphinx-build doc/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
%files
%doc README.rst LICENSE
%{_bindir}/osprofiler
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-*.egg-info
%files doc
%doc LICENSE html
%changelog