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