%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define srcname ubuntuone-storage-protocol Name: python-%{srcname} Version: 1.0.0 Release: 1%{?dist} Summary: Python module for Ubuntu One file storage and sharing service Group: Development/Languages License: AGPLv3 URL: http://ubuntuone.com Source: %{srcname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel BuildRequires: protobuf-compiler Requires: python-twisted-core Requires: python-oauth >= 1.0 Requires: pyxdg Requires: protobuf-python >= 2.0.3 BuildArch: noarch %description This package provides the network client library for accessing Ubuntu One file storage and sharing. This is the Python interface to Ubuntu One's online file storage and sharing service. %prep %setup -q -n %{srcname}-%{version} %build python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING HACKING README %{python_sitelib}/* %config(noreplace) %{_sysconfdir}/ssl/certs/UbuntuOne-Go_Daddy_CA.pem %config(noreplace) %{_sysconfdir}/ssl/certs/UbuntuOne-Go_Daddy_Class_2_CA.pem %changelog * Tue Nov 24 2009 Thomas Vander Stichele - 1.0.0-1 - initial package