267080f
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
267080f
267080f
Name:           python-flickrapi
2925207
Version:        1.2
2925207
Release:        1%{?dist}
267080f
Summary:        Python module for interfacing with the Flickr API
267080f
267080f
Group:          Development/Languages
267080f
License:        Python
2925207
URL:            http://stuvel.eu/projects/flickrapi
2925207
Source0:        http://pypi.python.org/packages/source/f/flickrapi/flickrapi-%{version}.tar.gz
267080f
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
267080f
267080f
BuildArch:      noarch
267080f
BuildRequires:  python-devel, python-setuptools, python-docutils
267080f
267080f
267080f
%description
267080f
A Python module for interfacing with the Flickr API.
267080f
267080f
267080f
%prep
267080f
%setup -q -n flickrapi-%{version}
267080f
267080f
267080f
%build
267080f
%{__python} setup.py build
267080f
267080f
267080f
%install
267080f
rm -rf %{buildroot}
267080f
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
267080f
rm -rf %{buildroot}/%{_docdir}/*
267080f
sed -i -e "s|#!/usr/bin/env python||" %{buildroot}/%{python_sitelib}/flickrapi/__init__.py
267080f
267080f
267080f
%clean
267080f
rm -rf %{buildroot}
267080f
267080f
267080f
%files
267080f
%defattr(-,root,root,-)
267080f
%doc README LICENSE doc/documentation.css doc/flickrapi.html doc/html4css1.css
267080f
%{python_sitelib}/*
267080f
267080f
267080f
%changelog
2925207
* Wed Dec 17 2008 Ian Weller <ianweller@gmail.com> 1.2-1
2925207
- 1.2
2925207
- Update URL and Source0 locations
2925207
2925207
* Tue Nov 11 2008 Ian Weller <ianweller@gmail.com> 1.1-5
2925207
- More specfile cleanup
2925207
267080f
* Wed Oct 22 2008 Ian Weller <ianweller@gmail.com> 1.1-4
267080f
- Remove python_sitearch variable
267080f
- Some specfile cleanup
267080f
267080f
* Tue Aug 05 2008 Kushal Das <kushal@fedoraproject.org> 1.1-3
267080f
- Fixed sha-bang in __init__.py
267080f
267080f
* Mon Aug 04 2008 Kushal Das <kushal@fedoraproject.org> 1.1-2
267080f
- Fixed build requires and %%files section
267080f
267080f
* Sun Aug 03 2008 Kushal Das <kushal@fedoraproject.org> 1.1-1
267080f
- Initial release