File perl-RTx-Calendar.spec of Package perl-RTx-Calendar
#
# spec file for package perl-RTx-Calendar
#
# Copyright (c) 2025 SUSE LLC
#
# 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 RTx-Calendar
Name: perl-RTx-Calendar
Version: 2.01
Release: 0
License: GPL-1.0-or-later
Summary: Calendar view for RT ticket dates and custom fields
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BP/BPS/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Set)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
Requires: perl(DateTime)
Requires: perl(DateTime::Set)
%{perl_requires}
%description
'RTx::Calendar' provides a calendar view to display tickets and reminders
based on selected dates. Once the extension is installed, if you perform a
ticket search using the Query Builder, you will see a new Calendar entry in
the page menu. You can click that menu to see the calendar view of your
search. A portlet is also available to add to any dashboard, including on
the RT home page.
%prep
%autosetup -n %{cpan_name}-%{version}
%build
PERL_USE_UNSAFE_INC=1 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 TODO
%changelog