Files
perl-RT-Extension-MergeUsers/perl-RT-Extension-MergeUsers.spec

77 lines
2.4 KiB
RPMSpec

#
# spec file for package perl-RT-Extension-MergeUsers
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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-MergeUsers
Name: perl-RT-Extension-MergeUsers
Version: 1.110.0
Release: 0
# 1.11 -> normalize -> 1.110.0
%define cpan_version 1.11
License: GPL-1.0-or-later
Summary: Merges two users into the same effective user
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BP/BPS/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
Provides: perl(RT::ACL)
Provides: perl(RT::Extension::MergeUsers) = %{version}
Provides: perl(RT::Extension::MergeUsers::Test)
Provides: perl(RT::Group)
Provides: perl(RT::Groups)
Provides: perl(RT::Principal)
Provides: perl(RT::Tickets)
Provides: perl(RT::User)
Provides: perl(RT::Users)
%undefine __perllib_provides
%{perl_requires}
%description
This RT extension adds a "Merge Users" box to the User Administration page,
which allows you to merge the user you are currently viewing with another
user on your RT instance.
It also adds MergeInto and UnMerge functions to the RT::User class, which
allow you to programmatically accomplish the same thing from your code.
It also provides a version of CanonicalizeEmailAddress, which means that
all e-mail sent from secondary users is displayed as coming from the
primary user.
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%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
%changelog