File perl-App-gcal.spec of Package perl-App-gcal
#
# spec file for package perl-App-gcal
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-App-gcal
Version: 1.121460
Release: 0
%define cpan_name App-gcal
Summary: Command Line Interface interface to Google Calendar
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/App-gcal/
Source0: https://cpan.metacpan.org/authors/id/A/AR/ARJONES/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::ReturnValue)
BuildRequires: perl(Data::ICal)
BuildRequires: perl(DateTime::Format::ICal)
BuildRequires: perl(DateTime::TimeZone)
BuildRequires: perl(ICal::Format::Natural)
BuildRequires: perl(Net::Google::Calendar)
BuildRequires: perl(Net::Google::Calendar::Entry)
BuildRequires: perl(Test::More) >= 0.88
Requires: perl(Class::ReturnValue)
Requires: perl(Data::ICal)
Requires: perl(DateTime::Format::ICal)
Requires: perl(DateTime::TimeZone)
Requires: perl(ICal::Format::Natural)
Requires: perl(Net::Google::Calendar)
Requires: perl(Net::Google::Calendar::Entry)
%{perl_requires}
%description
The 'gcal' command provides a quick and easy interface to Google Calendar
from the command line.
Before using the 'gcal' command, you need to provide your Google
credentials. The most convenient way to do this is by using your '~.netrc'
file and supplying credentials for the 'google.com' machine. For example:
machine google.com
login bill
password 1234
NOTE: On Windows, your '.netrc' file is at '%HOME%.netrc'.
NOTE 2: On Unix, ensure your '~.netrc' file has the permissions set to 600.
Alternatively, you can pass the username and password as a parameter to
'gcal', as follows:
gcal --username="bill" --password="1234"
You can then pass one or more '.ics' files to the 'gcal' command and it
will be added to your Google Calendar.
You can also pass one or more strings to the 'gcal' command, which will
attempt to parse it and create a new event. It uses ICal::QuickAdd to
parse, so has the same functionality and limitations.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE
%changelog