File: softlayer-python.spec

package info (click to toggle)
python-softlayer 6.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,508 kB
  • sloc: python: 57,195; makefile: 133; xml: 97; sh: 59
file content (53 lines) | stat: -rw-r--r-- 1,583 bytes parent folder | download | duplicates (5)
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 <chrisagallo@gmail.com> - master-2
- Changed Source to a proper github url, added python-setuptool build
  requirement

* Wed Mar 19 2014 Andy Bakun <rpmbuild@thwartedefforts.org> 773ab17-1
- initial packaging