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

100 lines
3.2 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-App-gcal
#
2025-08-21 21:36:40 +00:00
# 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.
2025-08-21 21:36:40 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
2025-08-21 21:36:40 +00:00
%define cpan_name App-gcal
Name: perl-App-gcal
2025-08-21 21:36:40 +00:00
Version: 1.121.460
Release: 0
2025-08-21 21:36:40 +00:00
# 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
2025-08-12 18:11:45 +02:00
Source100: README.md
2025-08-21 21:36:40 +00:00
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::ReturnValue)
BuildRequires: perl(Data::ICal)
BuildRequires: perl(DateTime::Format::ICal)
2025-08-21 21:36:40 +00:00
BuildRequires: perl(DateTime::TimeZone)
BuildRequires: perl(ICal::Format::Natural)
BuildRequires: perl(Net::Google::Calendar)
BuildRequires: perl(Net::Google::Calendar::Entry)
2025-08-21 21:36:40 +00:00
BuildRequires: perl(Test::More) >= 0.88
Requires: perl(Class::ReturnValue)
Requires: perl(Data::ICal)
Requires: perl(DateTime::Format::ICal)
2025-08-21 21:36:40 +00:00
Requires: perl(DateTime::TimeZone)
Requires: perl(ICal::Format::Natural)
Requires: perl(Net::Google::Calendar)
Requires: perl(Net::Google::Calendar::Entry)
2025-08-21 21:36:40 +00:00
Provides: perl(App::gcal) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
2025-08-21 21:36:40 +00:00
The 'gcal' command provides a quick and easy interface to Google Calendar
from the command line.
2025-08-21 21:36:40 +00:00
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
2025-08-21 21:36:40 +00:00
login bill
password 1234
2025-08-21 21:36:40 +00:00
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.
2025-08-21 21:36:40 +00:00
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
2025-08-21 21:36:40 +00:00
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
2025-08-21 21:36:40 +00:00
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
2025-08-21 21:36:40 +00:00
%perl_gen_filelist
2025-08-21 21:36:40 +00:00
%files -f %{name}.files
%doc Changes README
%license LICENSE
%changelog