Commit
The package built with this spec file was able to successfully build kolla images using the "kolla-build" tool on CentOS 7.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
Name: openstack-kolla | ||
Version: XXX | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
steveb
Author
Owner
|
||
Release: XXX | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
Summary: Refresh system configuration | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
License: ASL 2.0 | ||
URL: http://pypi.python.org/pypi/kolla | ||
Source0: http://tarballs.openstack.org/kolla/kolla-%{version}.tar.gz | ||
|
||
BuildArch: noarch | ||
BuildRequires: python-setuptools | ||
BuildRequires: python2-devel | ||
BuildRequires: python-pbr | ||
This comment has been minimized.
Sorry, something went wrong.
sdake
|
||
|
||
Requires: python-setuptools | ||
Requires: python-gitdb | ||
Requires: GitPython | ||
Requires: python-jinja2 | ||
Requires: python-docker-py | ||
Requires: python-six | ||
Requires: python2-oslo-config | ||
Requires: python-crypto | ||
Requires: python-netaddr | ||
|
||
%description | ||
Templates and tools from the Kolla project to build OpenStack container images. | ||
|
||
%prep | ||
%setup -q -n kolla-%{upstream_version} | ||
This comment has been minimized.
Sorry, something went wrong.
chkumar246
|
||
|
||
%build | ||
%{__python} setup.py build | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
%install | ||
%{__python} setup.py install -O1 --skip-build --root %{buildroot} | ||
This comment has been minimized.
Sorry, something went wrong.
chkumar246
|
||
|
||
mkdir -p %{buildroot}%{_datadir}/kolla/docker | ||
cp -vr docker/ %{buildroot}%{_datadir}/kolla | ||
|
||
# setup.cfg required for kolla-build to discover the version | ||
install -p -D -m 644 setup.cfg %{buildroot}%{_datadir}/kolla/setup.cfg | ||
|
||
# remove tests | ||
rm -fr %{buildroot}%{python_sitelib}/kolla/tests | ||
This comment has been minimized.
Sorry, something went wrong.
chkumar246
|
||
|
||
# remove tools | ||
rm -fr %{buildroot}%{_datadir}/kolla/tools | ||
|
||
%files | ||
%doc README.rst | ||
%doc LICENSE | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
%doc %{_datadir}/kolla/doc | ||
%doc %{_datadir}/kolla/etc_examples | ||
This comment has been minimized.
Sorry, something went wrong.
chkumar246
|
||
%doc %{_datadir}/kolla/openrc-example | ||
This comment has been minimized.
Sorry, something went wrong.
chkumar246
|
||
%{_bindir}/kolla-build | ||
%{_bindir}/kolla-genpwd | ||
%{python_sitelib}/kolla* | ||
%{_datadir}/kolla/docker | ||
%{_datadir}/kolla/setup.cfg | ||
|
||
%changelog |
3 comments
on commit cfc07ca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Steve,
I'm not sure if you have read through this wall of text: https://fedoraproject.org/wiki/Packaging:Guidelines
but its worth a read if you can spare 5-10 hours :) If not, skip ahead to:
https://fedoraproject.org/wiki/Packaging:Guidelines#Use_rpmlint
If you wan't to go further on bulletproofing the spec file, I'd highly recommend using this tool available in EPEL (sudo yum install fedora-review) that automates the process of checking for packaging defects:
https://fedorahosted.org/FedoraReview/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rpmlint passes other than the 404 for kolla-XXX.tar.gz, but every RDO spec file does this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work steve!
I'm a fan of Vin Diesel, however, XXX doesn't seem to make sense for the Version 👍