1
0
forked from perl/perl-App-gcal
Files
perl-App-gcal/perl-App-gcal.spec

100 lines
3.2 KiB
RPMSpec

#
# spec file for package perl-App-gcal
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name App-gcal
Name: perl-App-gcal
Version: 1.121.460
Release: 0
# 1.121460 -> normalize -> 1.121.460
%define cpan_version 1.121460
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Command Line Interface interface to Google Calendar
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/A/AR/ARJONES/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
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)
Provides: perl(App::gcal) = %{version}
%undefine __perllib_provides
%{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
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%license LICENSE
%changelog