Iryna Shcherbina a149f7
%global srcname flickrapi
628e67
Iryna Shcherbina a149f7
Name:           python-%{srcname}
Iryna Shcherbina a149f7
Version:        2.2.1
d3ffb2
Release:        10%{?dist}
628e67
Summary:        Python module for interfacing with the Flickr API
628e67
License:        Python
Iryna Shcherbina a149f7
URL:            http://stuvel.eu/%{srcname}
Iryna Shcherbina a149f7
Source0:        https://files.pythonhosted.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz
628e67
628e67
BuildArch:      noarch
628e67
Iryna Shcherbina a149f7
BuildRequires:  python3-devel
Iryna Shcherbina a149f7
BuildRequires:  python3-setuptools
628e67
628e67
%description
628e67
A Python module for interfacing with the Flickr API.
628e67
628e67
Iryna Shcherbina a149f7
%package -n python3-%{srcname}
Iryna Shcherbina a149f7
Summary:  %{summary}
Iryna Shcherbina a149f7
Requires:  python3-six
Iryna Shcherbina a149f7
Requires:  python3-requests
Iryna Shcherbina a149f7
Requires:  python3-requests-toolbelt
Iryna Shcherbina a149f7
Requires:  python3-requests-oauthlib
Iryna Shcherbina a149f7
%{?python_provide:%python_provide python3-%{srcname}}
Iryna Shcherbina a149f7
Iryna Shcherbina a149f7
%description -n python3-%{srcname}
Iryna Shcherbina a149f7
A Python 3 tool which provides a convenient example.
Iryna Shcherbina a149f7
Iryna Shcherbina a149f7
628e67
%prep
Iryna Shcherbina a149f7
%setup -q -n %{srcname}-%{version}
Iryna Shcherbina a149f7
# Remove bundled egg-info
Iryna Shcherbina a149f7
rm -rf %{srcname}.egg-info
Iryna Shcherbina a149f7
628e67
628e67
%build
Iryna Shcherbina a149f7
%py3_build
628e67
628e67
628e67
%install
Iryna Shcherbina a149f7
%py3_install
Iryna Shcherbina a149f7
84174e
sed -i -e "s|#!/usr/bin/env python||" %{buildroot}/%{python3_sitelib}/flickrapi/__init__.py
628e67
628e67
Iryna Shcherbina a149f7
%files -n python3-%{srcname}
Iryna Shcherbina a149f7
%doc UPGRADING.txt
Iryna Shcherbina a149f7
%license LICENSE.txt
Iryna Shcherbina a149f7
%{python3_sitelib}/%{srcname}
Iryna Shcherbina a149f7
%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info
Iryna Shcherbina a149f7
%exclude %{python3_sitelib}/LICENSE.txt
Iryna Shcherbina a149f7
%exclude %{python3_sitelib}/UPGRADING.txt
628e67
628e67
628e67
%changelog
d3ffb2
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.2.1-10
d3ffb2
- Rebuilt for Python 3.8
d3ffb2
e6167e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-9
e6167e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e6167e
84174e
* Wed Apr 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.2.1-8
84174e
- Subpackage python2-flickrapi has been removed
84174e
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
84174e
20229a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-7
20229a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
20229a
1bb4af
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-6
1bb4af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1bb4af
b8a2f7
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.1-5
b8a2f7
- Rebuilt for Python 3.7
b8a2f7
89d2ce
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-4
89d2ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
89d2ce
41b114
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.2.1-3
41b114
- Update Python 2 dependency declarations to new packaging standards
41b114
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
41b114
7ccab7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
7ccab7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7ccab7
Iryna Shcherbina a149f7
* Tue Mar 28 2017 Iryna Shcherbina <ishcherb@redhat.com> - 2.2.1-1
Iryna Shcherbina a149f7
- Update to 2.2.1
Iryna Shcherbina a149f7
Iryna Shcherbina a149f7
* Tue Mar 28 2017 Dominika Krejci <dkrejci@redhat.com> - 2.1.2-1
Iryna Shcherbina a149f7
- Update to 2.1.2
Iryna Shcherbina a149f7
- Add Python 3
Iryna Shcherbina a149f7
- Remove setuptools.patch as it is upstream
Iryna Shcherbina a149f7
88a3f7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-11
88a3f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
88a3f7
6eac63
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-10
6eac63
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
6eac63
463221
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-9
463221
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
463221
85a7db
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-8
85a7db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
85a7db
5c3696
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-7
5c3696
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5c3696
1915b1
* Sun Aug 04 2013 Maxim Burgerhout <wzzrd@fedoraproject.org.> 1.4.2-6
1915b1
- Fixing breakage caused by distribute
1915b1
1c8c62
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-5
1c8c62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1c8c62
7afd73
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-4
7afd73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7afd73
26bfb3
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-3
26bfb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
26bfb3
c88358
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-2
c88358
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c88358
5f2526
* Thu Mar 24 2011 Maxim Burgerhout <wzzrd@fedoraproject.org> - 1.4-1
5f2526
- "New" upstream release
5f2526
- Using auth_callback=False when authentication is actually required now raises
5f2526
  a FlickrError exception.
5f2526
- The implementation uses self.flickr_host so that subclasses can override the
5f2526
  API URLs.
5f2526
- Support for short URLs was added.
5f2526
- Changed source url to .zip because .tar.gz no longer seems to be available
5f2526
d01e75
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-4
d01e75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d01e75
1d1157
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.3-3
1d1157
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
1d1157
0514d3
* Sun Jan 24 2010 Ian Weller <ian@ianweller.org> - 1.3-2
0514d3
- rebuild with inclusion of new tarball
0514d3
66c3f7
* Sun Jan 24 2010 Ian Weller <ian@ianweller.org> - 1.3-1
66c3f7
- 1.3
66c3f7
ea8fda
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
ea8fda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ea8fda
6f5077
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
6f5077
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6f5077
fe8d3b
* Wed Dec 17 2008 Ian Weller <ianweller@gmail.com> 1.2-1
fe8d3b
- 1.2
fe8d3b
- Update URL and Source0 locations
fe8d3b
fe8d3b
* Tue Nov 11 2008 Ian Weller <ianweller@gmail.com> 1.1-5
fe8d3b
- More specfile cleanup
c68b4f
628e67
* Wed Oct 22 2008 Ian Weller <ianweller@gmail.com> 1.1-4
628e67
- Remove python_sitearch variable
628e67
- Some specfile cleanup
628e67
628e67
* Tue Aug 05 2008 Kushal Das <kushal@fedoraproject.org> 1.1-3
628e67
- Fixed sha-bang in __init__.py
628e67
628e67
* Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.1-2
628e67
- Fixed build requires and %%files section
628e67
628e67
* Sun Aug 03 2008 Kushal Das <kushal@fedoraproject.org> 1.1-1
628e67
- Initial release