Files
perl-RT-Extension-NotifyOwners/perl-RT-Extension-NotifyOwners.spec
2025-08-12 18:16:57 +02:00

85 lines
2.6 KiB
RPMSpec

#
# spec file for package perl-RT-Extension-NotifyOwners
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#
%define cpan_name RT-Extension-NotifyOwners
%define plug_dir /usr/share/request-tracker/local/plugins
Name: perl-RT-Extension-NotifyOwners
Version: 0.02
Release: 0
Summary: Notify potential owners of an RT ticket
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/RT-Extension-NotifyOwners/
Source: http://www.cpan.org/authors/id/I/ID/IDN/%{cpan_name}-%{version}.tar.gz
Source2: README.SuSE
Source100: README.md
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(RT)
#BuildRequires: perl(inc::Module::Install)
#BuildRequires: perl(JSON)
#BuildRequires: perl(LWP::Simple)
#BuildRequires: perl(Module::Build)
#BuildRequires: perl(Module::Install::Base)
#BuildRequires: perl(Parse::CPAN::Meta)
#BuildRequires: perl(RT)
#BuildRequires: perl(RT::Action::Notify)
#BuildRequires: perl(RT::Extension::NotifyOwners)
#BuildRequires: perl(RT::Users)
#BuildRequires: perl(YAML::Tiny)
Requires: request-tracker
%{perl_requires}
%description
The NotifyOwners extension adds the following scrip actions: Notify Last Owner
(previous owner), Notify Potential Owners (users with OwnTicket right), Notify
Previous Owners (all previous owners).
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
install -m 0644 %{S:2} README.SuSE
%{__install} -m 0755 -d %{buildroot}/%{plug_dir}/%{cpan_name}
%{__cp} -a etc %{buildroot}/%{plug_dir}/%{cpan_name}/
# remove special files
find %{buildroot} -name "perllocal.pod" | xargs -i rm -f {}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc README.SuSE
%dir %{plug_dir}/%{cpan_name}
%{plug_dir}/%{cpan_name}/etc
%changelog