diff options
author | Alfredo Deza <alfredo.deza@inktank.com> | 2013-08-28 09:59:50 -0400 |
---|---|---|
committer | Alfredo Deza <alfredo.deza@inktank.com> | 2013-08-28 09:59:50 -0400 |
commit | a4efdd7c065e4c7eae31a7838feabaeb2bd1da9e (patch) | |
tree | 7abe26ab5976bdc703fca8277572f7db571e63f2 | |
parent | 22874de772bfdbaf8e7a6e31f9673aa0c4407dd4 (diff) | |
download | ceph-a4efdd7c065e4c7eae31a7838feabaeb2bd1da9e.tar.gz |
add the spec and debian files for argparse packaging
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
-rw-r--r-- | src/pybind/ceph-argparse/ceph-argparse.spec | 70 | ||||
-rw-r--r-- | src/pybind/ceph-argparse/debian/ceph-argparse.install | 1 | ||||
-rw-r--r-- | src/pybind/ceph-argparse/debian/changelog | 0 | ||||
-rw-r--r-- | src/pybind/ceph-argparse/debian/compat | 1 | ||||
-rw-r--r-- | src/pybind/ceph-argparse/debian/control | 19 | ||||
-rw-r--r-- | src/pybind/ceph-argparse/debian/copyright | 3 | ||||
-rwxr-xr-x | src/pybind/ceph-argparse/debian/rules | 8 | ||||
-rw-r--r-- | src/pybind/ceph-argparse/debian/source/format | 1 |
8 files changed, 103 insertions, 0 deletions
diff --git a/src/pybind/ceph-argparse/ceph-argparse.spec b/src/pybind/ceph-argparse/ceph-argparse.spec new file mode 100644 index 00000000000..a475fcdee84 --- /dev/null +++ b/src/pybind/ceph-argparse/ceph-argparse.spec @@ -0,0 +1,70 @@ +# +# spec file for package ceph-argparse +# + +%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-argparse +Version: 0.67 +Release: 0 +Summary: Argument parser for the Ceph CLI +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 +An argument parser utility for the Ceph CLI. + +%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-argparse/debian/ceph-argparse.install b/src/pybind/ceph-argparse/debian/ceph-argparse.install new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/pybind/ceph-argparse/debian/ceph-argparse.install @@ -0,0 +1 @@ + diff --git a/src/pybind/ceph-argparse/debian/changelog b/src/pybind/ceph-argparse/debian/changelog new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/src/pybind/ceph-argparse/debian/changelog diff --git a/src/pybind/ceph-argparse/debian/compat b/src/pybind/ceph-argparse/debian/compat new file mode 100644 index 00000000000..7f8f011eb73 --- /dev/null +++ b/src/pybind/ceph-argparse/debian/compat @@ -0,0 +1 @@ +7 diff --git a/src/pybind/ceph-argparse/debian/control b/src/pybind/ceph-argparse/debian/control new file mode 100644 index 00000000000..817104745c7 --- /dev/null +++ b/src/pybind/ceph-argparse/debian/control @@ -0,0 +1,19 @@ +Source: ceph-argparse +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-argparse +Architecture: all +Depends: python, + python-setuptools, + ${misc:Depends}, + ${python:Depends} +Description: Argument parser utility for the Ceph CLI diff --git a/src/pybind/ceph-argparse/debian/copyright b/src/pybind/ceph-argparse/debian/copyright new file mode 100644 index 00000000000..93bc5303367 --- /dev/null +++ b/src/pybind/ceph-argparse/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-argparse/debian/rules b/src/pybind/ceph-argparse/debian/rules new file mode 100755 index 00000000000..45200da0e78 --- /dev/null +++ b/src/pybind/ceph-argparse/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-argparse/debian/source/format b/src/pybind/ceph-argparse/debian/source/format new file mode 100644 index 00000000000..d3827e75a5c --- /dev/null +++ b/src/pybind/ceph-argparse/debian/source/format @@ -0,0 +1 @@ +1.0 |