%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(0)")} %endif Name: googlecl Version: 0.9.7 Release: 1%{?dist} License: ASL 2.0 Url: http://code.google.com/p/googlecl/ Source0: http://googlecl.googlecode.com/files/%{name}-%{version}.tar.gz Group: Applications/Internet Summary: Command line tools for the Google Data APIs BuildRequires: python2-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %description GoogleCL brings Google services to the command line. The following Google services are currently supported: - Blogger - Calendar - Contacts - Docs - Picasa - Youtube %prep %setup -q -n %{name}-%{version} %build python setup.py build %install rm -rf %{buildroot} python setup.py install --root=%{buildroot} mkdir -p %{buildroot}%{_mandir}/man1 cp man/google.1 %{buildroot}%{_mandir}/man1 %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README.txt README.config changelog %{_bindir}/google %{python_sitelib}/googlecl %{python_sitelib}/*egg-info %{_mandir}/man1/* %changelog * Sun Jun 20 2010 Christian Krause - 0.9.7-1 - Initial spec file