80 lines
2.3 KiB
RPMSpec
80 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package perl-RT-Extension-Assets
|
|
#
|
|
# Copyright (c) 2020 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 plug_dir /usr/share/request-tracker/local/plugins
|
|
|
|
Name: perl-RT-Extension-Assets
|
|
Version: 1.05
|
|
Release: 0
|
|
%define cpan_name RT-Extension-Assets
|
|
Summary: RT Extension-Assets Extension
|
|
License: GPL-2.0-only
|
|
Group: Development/Libraries/Perl
|
|
URL: http://bestpractical.com/assets/
|
|
Source: http://download.bestpractical.com/pub/rt/release/%{cpan_name}-%{version}.tar.gz
|
|
Source1: README.SuSE
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(RT) >= 4.2.1
|
|
BuildRequires: perl(Text::CSV_XS)
|
|
Requires: perl(RT) >= 4.2.1
|
|
Requires: perl(Text::CSV_XS)
|
|
%{perl_requires}
|
|
|
|
%description
|
|
RT-Extension-Assets - Asset management for RT
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
find . -type f -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
PERL_USE_UNSAFE_INC=1 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:1} README.SuSE
|
|
#
|
|
%{__install} -m 0755 -d %{buildroot}/%{plug_dir}/%{cpan_name}
|
|
%{__cp} -a etc -d %{buildroot}/%{plug_dir}/%{cpan_name}
|
|
%{__cp} -a html -d %{buildroot}/%{plug_dir}/%{cpan_name}
|
|
%{__cp} -a static -d %{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 doc README README.SuSE
|
|
%dir %{plug_dir}/%{cpan_name}
|
|
%{plug_dir}/%{cpan_name}/etc
|
|
%{plug_dir}/%{cpan_name}/html
|
|
%{plug_dir}/%{cpan_name}/static
|
|
|
|
%changelog
|