please review, contrib cleanup OBS-URL: https://build.opensuse.org/request/show/71741 OBS-URL: https://build.opensuse.org/package/show/utilities/googlecl?expand=0&rev=1
55 lines
1.5 KiB
RPMSpec
55 lines
1.5 KiB
RPMSpec
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: googlecl
|
|
Version: 0.9.13
|
|
Release: 1
|
|
License: Apache License 2.0
|
|
Summary: Command-Line Client to Google Services
|
|
Url: http://code.google.com/p/googlecl/
|
|
Group: Productivity/Office/Organizers
|
|
Source: http://googlecl.googlecode.com/files/%{name}-%{version}.tar.gz
|
|
Source99: rpmlintrc
|
|
BuildRequires: python
|
|
BuildRequires: python-gdata
|
|
Requires: python-gdata
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} >= 1120
|
|
BuildArch: noarch
|
|
%endif
|
|
%py_requires
|
|
|
|
%description
|
|
The Google Data APIs allow programmatic access to various Google services.
|
|
This package wraps a subset of those APIs into a command-line tool that
|
|
makes it easy to do things like posting to a Blogger blog, uploading files
|
|
to Picasa, or editing a Google Docs file.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
# replace python shebangs with python
|
|
find . -type f -exec sed -i -r '1s|^#! *(.+)/python(.*)$|#!python|' {} \;
|
|
find . -type f -exec sed -i -r '1s|^#! */usr/bin/env +python.*$|#!python|' {} \;
|
|
|
|
%build
|
|
python ./setup.py build
|
|
|
|
%install
|
|
python ./setup.py install \
|
|
--prefix="%{_prefix}" \
|
|
--root=%{buildroot} \
|
|
--record-rpm=INSTALLED_FILES
|
|
install -D -m 644 man/google.1 "%{buildroot}%{_mandir}/man1/google.1"
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files -f INSTALLED_FILES
|
|
%defattr(-,root,root)
|
|
%doc README.config README.txt changelog
|
|
%{_mandir}/man1/google.1%{ext_man}
|
|
|
|
%changelog
|