# # spec file for package python-flickrapi (Version 1.3) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: python-flickrapi %define _name flickrapi License: Python 2.5 license Group: Development/Libraries/Python Version: 1.3 Release: 1 Summary: Python interface to Flickr Url: http://stuvel.eu/projects/flickrapi Source: %{_name}-%{version}.tar.bz2 BuildRequires: docutils BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: python-xml Requires: python-xml BuildRoot: %{_tmppath}/%{name}-%{version}-build %py_requires %if %suse_version <= 1110 %define python_sitelib %{py_sitedir} %else BuildArch: noarch %endif %description The easiest to use, most complete, and most actively developed Python interface to the Flickr API. It includes support for authorized and non-authorized access, uploading and replacing photos, and all Flickr API functions. %package doc License: Python 2.5 license Group: Development/Libraries/Python Summary: Python interface to Flickr - Documentation Requires: %{name} = %{version} %description doc The easiest to use, most complete, and most actively developed Python interface to the Flickr API. It includes support for authorized and non-authorized access, uploading and replacing photos, and all Flickr API functions. %prep %setup -q -n %{_name}-%{version} %build %{__python} setup.py build %install %{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %doc LICENSE README UPGRADING %{python_sitelib}/%{_name}-%{version}-py2.6.egg-info %{python_sitelib}/%{_name}/ %files doc %defattr(-,root,root) %{_datadir}/doc/%{_name}-%{version} %changelog