* Fix parameter naming conflict: 'method_name' parameter from do_flickr_call() clashed with 'method_name' parameter required by the Flickr API method flickr.reflection.getMethodInfo (since 952c133 * Fixed typos [ Pull request #86 ] (Daniel Hohard) * Fixed infinite recursion calling FlickrAccessToken.str() * Use latest pip and enable cache on travis [ Pull request #100 ] (Thijs Triemstra) * Properly include text files in setup.py [ Pull request #101 ] (Thijs Triemstra) - Fix fdupes call OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flickrapi?expand=0&rev=13
71 lines
2.4 KiB
RPMSpec
71 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-flickrapi
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-flickrapi
|
|
Version: 2.4.0
|
|
Release: 0
|
|
Summary: Python interface to Flickr
|
|
License: Python-2.0
|
|
Group: Development/Libraries/Python
|
|
URL: http://stuvel.eu/projects/flickrapi
|
|
Source0: https://files.pythonhosted.org/packages/source/f/flickrapi/flickrapi-%{version}.tar.gz
|
|
BuildRequires: %{python_module requests-oauthlib}
|
|
BuildRequires: %{python_module requests-toolbelt}
|
|
BuildRequires: %{python_module requests}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module six}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-requests >= 2.4.3
|
|
Requires: python-requests-oauthlib >= 0.4.2
|
|
Requires: python-requests-toolbelt >= 0.3.1
|
|
Requires: python-six >= 1.8.0
|
|
BuildArch: noarch
|
|
%ifpython2
|
|
Provides: python-flickrapi-doc = %{version}
|
|
Obsoletes: python-flickrapi-doc < %{version}
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%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
|
|
%setup -q -n flickrapi-%{version}
|
|
sed -i "1d" flickrapi/__init__.py # Fix non-executable script
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
rm -rf %{buildroot}%{python_sitelib}/*.txt # Remove wrongly installed documentation
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc README.md
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|