%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
Name: googlecl
Version: 0.9.8
Release: 1%{?dist}
Summary: Command line tools for the Google Data APIs
Group: Applications/Internet
License: ASL 2.0
URL: http://code.google.com/p/googlecl/
Source0: http://googlecl.googlecode.com/files/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
Requires: python-gdata
%description
This package provides command-line access to some Google services via
their GData APIs.
%prep
%setup -q
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
cp -av man/google.1 $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README.config README.txt changelog
%{_bindir}/google
%{python_sitelib}/*
%{_mandir}/man1/*
%changelog
* Sun Jul 11 2010 Adam Goode <adam@spicenitz.org> - 0.9.8-1
- New upstream release, see http://code.google.com/p/googlecl/source/browse/trunk/changelog
* Sun Jun 20 2010 Adam Goode <adam@spicenitz.org> - 0.9.7-1
- New upstream release, see http://code.google.com/p/googlecl/source/browse/trunk/changelog
* Sat Jun 19 2010 Adam Goode <adam@spicenitz.org> - 0.9.5-3
- Add clean section for F12
- Add python macros for F12
- Add changelog to doc
* Fri Jun 18 2010 Adam Goode <adam@spicenitz.org> - 0.9.5-2
- Don't BuildRequires python-gdata
- Don't manually gzip the man page
* Fri Jun 18 2010 Adam Goode <adam@spicenitz.org> - 0.9.5-1
- Initial package