File gcalcli.spec of Package gcalcli
Name: gcalcli
Version: 1.4
Release: 1
License: MIT License
BuildArch: noarch
%if 0%{?suse_version}
BuildRequires: python-xml
Requires: python-xml
%endif
BuildRequires: help2man python-gdata python-dateutil
Requires: python-gdata python-dateutil
Source: http://gcalcli.googlecode.com/files/%{name}-%{version}.tgz
Group: Productivity/Office/Organizers
Summary: Google Calendar Command Line Interface
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
gcalcli is a Python application that allows you to access your Google
Calendar from a command line. It's easy to get your agenda, search for
events, and quickly add new events. Additionally gcalcli can be used
as a reminder service to execute any application you want.
%prep
%setup -q -c
%build
help2man -n "Google Calendar Command Line Interface" -o gcalcli.1 \
-N ./gcalcli
%install
mkdir -p %{buildroot}/%{_bindir}
cp gcalcli %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
cp gcalcli.1 %{buildroot}/%{_mandir}/man1
%clean
rm -rf %buildroot
%files
%defattr(0644,root,root,0755)
%attr(0755,root,root) %{_bindir}/gcalcli
%{_mandir}/man1/*
%changelog