summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Deza <alfredo.deza@inktank.com>2013-08-28 10:41:34 -0400
committerAlfredo Deza <alfredo.deza@inktank.com>2013-08-28 11:02:42 -0400
commitca8040e3495dbd8d0cb6cbff88c98858e3f392e0 (patch)
tree5a05769ed9e1ffb2eee47193e8cfcde78bf25570
parent9297cefa347bb7d5f9292f02d3a69a1bf5fbc9a0 (diff)
downloadceph-ca8040e3495dbd8d0cb6cbff88c98858e3f392e0.tar.gz
add the spec and debian files for ceph-rest packaging
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
-rw-r--r--src/pybind/ceph-rest/ceph-rest.spec70
-rw-r--r--src/pybind/ceph-rest/debian/ceph-rest.install1
-rw-r--r--src/pybind/ceph-rest/debian/changelog0
-rw-r--r--src/pybind/ceph-rest/debian/compat1
-rw-r--r--src/pybind/ceph-rest/debian/control19
-rw-r--r--src/pybind/ceph-rest/debian/copyright3
-rwxr-xr-xsrc/pybind/ceph-rest/debian/rules8
-rw-r--r--src/pybind/ceph-rest/debian/source/format1
8 files changed, 103 insertions, 0 deletions
diff --git a/src/pybind/ceph-rest/ceph-rest.spec b/src/pybind/ceph-rest/ceph-rest.spec
new file mode 100644
index 00000000000..ad8d29965c6
--- /dev/null
+++ b/src/pybind/ceph-rest/ceph-rest.spec
@@ -0,0 +1,70 @@
+#
+# spec file for package ceph-rest
+#
+
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+#################################################################################
+# common
+#################################################################################
+Name: ceph-rest
+Version: 0.67
+Release: 0
+Summary: Restful HTTP API for Ceph
+License: MIT
+Group: System/Filesystems
+URL: http://ceph.com/
+Source0: %{name}-%{version}.tar.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+%if 0%{?suse_version} && 0%{?suse_version} <= 1110
+%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%else
+BuildArch: noarch
+%endif
+
+#################################################################################
+# specific
+#################################################################################
+%if 0%{defined suse_version}
+%py_requires
+%if 0%{?suse_version} > 1210
+Requires: gptfdisk
+%else
+Requires: scsirastools
+%endif
+%else
+Requires: gdisk
+%endif
+
+%if 0%{?rhel}
+BuildRequires: python >= %{pyver}
+Requires: python >= %{pyver}
+%endif
+
+%description
+Restful HTTP API for Ceph
+
+%prep
+#%setup -q -n %{name}
+%setup -q
+
+%build
+#python setup.py build
+
+%install
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+%clean
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
+
+%files
+%defattr(-,root,root)
+%doc LICENSE README.rst
+%{python_sitelib}/*
+
+%changelog
diff --git a/src/pybind/ceph-rest/debian/ceph-rest.install b/src/pybind/ceph-rest/debian/ceph-rest.install
new file mode 100644
index 00000000000..8b137891791
--- /dev/null
+++ b/src/pybind/ceph-rest/debian/ceph-rest.install
@@ -0,0 +1 @@
+
diff --git a/src/pybind/ceph-rest/debian/changelog b/src/pybind/ceph-rest/debian/changelog
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/src/pybind/ceph-rest/debian/changelog
diff --git a/src/pybind/ceph-rest/debian/compat b/src/pybind/ceph-rest/debian/compat
new file mode 100644
index 00000000000..7f8f011eb73
--- /dev/null
+++ b/src/pybind/ceph-rest/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/src/pybind/ceph-rest/debian/control b/src/pybind/ceph-rest/debian/control
new file mode 100644
index 00000000000..3a53105928a
--- /dev/null
+++ b/src/pybind/ceph-rest/debian/control
@@ -0,0 +1,19 @@
+Source: ceph-rest
+Maintainer: Sage Weil <sage@newdream.net>
+Uploaders: Sage Weil <sage@newdream.net>
+Section: admin
+Priority: optional
+Build-Depends: debhelper (>= 7), python-setuptools
+X-Python-Version: >= 2.4
+Standards-Version: 3.9.2
+Homepage: http://ceph.com/
+Vcs-Git: git://github.com/ceph/ceph-deploy.git
+Vcs-Browser: https://github.com/ceph/ceph-deploy
+
+Package: ceph-rest
+Architecture: all
+Depends: python,
+ python-setuptools,
+ ${misc:Depends},
+ ${python:Depends}
+Description: Argument parser utility for the Ceph CLI
diff --git a/src/pybind/ceph-rest/debian/copyright b/src/pybind/ceph-rest/debian/copyright
new file mode 100644
index 00000000000..93bc5303367
--- /dev/null
+++ b/src/pybind/ceph-rest/debian/copyright
@@ -0,0 +1,3 @@
+Files: *
+Copyright: (c) 2004-2012 by Sage Weil <sage@newdream.net>
+License: LGPL2.1 (see /usr/share/common-licenses/LGPL-2.1)
diff --git a/src/pybind/ceph-rest/debian/rules b/src/pybind/ceph-rest/debian/rules
new file mode 100755
index 00000000000..45200da0e78
--- /dev/null
+++ b/src/pybind/ceph-rest/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+%:
+ dh $@ --buildsystem python_distutils --with python2
+
diff --git a/src/pybind/ceph-rest/debian/source/format b/src/pybind/ceph-rest/debian/source/format
new file mode 100644
index 00000000000..d3827e75a5c
--- /dev/null
+++ b/src/pybind/ceph-rest/debian/source/format
@@ -0,0 +1 @@
+1.0