2010-02-11 15:18:48 +00:00
|
|
|
#
|
2011-05-30 14:39:01 +00:00
|
|
|
# spec file for package python-flickrapi
|
2010-02-11 15:18:48 +00:00
|
|
|
#
|
2017-05-17 08:19:09 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-02-11 15:18:48 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2017-05-17 08:19:09 +00:00
|
|
|
#
|
2010-02-11 15:18:48 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-flickrapi
|
2017-05-17 08:19:09 +00:00
|
|
|
Version: 1.4.2
|
2011-09-21 13:34:02 +00:00
|
|
|
Release: 0
|
|
|
|
Url: http://stuvel.eu/projects/flickrapi
|
|
|
|
Summary: Python interface to Flickr
|
2012-01-12 12:54:48 +00:00
|
|
|
License: Python-2.0
|
2010-02-11 15:18:48 +00:00
|
|
|
Group: Development/Libraries/Python
|
2017-05-17 08:19:09 +00:00
|
|
|
Source0: flickrapi-%{version}.zip
|
|
|
|
Patch0: flickrapi-drop-bootstrap-distribute.patch
|
2011-09-21 13:34:02 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-05-17 08:19:09 +00:00
|
|
|
BuildRequires: python-docutils
|
2010-02-11 15:18:48 +00:00
|
|
|
BuildRequires: python-devel
|
2017-05-17 08:19:09 +00:00
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-xml
|
|
|
|
BuildRequires: unzip
|
|
|
|
Requires: python-xml
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%py_requires
|
|
|
|
%if 0%{?suse_version} > 1010
|
|
|
|
BuildRequires: fdupes
|
2015-05-07 11:53:37 +00:00
|
|
|
%endif
|
2017-05-17 08:19:09 +00:00
|
|
|
%if 0%{?suse_version} > 1110
|
2017-05-16 16:14:54 +00:00
|
|
|
BuildArch: noarch
|
2017-05-17 08:19:09 +00:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Provides: python-flickrapi-doc = %{version}
|
|
|
|
Obsoletes: python-flickrapi-doc < %{version}
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
2010-02-11 15:18:48 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
2011-09-21 13:34:02 +00:00
|
|
|
%setup -q -n flickrapi-%{version}
|
|
|
|
sed -i "1d" flickrapi/__init__.py # Fix non-executable script
|
2017-05-17 08:19:09 +00:00
|
|
|
%patch0 -p1
|
2010-02-11 15:18:48 +00:00
|
|
|
|
|
|
|
%build
|
2017-05-17 08:19:09 +00:00
|
|
|
python setup.py build
|
|
|
|
cd doc && make # Build HTML documentation
|
2010-02-11 15:18:48 +00:00
|
|
|
|
|
|
|
%install
|
2017-05-17 08:19:09 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
rm -rf %{buildroot}/usr/{{LICENSE,README,UPGRADING},share/doc/flickrapi-%{version}} # Remove wrongly installed documentation
|
2010-02-11 15:18:48 +00:00
|
|
|
|
2017-05-17 08:19:09 +00:00
|
|
|
%files
|
2010-02-11 15:18:48 +00:00
|
|
|
%defattr(-,root,root)
|
2017-05-17 08:19:09 +00:00
|
|
|
%doc LICENSE README UPGRADING
|
2011-09-21 13:34:02 +00:00
|
|
|
%{python_sitelib}/*
|
2010-02-11 15:18:48 +00:00
|
|
|
|
|
|
|
%changelog
|