-
Notifications
You must be signed in to change notification settings - Fork 0
/
openstack-tripleo-puppet-elements.spec
43 lines (34 loc) · 1.24 KB
/
openstack-tripleo-puppet-elements.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
# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
Name: openstack-tripleo-puppet-elements
Summary: OpenStack TripleO Puppet Elements for diskimage-builder
Version: XXX
Release: XXX
License: ASL 2.0
Group: System Environment/Base
URL: https://wiki.openstack.org/wiki/TripleO
Source0: http://tarballs.openstack.org/tripleo-puppet-elements/tripleo-puppet-elements-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-d2to1
BuildRequires: python-pbr
%description
OpenStack TripleO Puppet Elements is a collection of elements for
diskimage-builder that can be used to build OpenStack images configured with
Puppet for the TripleO program.
%prep
%setup -q -n tripleo-puppet-elements-%{upstream_version}
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
# remove .git-keep-empty files that get installed
find %{buildroot} -name .git-keep-empty | xargs rm -f
%files
%doc LICENSE
%doc README.md
%{python_sitelib}/tripleo_puppet_elements*
%{_datadir}/tripleo-puppet-elements
%changelog