[python-oslo-rootwrap] initial commit

Matthias Runge mrunge at fedoraproject.org
Tue Jan 21 16:27:39 UTC 2014


commit 6080c8aa3f9624cb22dc34bd0ecfebddfe6e11a8
Author: Matthias Runge <mrunge at redhat.com>
Date:   Tue Jan 21 17:27:46 2014 +0100

    initial commit

 .gitignore                |    1 +
 python-oslo-rootwrap.spec |   52 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 54 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2987e3b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/oslo.rootwrap-1.0.0.tar.gz
diff --git a/python-oslo-rootwrap.spec b/python-oslo-rootwrap.spec
new file mode 100644
index 0000000..41e9a18
--- /dev/null
+++ b/python-oslo-rootwrap.spec
@@ -0,0 +1,52 @@
+%global pypi_name oslo.rootwrap
+
+Name:           python-oslo-rootwrap
+Version:        1.0.0
+Release:        1%{?dist}
+Summary:        Oslo Rootwrap
+
+License:        ASL 2.0
+URL:            https://launchpad.net/oslo
+Source0:        https://pypi.python.org/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-pbr
+
+
+%description
+The Oslo Rootwrap allows fine filtering of shell commands to run as `root`
+from OpenStack services.
+
+Unlike other Oslo deliverables, it should **not** be used as a Python library,
+but called as a separate process through the `oslo-rootwrap` command:
+
+`sudo oslo-rootwrap ROOTWRAP_CONFIG COMMAND_LINE`
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+#%check
+#%{__python} setup.py test
+
+%files
+%doc README.rst LICENSE
+%{_bindir}/oslo-rootwrap
+%dir %{python_sitelib}/oslo
+%{python_sitelib}/oslo/rootwrap
+%{python_sitelib}/oslo.rootwrap-%{version}*
+
+%changelog
+* Mon Jan 20 2014 Matthias Runge <mrunge at redhat.com> - 1.0.0-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..ca93971 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+62bfe9c8f0e418fd31edd54009cf4141  oslo.rootwrap-1.0.0.tar.gz


More information about the scm-commits mailing list