blob: 4162a5ae03ac2c2eb088948a645814b0f87127ee (
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
|
%global commands service
Name: openlmi-scripts
Version: 0.1.1
Release: 1%{?dist}
Summary: Client-side python modules and command line utilities
License: BSD
URL: http://fedorahosted.org/openlmi
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
Requires: python2
Requires: openlmi-python-base >= 0.1.1
Requires: python-docopt >= 0.6.1
%description
Client-side python modules and command line utilities.
%prep
%setup -q
%build
%{__python} setup.py build
for cmd in %{commands}; do
pushd commands/$cmd
%{__python} setup.py build
popd
done
%install
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
for cmd in %{commands}; do
pushd commands/$cmd
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
popd
done
mkdir -p $RPM_BUILD_ROOT/etc/openlmi/scripts
install -m 0644 config/lmi.conf $RPM_BUILD_ROOT/etc/openlmi/scripts
%files
%doc README.md COPYING Changelog
%{_bindir}/lmi
%{_sysconfdir}/openlmi/scripts/lmi.conf
%dir %{python_sitelib}/lmi/scripts
%{python_sitelib}/lmi/scripts/*
%{python_sitelib}/lmi_scripts-*
%{python_sitelib}/lmi_scripts_service-*
%changelog
* Fri Aug 09 2013 Michal Minar <miminar@redhat.com> 0.1.1-1
- Rebased to 0.1.1
* Thu Aug 08 2013 Michal Minar <miminar@redhat.com> 0.1.0-1
- Initial version.
|