File perl-RT-Extension-ActivityReports.spec of Package perl-RT-Extension-ActivityReports
#
# spec file for package perl-RT-Extension-ActivityReports
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%define cpan_name RT-Extension-ActivityReports
%define plug_dir %{_datadir}/request-tracker/local/plugins
Name: perl-RT-Extension-ActivityReports
Version: 1.08
Release: 0
Summary: RT Extension-ActivityReports Extension
License: GPL-2.0-or-later
Group: Development/Libraries/Perl
URL: https://search.cpan.org/dist/RT-Extension-ActivityReports/
Source: %{cpan_name}-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(RT)
BuildRequires: perl(Time::Duration)
BuildRequires: perl(inc::Module::Install)
Requires: request-tracker
Requires: perl(Time::Duration)
BuildArch: noarch
%{perl_requires}
%description
RT Extension-ActivityReports Extension: Additional reports to show Activity in
Request Tracker.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
make %{?_smp_mflags} test
%install
%perl_make_install
%perl_process_packlist
install -m 0755 -d %{buildroot}/%{plug_dir}/%{cpan_name}
install -m 0755 -d %{buildroot}/%{plug_dir}/%{cpan_name}/html
cp -a html/* %{buildroot}/%{plug_dir}/%{cpan_name}/html/
# remove special files
find %{buildroot} -name "perllocal.pod" | xargs -i rm -f {}
find %{buildroot} -name ".packlist" -delete
%files
%defattr(-,root,root,755)
%doc Changes README
%dir %{_datadir}/request-tracker/plugins
%dir %{_datadir}/request-tracker/plugins/%{cpan_name}
%dir %{plug_dir}/%{cpan_name}
%{plug_dir}/%{cpan_name}/html
%{_mandir}/man3/*
%{_datadir}/request-tracker/plugins/%{cpan_name}/*
%changelog