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

77 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-RT-Extension-MergeUsers
#
2025-10-08 14:33:39 +00:00
# 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/
#
2025-10-08 14:33:39 +00:00
%define cpan_name RT-Extension-MergeUsers
Name: perl-RT-Extension-MergeUsers
2025-10-08 14:33:39 +00:00
Version: 1.110.0
Release: 0
2025-10-08 14:33:39 +00:00
# 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
2025-10-08 14:33:39 +00:00
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BP/BPS/%{cpan_name}-%{cpan_version}.tar.gz
2025-08-12 18:16:57 +02:00
Source100: README.md
2025-10-08 14:33:39 +00:00
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
2025-10-08 14:33:39 +00:00
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.
2025-10-08 14:33:39 +00:00
It also adds MergeInto and UnMerge functions to the RT::User class, which
allow you to programmatically accomplish the same thing from your code.
2025-10-08 14:33:39 +00:00
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
2025-10-08 14:33:39 +00:00
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
2025-10-08 14:33:39 +00:00
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