628e67
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
628e67
628e67
Name:           python-flickrapi
5f2526
Version:        1.4.2
26bfb3
Release:        3%{?dist}
628e67
Summary:        Python module for interfacing with the Flickr API
628e67
628e67
Group:          Development/Languages
628e67
License:        Python
5f2526
URL:            http://stuvel.eu/flickrapi
5f2526
Source0:        http://pypi.python.org/packages/source/f/flickrapi/flickrapi-%{version}.zip
628e67
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
628e67
628e67
BuildArch:      noarch
628e67
BuildRequires:  python-devel, python-setuptools, python-docutils
628e67
628e67
628e67
%description
628e67
A Python module for interfacing with the Flickr API.
628e67
628e67
628e67
%prep
628e67
%setup -q -n flickrapi-%{version}
628e67
628e67
628e67
%build
628e67
%{__python} setup.py build
66c3f7
make -C doc
628e67
628e67
628e67
%install
628e67
rm -rf %{buildroot}
628e67
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
628e67
rm -rf %{buildroot}/%{_docdir}/*
628e67
sed -i -e "s|#!/usr/bin/env python||" %{buildroot}/%{python_sitelib}/flickrapi/__init__.py
628e67
628e67
628e67
%clean
628e67
rm -rf %{buildroot}
628e67
628e67
628e67
%files
628e67
%defattr(-,root,root,-)
66c3f7
%doc README LICENSE doc/documentation.css doc/index.html doc/index.rst doc/html4css1.css
628e67
%{python_sitelib}/*
5f2526
%exclude /usr/LICENSE
5f2526
%exclude /usr/README
5f2526
%exclude /usr/UPGRADING
628e67
628e67
%changelog
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