1 Commits

Author SHA256 Message Date
3148ae9f1f Automatic update to v2.400.0 (2.4) 2025-10-08 12:51:02 +00:00
4 changed files with 49 additions and 37 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:11d93b0dc75e1a7e8387e755f699f45a4a970447e46da1044e21d6a8efee6896
size 41449

BIN
RT-Extension-Assets-Import-CSV-2.4.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,30 @@
-------------------------------------------------------------------
Wed Oct 8 12:51:02 UTC 2025 - Tina Müller <timueller+perl@suse.de>
- updated to 2.400.0 (2.4)
see /usr/share/doc/packages/perl-RT-Extension-Assets-Import-CSV/Changes
2.4 2024-10-10
- Allow to directly pass config options to Text::CSV_XS for custom delimiter,
quote_char, etc
- Add some sanity checks to the import process for avoiding processing
broken CSV files or files without the expected columns
- Add a Dry-Run mode to the import process for testing the import without
actually changing the database
- Skip lines with less columns than the header
- Fix %args being redeclared in the same scope
2.3 2021-06-11
- Make it compatible with RT 5
2.2 2017-03-22
- Fix table and sequence names for Pg and Oracle
2.1 2016-02-11
- Packaging fixes
2.0 2016-02-11
- Upgrade to 4.4 which has cored Assets
1.4 2014-11-03
- Fix Role import (Owner)
- Allow importing of non-single roles (Held By and Contacts)
-------------------------------------------------------------------
Mon Oct 13 12:07:54 UTC 2014 - darin@darins.net

View File

@@ -1,8 +1,7 @@
#
# 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.
# 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
@@ -13,64 +12,50 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define plug_dir /usr/share/request-tracker/local/plugins
%define cpan_name RT-Extension-Assets-Import-CSV
%define cpan_name RT-Extension-Assets-Import-CSV
Name: perl-RT-Extension-Assets-Import-CSV
Version: 1.3
Version: 2.400.0
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
# 2.4 -> normalize -> 2.400.0
%define cpan_version 2.4
License: GPL-1.0-or-later
Summary: RT-Extension-Assets-Import-CSV Extension
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BP/BPS/%{cpan_name}-%{cpan_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(ExtUtils::MakeMaker) >= 6.59
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)
Provides: perl(RT::Extension::Assets::Import::CSV) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
RT-Extension-Assets-Import-CSV - RT Assets Import from CSV
RT-Extension-Assets-Import-CSV Extension
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
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
%doc Changes README
%changelog