Files
perl-RT-Extension-TimeWorke…/perl-RT-Extension-TimeWorkedReport.spec
2025-08-12 18:16:58 +02:00

74 lines
2.6 KiB
RPMSpec

#
# spec file for package perl-RT-Extension-TimeWorkedReport
#
# Copyright (c) 2015 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-RT-Extension-TimeWorkedReport
Version: 1.04
Release: 0
%define cpan_name RT-Extension-TimeWorkedReport
Summary: Summary of timespent on ticket for RT4
License: GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/RT-Extension-TimeWorkedReport/
Source: http://www.cpan.org/authors/id/W/WE/WESAL/%{cpan_name}-%{version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: perl-base
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(RT)
BuildRequires: perl(Test::Pod)
%{perl_requires}
%description
This report allows the user to specify a datetime range and one or more
queues, and displays the time worked for each ticket in the selected
queue(s) which has > 0 minutes time worked in the datetime range. It will
show non-superusers their own report and superusers a report of all users.
It also will allow superusers to organize the report by ticket, with a
breakdown of the contributions to that ticket per-person, rather than the
default by-person organization.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
mkdir -p %{buildroot}%{_datadir}/request-tracker/local/html/
cp -r html/* %{buildroot}%{_datadir}/request-tracker/local/html/
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc BUILD README
%dir %{_datadir}/request-tracker/local/plugins/RT-Extension-TimeWorkedReport
%dir %{_datadir}/request-tracker/local/plugins/RT-Extension-TimeWorkedReport/lib
%{_datadir}/request-tracker/local/plugins/RT-Extension-TimeWorkedReport/lib/perllocal.pod
%{_datadir}/request-tracker/local/html/*
%changelog