File perl-RT-Extension-Assets-Import-CSV.spec of Package perl-RT-Extension-Assets-Import-CSV

#
# spec file for package 
#
# 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         git_name rt-extension-assets-import-csv-master
%define         cpan_name RT-Extension-Assets-Import-CSV

Name:           perl-RT-Extension-Assets-Import-CSV
Version:        0.01
Release:        0
License:        GPL-2.0
Summary:        RT Assets Import from CSV
Url:            https://github.com/bestpractical/rt-extension-assets-import-csv
Group:          Development/Libraries/Perl
Source0:        rt-extension-assets-import-csv-master.tar.gz
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 %{git_name}
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
openSUSE Build Service is sponsored by