forked from pool/python-flickrapi
Accepting request 305445 from home:benoit_monin:branches:devel:languages:python
update to version 2.0 - drop flickrapi-drop-bootstrap-distribute.patch: fixed upstream - point the source URL to pypi - remove unneeded depedencies to python-docutils, python-xml and unzip - add new dependencies required by upstream: * python-requests * python-requests-oauthlib * python-requests-toolbelt * python-six - always requires fdupes and run it after install - define python_sitelib only for SLE11 - doc is not provided anymore: do not build it - rename LICENSE, README, UPGRADING to LICENSE.txt, README.txt, UPGRADING.txt: changed upstream OBS-URL: https://build.opensuse.org/request/show/305445 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flickrapi?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
6c8b0452c2
commit
3ef3d494d9
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ac9304f571175b8af4fc2ee17d3e110847b526640665ca53d97bbf9df98329bc
|
||||
size 79045
|
||||
3
flickrapi-2.0.tar.gz
Normal file
3
flickrapi-2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f280ee1a3472728658044671d83a99eade8446f264ff192e04594d0732607849
|
||||
size 24157
|
||||
@@ -1,14 +0,0 @@
|
||||
Index: flickrapi-1.4.2/setup.py
|
||||
===================================================================
|
||||
--- flickrapi-1.4.2.orig/setup.py
|
||||
+++ flickrapi-1.4.2/setup.py
|
||||
@@ -5,9 +5,6 @@
|
||||
Run with "python setup.py install" to install FlickrAPI
|
||||
'''
|
||||
|
||||
-import distribute_setup
|
||||
-distribute_setup.use_setuptools()
|
||||
-
|
||||
import sys
|
||||
|
||||
# Check the Python version
|
||||
@@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 5 12:31:06 UTC 2015 - benoit.monin@gmx.fr
|
||||
|
||||
- update to version 2.0:
|
||||
* Major revision; now uses OAuth to interface with Flickr.
|
||||
Combines work of Sybren A. Stüvel, Jim Easterbrook,
|
||||
Thai Nguyen, Nick Loadholtes and Bengt.
|
||||
- drop flickrapi-drop-bootstrap-distribute.patch: fixed upstream
|
||||
- point the source URL to pypi
|
||||
- remove unneeded depedencies to python-docutils, python-xml
|
||||
and unzip
|
||||
- add new dependencies required by upstream:
|
||||
* python-requests
|
||||
* python-requests-oauthlib
|
||||
* python-requests-toolbelt
|
||||
* python-six
|
||||
- always requires fdupes and run it after install
|
||||
- define python_sitelib only for SLE11
|
||||
- doc is not provided anymore: do not build it
|
||||
- rename LICENSE, README, UPGRADING to LICENSE.txt, README.txt,
|
||||
UPGRADING.txt: changed upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 16 08:58:45 UTC 2013 - mvyskocil@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-flickrapi
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 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
|
||||
@@ -11,39 +11,38 @@
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
Name: python-flickrapi
|
||||
Version: 1.4.2
|
||||
Version: 2.0
|
||||
Release: 0
|
||||
Url: http://stuvel.eu/projects/flickrapi
|
||||
Summary: Python interface to Flickr
|
||||
License: Python-2.0
|
||||
Group: Development/Libraries/Python
|
||||
Source0: flickrapi-%{version}.zip
|
||||
Patch0: flickrapi-drop-bootstrap-distribute.patch
|
||||
Source0: https://pypi.python.org/packages/source/f/flickrapi/flickrapi-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-docutils
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-xml
|
||||
BuildRequires: unzip
|
||||
Requires: python-xml
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%if 0%{?suse_version} > 1010
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1110
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-requests >= 2.4.3
|
||||
BuildRequires: python-requests-oauthlib >= 0.4.2
|
||||
BuildRequires: python-requests-toolbelt >= 0.3.1
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-six >= 1.8.0
|
||||
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
|
||||
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()")}
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%description
|
||||
The easiest to use, most complete, and most actively developed
|
||||
@@ -54,19 +53,18 @@ photos, and all Flickr API functions.
|
||||
%prep
|
||||
%setup -q -n flickrapi-%{version}
|
||||
sed -i "1d" flickrapi/__init__.py # Fix non-executable script
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
cd doc && make # Build HTML documentation
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
rm -rf %{buildroot}/usr/{{LICENSE,README,UPGRADING},share/doc/flickrapi-%{version}} # Remove wrongly installed documentation
|
||||
rm -rf %{buildroot}%{python_sitelib}/*.txt # Remove wrongly installed documentation
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE README UPGRADING
|
||||
%doc LICENSE.txt README.txt UPGRADING.txt
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user