forked from SYNHAK/spiff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spiff.spec
62 lines (42 loc) · 1.41 KB
/
spiff.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
# 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))")}
Name: spiff
Version: 0.1.0
Release: 1%{?dist}
Summary: Spaceman Spiff Manages Spaces
License: AGPLv2
URL: http://github.com/synhak/spiff
Source0: %{name}-%{version}.tar.bz2
BuildArch: noarch
BuildRequires: python-devel
%description
Spaceman Spiff Manages Spaces
%package -n python-spiff
Summary: Python client to Spiff
%description -n python-spiff
Python client to Spiff
%package bonehead-plugin
Summary: A bonehead plugin for Spiff
Requires: bonehead = 0.1.0
%description bonehead-plugin
A bonehead plugin for Spiff
%prep
%setup -q
%build
cd client/python/
# Remove CFLAGS=... for noarch packages (unneeded)
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
cd client/python/
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
cd ../bonehead/
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%files -n python-spiff
%doc
# For noarch packages: sitelib
%{python_sitelib}/*
%files bonehead-plugin
%{_datadir}/bonehead/plugins/*
%changelog