628e67d
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
628e67d
628e67d
Name:           python-flickrapi
5bf17e6
Version:        1.3
a8adc4b
Release:        2%{?dist}
628e67d
Summary:        Python module for interfacing with the Flickr API
628e67d
628e67d
Group:          Development/Languages
628e67d
License:        Python
fe8d3ba
URL:            http://stuvel.eu/projects/flickrapi
fe8d3ba
Source0:        http://pypi.python.org/packages/source/f/flickrapi/flickrapi-%{version}.tar.gz
628e67d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
628e67d
628e67d
BuildArch:      noarch
628e67d
BuildRequires:  python-devel, python-setuptools, python-docutils
628e67d
628e67d
628e67d
%description
628e67d
A Python module for interfacing with the Flickr API.
628e67d
628e67d
628e67d
%prep
628e67d
%setup -q -n flickrapi-%{version}
628e67d
628e67d
628e67d
%build
628e67d
%{__python} setup.py build
5bf17e6
make -C doc
628e67d
628e67d
628e67d
%install
628e67d
rm -rf %{buildroot}
628e67d
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
628e67d
rm -rf %{buildroot}/%{_docdir}/*
628e67d
sed -i -e "s|#!/usr/bin/env python||" %{buildroot}/%{python_sitelib}/flickrapi/__init__.py
628e67d
628e67d
628e67d
%clean
628e67d
rm -rf %{buildroot}
628e67d
628e67d
628e67d
%files
628e67d
%defattr(-,root,root,-)
5bf17e6
%doc README LICENSE doc/documentation.css doc/index.html doc/index.rst doc/html4css1.css
628e67d
%{python_sitelib}/*
628e67d
628e67d
628e67d
%changelog
a8adc4b
* Sun Jan 24 2010 Ian Weller <ian@ianweller.org> - 1.3-2
a8adc4b
- rebuild with inclusion of new tarball
a8adc4b
5bf17e6
* Sun Jan 24 2010 Ian Weller <ian@ianweller.org> - 1.3-1
5bf17e6
- 1.3
5bf17e6
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