Files
perl-RT-Extension-Assets-Im…/perl-RT-Extension-Assets-Import-CSV.spec
2025-08-12 18:16:57 +02:00

77 lines
2.4 KiB
RPMSpec

#
# spec file for package perl-RT-Extension-Assets-Import-CSV
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) specCURRENT_YEAR SUSE LINUX Products 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 http://bugs.opensuse.org/
#
%define plug_dir /usr/share/request-tracker/local/plugins
%define cpan_name RT-Extension-Assets-Import-CSV
Name: perl-RT-Extension-Assets-Import-CSV
Version: 1.3
Release: 0
Summary: RT Assets Import from CSV
License: GPL-2.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/RT-Extension-Assets-Import-CSV/
Source0: http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/%{cpan_name}-%{version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: request-tracker >= 4.2.0
BuildRequires: perl(RT::Extension::Assets)
BuildRequires: perl(Text::CSV_XS)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: request-tracker >= 4.2.0
Requires: perl(RT::Extension::Assets)
Requires: perl(Text::CSV_XS)
%{perl_requires}
%description
RT-Extension-Assets-Import-CSV - RT Assets Import from CSV
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%{__install} -m 0755 -d %{buildroot}/%{plug_dir}/%{cpan_name}
%{__install} -m 0755 -d %{buildroot}/%{_bindir}
%{__install} -m 0755 bin/rt-assets-import-csv %{buildroot}/%{_bindir}/rt-assets-import-csv
# remove special files
find %{buildroot} -name "perllocal.pod" |xargs -i rm -f {}
%files -f %{name}.files
%defattr(-,root,root)
%doc README
%dir %{plug_dir}/%{cpan_name}
%{_bindir}/rt-assets-import-csv
%changelog