incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1091426 - in /incubator/deltacloud/trunk/clients/python: MANIFEST.in python-deltacloud-client.spec setup.py
Date Tue, 12 Apr 2011 14:16:56 GMT
Author: mfojtik
Date: Tue Apr 12 14:16:56 2011
New Revision: 1091426

URL: http://svn.apache.org/viewvc?rev=1091426&view=rev
Log:
Added files for Python client packaging

Added:
    incubator/deltacloud/trunk/clients/python/MANIFEST.in
    incubator/deltacloud/trunk/clients/python/python-deltacloud-client.spec
    incubator/deltacloud/trunk/clients/python/setup.py

Added: incubator/deltacloud/trunk/clients/python/MANIFEST.in
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/clients/python/MANIFEST.in?rev=1091426&view=auto
==============================================================================
--- incubator/deltacloud/trunk/clients/python/MANIFEST.in (added)
+++ incubator/deltacloud/trunk/clients/python/MANIFEST.in Tue Apr 12 14:16:56 2011
@@ -0,0 +1 @@
+include deltacloud.py

Added: incubator/deltacloud/trunk/clients/python/python-deltacloud-client.spec
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/clients/python/python-deltacloud-client.spec?rev=1091426&view=auto
==============================================================================
--- incubator/deltacloud/trunk/clients/python/python-deltacloud-client.spec (added)
+++ incubator/deltacloud/trunk/clients/python/python-deltacloud-client.spec Tue Apr 12 14:16:56
2011
@@ -0,0 +1,55 @@
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%global with_python3 1
+%else
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import
get_python_lib; print (get_python_lib())")}
+%endif
+
+%global srcname python-deltacloud-client
+
+Name:           python-deltacloud-client
+Version:        0.0.1
+Release:        1%{?dist}
+Summary:        Deltacloud API client for Python
+Group:          Applications/System
+License:        ASL 2.0
+URL:            http://incubator.apache.org/deltacloud
+Source0:        http://incubator.apache.org/deltacloud/clients/%{srcname}-%{version}.tar.gz
+BuildArch:      noarch
+Requires:       python2
+Requires:       libxml2-python
+Requires:       python(httplib2)
+
+%description
+Python REST client library used for communication with Deltacloud API
+
+%if 0%{?with_python3}
+%package -n python3-deltacloud-client
+Summary:        Deltacloud API client for Python
+Group:          Applications/System
+
+%description -n python3-deltacloud-client
+Python REST client library used for communication with Deltacloud API
+%endif # with_python3
+
+%prep
+%setup -q -n %{srcname}-%{version}
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%{python_sitelib}/*
+
+%changelog
+
+* Thu Mar 31 2011 Michal Fojtik <mfojtik@redhat.com> - 0.0.1-1
+Initial import

Added: incubator/deltacloud/trunk/clients/python/setup.py
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/clients/python/setup.py?rev=1091426&view=auto
==============================================================================
--- incubator/deltacloud/trunk/clients/python/setup.py (added)
+++ incubator/deltacloud/trunk/clients/python/setup.py Tue Apr 12 14:16:56 2011
@@ -0,0 +1,13 @@
+from distutils.core import setup
+
+VERSION='0.0.1'
+
+setup(name='deltacloud-client',
+      version=VERSION,
+      description='Python client wrapper for Deltacloud API',
+      author='Michal Fojtik',
+      author_email='mfojtik@redhat.com',
+      license='GPLv2',
+      url='http://incubator.apache.org/deltacloud/',
+      py_modules=[ 'deltacloud' ]
+      )



Mime
View raw message