diff options
author | Alfredo Deza <alfredo.deza@inktank.com> | 2013-08-28 11:06:24 -0400 |
---|---|---|
committer | Gary Lowell <gary.lowell@inktank.com> | 2013-10-09 10:04:51 -0700 |
commit | ebe48981264cb079cd0ad56a76d8831d63cf8ff0 (patch) | |
tree | 2e02d38aa6eccb34ed381462972c1f5be3126d1e | |
parent | a75a578e4174c6a0a93010093416d74dea0d32f2 (diff) | |
download | ceph-ebe48981264cb079cd0ad56a76d8831d63cf8ff0.tar.gz |
add the spec and debian files for rbd packaging
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
-rw-r--r-- | src/pybind/rbd/debian/changelog | 0 | ||||
-rw-r--r-- | src/pybind/rbd/debian/compat | 1 | ||||
-rw-r--r-- | src/pybind/rbd/debian/control | 19 | ||||
-rw-r--r-- | src/pybind/rbd/debian/copyright | 3 | ||||
-rw-r--r-- | src/pybind/rbd/debian/rbd.install | 1 | ||||
-rwxr-xr-x | src/pybind/rbd/debian/rules | 8 | ||||
-rw-r--r-- | src/pybind/rbd/debian/source/format | 1 | ||||
-rw-r--r-- | src/pybind/rbd/rbd.spec | 70 |
8 files changed, 103 insertions, 0 deletions
diff --git a/src/pybind/rbd/debian/changelog b/src/pybind/rbd/debian/changelog new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/src/pybind/rbd/debian/changelog diff --git a/src/pybind/rbd/debian/compat b/src/pybind/rbd/debian/compat new file mode 100644 index 00000000000..7f8f011eb73 --- /dev/null +++ b/src/pybind/rbd/debian/compat @@ -0,0 +1 @@ +7 diff --git a/src/pybind/rbd/debian/control b/src/pybind/rbd/debian/control new file mode 100644 index 00000000000..80182b236f0 --- /dev/null +++ b/src/pybind/rbd/debian/control @@ -0,0 +1,19 @@ +Source: rbd +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: rbd +Architecture: all +Depends: python, + python-setuptools, + ${misc:Depends}, + ${python:Depends} +Description: Argument parser utility for the Ceph CLI diff --git a/src/pybind/rbd/debian/copyright b/src/pybind/rbd/debian/copyright new file mode 100644 index 00000000000..93bc5303367 --- /dev/null +++ b/src/pybind/rbd/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/rbd/debian/rbd.install b/src/pybind/rbd/debian/rbd.install new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/pybind/rbd/debian/rbd.install @@ -0,0 +1 @@ + diff --git a/src/pybind/rbd/debian/rules b/src/pybind/rbd/debian/rules new file mode 100755 index 00000000000..45200da0e78 --- /dev/null +++ b/src/pybind/rbd/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/rbd/debian/source/format b/src/pybind/rbd/debian/source/format new file mode 100644 index 00000000000..d3827e75a5c --- /dev/null +++ b/src/pybind/rbd/debian/source/format @@ -0,0 +1 @@ +1.0 diff --git a/src/pybind/rbd/rbd.spec b/src/pybind/rbd/rbd.spec new file mode 100644 index 00000000000..64ca73e2427 --- /dev/null +++ b/src/pybind/rbd/rbd.spec @@ -0,0 +1,70 @@ +# +# spec file for package rbd +# + +%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: rbd +Version: 0.67 +Release: 0 +Summary: Python bindings for Ceph RBD +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 +Python bindings for Ceph RBD + +%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 |