91 lines
3.3 KiB
RPMSpec
91 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package perl-RT-Extension-MergeUsers
|
|
#
|
|
# 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-MergeUsers
|
|
Name: perl-RT-Extension-MergeUsers
|
|
Version: 1.03
|
|
Release: 0
|
|
Summary: Merges two users into the same effective user
|
|
License: GPL-2.0-or-later
|
|
Group: Development/Libraries/Perl
|
|
URL: https://search.cpan.org/dist/RT-Extension-MergeUsers/
|
|
#Source: http://www.cpan.org/authors/id/T/TS/TSIBLEY/RT-Extension-MergeUsers-%%{version}.tar.gz
|
|
Source0: %{cpan_name}-%{version}.tar.gz
|
|
Source1: rt-merge-users.1
|
|
Source2: rt-update-merged-users.1
|
|
Source3: rt-clean-merged-users.1
|
|
Source100: README.md
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Hook::LexWrap)
|
|
BuildRequires: perl(RT)
|
|
BuildRequires: perl(inc::Module::Install)
|
|
Requires: perl(Hook::LexWrap)
|
|
Requires: perl(RT)
|
|
BuildArch: noarch
|
|
%{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 the /MergeInto and /UnMerge functions to
|
|
the the RT::User class, which allow you to programmatically
|
|
accomplish the same thing from your code.
|
|
|
|
It also provides a version of the CanonicalizeEmailAddress, which
|
|
means that all e-mail sent from secondary users is displayed as coming from
|
|
the primary user.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
sed -i "s|/usr/bin/env perl|%{_bindir}/perl|g" bin/*
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
cp -r html %{buildroot}/%{_datadir}/request-tracker/local/
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
pushd bin >/dev/null
|
|
for i in *.in ; do
|
|
sed -e "s|/opt/rt4/local/lib|%{perl_vendorlib}/RT/Extension/|g; \
|
|
s|/opt/rt4/lib|%{_datadir}/request-tracker/local/lib/|g;" $i > %{buildroot}%{_bindir}/${i/.in/}
|
|
chmod 755 %{buildroot}%{_bindir}/${i/.in/}
|
|
done
|
|
# install man pages
|
|
install -D -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/rt-merge-users.1
|
|
install -D -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1/rt-update-merged-users.1
|
|
install -D -m 644 %{SOURCE3} %{buildroot}%{_mandir}/man1/rt-clean-merged-users.1
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
%dir %{_datadir}/request-tracker/local/plugins/RT-Extension-MergeUsers
|
|
%dir %{_datadir}/request-tracker/local/plugins/RT-Extension-MergeUsers/lib
|
|
%{_bindir}/*
|
|
%{_datadir}/request-tracker/local/plugins/RT-Extension-MergeUsers/lib/perllocal.pod
|
|
%{_datadir}/request-tracker/local/html/*
|
|
%{_mandir}/man1/rt-*.1%{?ext_man}
|
|
|
|
%changelog
|