[python-halite/el6] Initial build (0.1.02-1)

Erik Johnson terminalmage at fedoraproject.org
Mon Oct 21 19:12:44 UTC 2013


commit 1e63ed4dbdecd7471000d1e927bb9e7d5459d4d6
Author: Erik Johnson <erik at saltstack.com>
Date:   Mon Oct 21 14:11:54 2013 -0500

    Initial build (0.1.02-1)

 .gitignore         |    2 ++
 python-halite.spec |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    2 ++
 3 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0854c9c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/halite-0.1.02.tar.gz
+/LICENSE
diff --git a/python-halite.spec b/python-halite.spec
new file mode 100644
index 0000000..0ceb550
--- /dev/null
+++ b/python-halite.spec
@@ -0,0 +1,51 @@
+%if ! (0%{?rhel} >= 6 || 0%{?fedora} > 12)
+%global pybasever 2.6
+%global __python_ver 26
+%global __python %{_bindir}/python%{?pybasever}
+%endif
+
+%global _realname halite
+
+Name:           python-halite
+Version:        0.1.02
+Release:        1%{?dist}
+Summary:        SaltStack Web UI
+
+Group:          Development/Languages
+License:        ASL 2.0
+URL:            https://github.com/saltstack/halite/
+Source0:        https://pypi.python.org/packages/source/h/%{_realname}/%{_realname}-%{version}.tar.gz
+Source1:        https://raw.github.com/saltstack/%{_realname}/v%{version}/LICENSE
+BuildArch:      noarch
+
+BuildRequires:  python-setuptools
+
+Requires:       python-cherrypy
+
+%description
+Halite is a Salt GUI. Status is pre-alpha. Contributions are very welcome. Join
+us in #salt-devel on Freenode or on the salt-users mailing list.
+
+%prep
+%setup -q -n %{_realname}-%{version}
+
+%build
+
+%install
+install -p -m 0644 %{SOURCE1} $RPM_BUILD_DIR/LICENSE
+%{__python} setup.py install -O1 --root $RPM_BUILD_ROOT
+
+# Remove shebang
+sed -i '1{\@^#!/usr/bin/env python at d}' ${RPM_BUILD_ROOT}%{python_sitelib}/%{_realname}/bottle.py
+
+# Add execute bit for scripts which need to be executed
+chmod 0755 ${RPM_BUILD_ROOT}%{python_sitelib}/%{_realname}/server_bottle.py
+chmod 0755 ${RPM_BUILD_ROOT}%{python_sitelib}/%{_realname}/genindex.py
+
+%files
+%doc $RPM_BUILD_DIR/LICENSE
+%{python_sitelib}/*
+
+%changelog
+* Mon Oct 21 2013 Erik Johnson <erik at saltstack.com> - 0.1.02-1
+- Initial build.
diff --git a/sources b/sources
index e69de29..ea7531a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+95036f4ce98a7d86848345780fb4456c  halite-0.1.02.tar.gz
+e9c9d1b993e11b014ae93be378dfbf64  LICENSE


More information about the scm-commits mailing list