5e84073
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
5e84073
5e84073
Name:           python-yourls
07ce76c
Version:        0.2.0
b0ab890
Release:        1%{?dist}
5e84073
Summary:        Simple Python client for the YOURLS URL shortener
5e84073
5e84073
License:        GPLv2+
5e84073
URL:            http://tflink.github.com/python-yourls/
5e84073
Source0:        https://github.com/downloads/tflink/python-yourls/%{name}-%{version}.tar.gz
5e84073
5e84073
BuildArch:      noarch
5e84073
BuildRequires:  python-devel
5e84073
# This only exists in F16 and newer
5e84073
BuildRequires:  pytest
5e84073
5e84073
%description
5e84073
Simple Python client for the YOURLS URL shortener
5e84073
5e84073
%prep
5e84073
%setup -q
5e84073
5e84073
# the dependency needed to run the tests is only included in F16 and newer
5e84073
# python-pytest > 2.0
b0ab890
%check
b0ab890
%{__python} setup.py test
5e84073
5e84073
%build
5e84073
%{__python} setup.py build
5e84073
5e84073
5e84073
%install
5e84073
rm -rf %{buildroot}
5e84073
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
5e84073
5e84073
%clean
5e84073
%{__rm} -rf %{buildroot}
5e84073
5e84073
%files
5e84073
%defattr(-,root,root,-)
5e84073
%doc LICENSE README
5e84073
%{python_sitelib}/*
5e84073
5e84073
5e84073
%changelog
07ce76c
* Tue Nov 22 2011 Tim Flink <tflink@fedoraproject.org> - 0.2.0-1
07ce76c
- Updated to new version with better error handling
07ce76c
b0ab890
* Mon Nov 14 2011 Tim Flink <tflink@fedoraproject.org> - 0.1.2-1
b0ab890
- Fixed bug where empty api urls were allowed
b0ab890
- Added ability to use 'title' when shortening a URL
b0ab890
6cb9f70
* Tue Oct 11 2011 Tim Flink <tflink@fedoraproject.org> - 0.1.1-3
6cb9f70
- removed extra chars in spec file that were breaking build
6cb9f70
5e84073
* Tue Aug 30 2011 Tim Flink <tflink@fedoraproject.org> - 0.1.1-2
5e84073
- corrected license tag
5e84073
5e84073
* Tue Aug 23 2011 Tim Flink <tflink@fedoraproject.org> - 0.1.1-1
5e84073
- Initial package for 0.1.1