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

77 lines
2.6 KiB
RPMSpec

#
# spec file for package perl-RT-Extension-ResetPassword
#
# Copyright (c) 2021 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 RT-Extension-ResetPassword
Name: perl-RT-Extension-ResetPassword
Version: 1.11
Release: 0
Summary: Add "forgot your password?" link to RT instance
License: GPL-2.0-or-later
Group: Development/Libraries/Perl
URL: https://search.cpan.org/dist/RT-Extension-ResetPassword/
#Source: http://www.cpan.org/authors/id/B/BP/BPS/RT-Extension-ResetPassword-%%{version}.tar.gz
Source0: %{cpan_name}-%{version}.tar.gz
Source100: README.md
Requires: perl(RT)
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(RT)
BuildRequires: perl(inc::Module::Install)
BuildArch: noarch
%{perl_requires}
%description
This extension for RT adds a new "Forgot your password?" link to the front
of your RT instance. Any user can request that RT send them a password
reset token by email. RT will send the user a one-time URL which he or she
can use to reset her password.
It also adds a new option to the user admin page in RT for the RT admin to
send a password reset email for new users or users who have forgotten their
passwords. See below for options to enable this admin feature only and
disable self-service features.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%make_build test
%install
mkdir -p %{buildroot}%{perl_vendorlib}
%perl_make_install
rm -rf %{buildroot}%{_mandir}/auto
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README patches
%dir %{_datadir}/request-tracker/plugins
%dir %{_datadir}/request-tracker/plugins/%{cpan_name}
%dir %{_datadir}/request-tracker/plugins/%{cpan_name}/lib
%dir %{_datadir}/request-tracker/plugins/%{cpan_name}/lib/RT
%dir %{_datadir}/request-tracker/plugins/%{cpan_name}/lib/RT/Extension
%{_datadir}/request-tracker/plugins/%{cpan_name}/lib/RT/Extension/*.pm
%{_datadir}/request-tracker/plugins/%{cpan_name}/lib/perllocal.pod
%changelog