[openstack-packstack/el6] Adding initial version of spec file

Derek Higgins derekh at fedoraproject.org
Mon Dec 3 10:56:17 UTC 2012


commit 24624584a9e99755b06bcbf7e08271657262cd4b
Author: Derek Higgins <derekh at redhat.com>
Date:   Mon Dec 3 10:37:20 2012 +0000

    Adding initial version of spec file

 .gitignore               |    1 +
 openstack-packstack.spec |   84 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 3 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fd0e6c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/packstack-2012.2.1dev197.tar.gz
diff --git a/openstack-packstack.spec b/openstack-packstack.spec
new file mode 100644
index 0000000..fb23849
--- /dev/null
+++ b/openstack-packstack.spec
@@ -0,0 +1,84 @@
+
+%global git_revno 197
+
+Name:           openstack-packstack
+Version:        2012.2.1
+#Release:       1%{?dist}
+Release:        1dev%{git_revno}%{?dist}
+Summary:        Openstack Install Utility
+
+Group:          Applications/System
+License:        ASL 2.0
+URL:            https://github.com/fedora-openstack/packstack
+#Source0:        https://github.com/downloads/fedora-openstack/packstack/packstack-%{version}.tar.gz
+Source0:        https://github.com/downloads/fedora-openstack/packstack/packstack-%{version}dev%{git_revno}.tar.gz
+
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+%if 0%{?rhel}
+BuildRequires:  python-sphinx10
+%else
+BuildRequires:  python-sphinx
+%endif
+
+Requires:       openssh-clients
+
+%description
+Packstack is a utility that uses puppet modules to install openstack
+packstack can be used to deploy various parts of openstack on multiple
+pre installed servers over ssh. It does this be using puppet manifests to
+apply puppet labs modules (https://github.com/puppetlabs/)
+
+%prep
+#%setup -n packstack-%{version}
+%setup -n packstack-%{version}dev%{git_revno}
+
+# Sanitizing a lot of the files in the puppet modules, they come from seperate upstream projects
+find packstack/puppet/modules \( -name .fixtures.yml -o -name .gemfile -o -name ".travis.yml" -o -name .rspec \) -exec rm {} \;
+find packstack/puppet/modules \( -name "*.py" -o -name "*.rb" -o -name "*.sh" -o -name "*.pl" \) -exec sed -i '/^#!/{d;q}' {} \; -exec chmod -x {} \;
+find packstack/puppet/modules -name site.pp -size 0 -exec rm {} \;
+
+# Moving this data directory out temporarily as it causes setup.py to throw errors
+rm -rf %{_builddir}/puppet
+mv packstack/puppet %{_builddir}/puppet
+
+%build
+# puppet on fedora already has this module, using this one causes problems
+%if 0%{?fedora}
+    rm -rf %{_builddir}/puppet/modules/create_resources
+%endif
+
+%{__python} setup.py build
+
+cd docs
+%if 0%{?rhel}
+make man SPHINXBUILD=sphinx-1.0-build
+%else
+make man
+%endif
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+mv %{_builddir}/puppet %{buildroot}/%{python_sitelib}/packstack/puppet
+
+mkdir -p %{buildroot}%{_mandir}/man1
+install -p -D -m 644 docs/_build/man/*.1 %{buildroot}%{_mandir}/man1/
+
+%files
+%doc LICENSE
+%{_bindir}/packstack
+%{python_sitelib}/packstack
+%{python_sitelib}/packstack-%{version}*.egg-info
+%{_mandir}/man1/packstack.1.gz
+
+%changelog
+
+* Fri Nov 30 2012 Derek Higgins <derekh at redhat.com> - 2012.2.1-1dev197
+- cleaning up spec file
+- updated to version 2012.2.1-1dev197
+
+* Wed Nov 28 2012 Derek Higgins <derekh at redhat.com> - 2012.2.1-1dev186
+- example packaging for Fedora / Redhat
+
diff --git a/sources b/sources
index e69de29..c1607f4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8fb78a47bd12107ab64dc3d97d3e2465  packstack-2012.2.1dev197.tar.gz


More information about the scm-commits mailing list