diff options
author | Alfredo Deza <alfredo.deza@inktank.com> | 2013-08-28 10:38:44 -0400 |
---|---|---|
committer | Alfredo Deza <alfredo.deza@inktank.com> | 2013-08-28 11:02:35 -0400 |
commit | 9297cefa347bb7d5f9292f02d3a69a1bf5fbc9a0 (patch) | |
tree | 9d183fffce4b707b6a0c9aa970159645c67a8e58 | |
parent | a4efdd7c065e4c7eae31a7838feabaeb2bd1da9e (diff) | |
download | ceph-9297cefa347bb7d5f9292f02d3a69a1bf5fbc9a0.tar.gz |
add the spec and debian files for cephfs packaging
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
-rw-r--r-- | src/pybind/cephfs/cephfs.spec | 70 | ||||
-rw-r--r-- | src/pybind/cephfs/debian/cephfs.install | 1 | ||||
-rw-r--r-- | src/pybind/cephfs/debian/changelog | 0 | ||||
-rw-r--r-- | src/pybind/cephfs/debian/compat | 1 | ||||
-rw-r--r-- | src/pybind/cephfs/debian/control | 19 | ||||
-rw-r--r-- | src/pybind/cephfs/debian/copyright | 3 | ||||
-rwxr-xr-x | src/pybind/cephfs/debian/rules | 8 | ||||
-rw-r--r-- | src/pybind/cephfs/debian/source/format | 1 |
8 files changed, 103 insertions, 0 deletions
diff --git a/src/pybind/cephfs/cephfs.spec b/src/pybind/cephfs/cephfs.spec new file mode 100644 index 00000000000..92f57cb05bc --- /dev/null +++ b/src/pybind/cephfs/cephfs.spec @@ -0,0 +1,70 @@ +# +# spec file for package cephfs +# + +%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: cephfs +Version: 0.67 +Release: 0 +Summary: Python bindings for the Ceph filesystem +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 the Ceph filesystem + +%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/cephfs/debian/cephfs.install b/src/pybind/cephfs/debian/cephfs.install new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/pybind/cephfs/debian/cephfs.install @@ -0,0 +1 @@ + diff --git a/src/pybind/cephfs/debian/changelog b/src/pybind/cephfs/debian/changelog new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/src/pybind/cephfs/debian/changelog diff --git a/src/pybind/cephfs/debian/compat b/src/pybind/cephfs/debian/compat new file mode 100644 index 00000000000..7f8f011eb73 --- /dev/null +++ b/src/pybind/cephfs/debian/compat @@ -0,0 +1 @@ +7 diff --git a/src/pybind/cephfs/debian/control b/src/pybind/cephfs/debian/control new file mode 100644 index 00000000000..658908d9fe7 --- /dev/null +++ b/src/pybind/cephfs/debian/control @@ -0,0 +1,19 @@ +Source: cephfs +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: cephfs +Architecture: all +Depends: python, + python-setuptools, + ${misc:Depends}, + ${python:Depends} +Description: Argument parser utility for the Ceph CLI diff --git a/src/pybind/cephfs/debian/copyright b/src/pybind/cephfs/debian/copyright new file mode 100644 index 00000000000..93bc5303367 --- /dev/null +++ b/src/pybind/cephfs/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/cephfs/debian/rules b/src/pybind/cephfs/debian/rules new file mode 100755 index 00000000000..45200da0e78 --- /dev/null +++ b/src/pybind/cephfs/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/cephfs/debian/source/format b/src/pybind/cephfs/debian/source/format new file mode 100644 index 00000000000..d3827e75a5c --- /dev/null +++ b/src/pybind/cephfs/debian/source/format @@ -0,0 +1 @@ +1.0 |