-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy pathsoftlayer-python.spec
More file actions
53 lines (38 loc) · 1.55 KB
/
softlayer-python.spec
File metadata and controls
53 lines (38 loc) · 1.55 KB
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
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%global commit master
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: softlayer-python
Version: %{commit}
Release: 1%{?dist}
Summary: softlayer python interface
License: MIT
URL: https://github.com/softlayer/softlayer-python
Source: https://github.com/softlayer/softlayer-python/archive/%{commit}/softlayer-python-%{commit}.tar.gz
#BuildArch:
BuildRequires: python-devel, python-setuptools
Requires: python-requests, python-click, python-prettytable >= 0.7.0
Requires: python-importlib, python-six >= 1.6.1
%description
%prep
%setup -q
%build
# Remove CFLAGS=... for noarch packages (unneeded)
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%files
%doc
/usr/bin/sl
# For noarch packages: sitelib
%{python_sitelib}/*
# For arch-specific packages: sitearch
#%{python_sitearch}/*
%changelog
* Thu Oct 23 2014 Christopher Gallo <[email protected]> - master-2
- Changed Source to a proper github url, added python-setuptool build
requirement
* Wed Mar 19 2014 Andy Bakun <[email protected]> 773ab17-1
- initial packaging