2007-01-15 23:31:57 +00:00
|
|
|
#
|
2011-11-11 11:23:29 +00:00
|
|
|
# spec file for package perl-Text-CSV_XS
|
2007-01-15 23:31:57 +00:00
|
|
|
#
|
2024-03-08 23:06:32 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-15 23:31:57 +00:00
|
|
|
#
|
2009-06-18 15:13:44 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-01-02 15:06:58 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:31:57 +00:00
|
|
|
#
|
|
|
|
|
2012-02-17 08:49:51 +00:00
|
|
|
|
2020-12-28 14:33:13 +00:00
|
|
|
%define cpan_name Text-CSV_XS
|
2007-07-16 16:18:04 +00:00
|
|
|
Name: perl-Text-CSV_XS
|
2023-12-01 13:50:18 +00:00
|
|
|
Version: 1.530.0
|
2011-12-01 10:39:45 +00:00
|
|
|
Release: 0
|
2023-12-01 13:50:18 +00:00
|
|
|
%define cpan_version 1.53
|
2018-07-16 06:52:12 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-06-02 09:27:41 +00:00
|
|
|
Summary: Comma-Separated Values manipulation routines
|
2020-05-22 09:31:52 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-08-08 15:12:07 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/%{cpan_name}-%{cpan_version}.tgz
|
2017-10-08 08:28:19 +00:00
|
|
|
Source1: cpanspec.yml
|
2010-01-09 10:51:41 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2023-12-01 13:50:18 +00:00
|
|
|
Provides: perl(Text::CSV_XS) = %{version}
|
2024-03-08 23:06:32 +00:00
|
|
|
%undefine __perllib_provides
|
2023-12-01 13:50:18 +00:00
|
|
|
Recommends: perl(Encode) >= 3.200.0
|
2011-03-31 08:52:47 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:31:57 +00:00
|
|
|
|
|
|
|
%description
|
2009-08-10 21:00:06 +00:00
|
|
|
Text::CSV_XS provides facilities for the composition and decomposition of
|
2013-06-03 10:53:54 +00:00
|
|
|
comma-separated values. An instance of the Text::CSV_XS class will combine
|
2017-10-08 08:28:19 +00:00
|
|
|
fields into a 'CSV' string and parse a 'CSV' string into fields.
|
2007-01-15 23:31:57 +00:00
|
|
|
|
2013-06-03 10:53:54 +00:00
|
|
|
The module accepts either strings or files as input and support the use of
|
|
|
|
user-specified characters for delimiters, separators, and escapes.
|
2007-01-15 23:31:57 +00:00
|
|
|
|
|
|
|
%prep
|
2023-08-08 15:12:07 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2023-03-10 10:42:59 +00:00
|
|
|
|
2023-08-08 15:12:07 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2017-10-08 08:28:19 +00:00
|
|
|
# MANUAL BEGIN
|
|
|
|
sed -i -e 's,/pro/bin/perl,/usr/bin/perl,' examples/*
|
|
|
|
# MANUAL END
|
2007-01-15 23:31:57 +00:00
|
|
|
|
|
|
|
%build
|
2019-09-16 12:42:55 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2020-12-28 14:33:13 +00:00
|
|
|
%make_build
|
2009-08-10 21:00:06 +00:00
|
|
|
|
|
|
|
%check
|
2019-09-16 12:42:55 +00:00
|
|
|
make test
|
2007-01-15 23:31:57 +00:00
|
|
|
|
|
|
|
%install
|
2009-08-10 21:00:06 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:31:57 +00:00
|
|
|
%perl_process_packlist
|
2010-01-09 10:51:41 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:57 +00:00
|
|
|
|
2011-03-31 08:52:47 +00:00
|
|
|
%files -f %{name}.files
|
2017-10-08 08:28:19 +00:00
|
|
|
%doc ChangeLog CONTRIBUTING.md examples README
|
2007-01-15 23:31:57 +00:00
|
|
|
|
2007-07-16 16:18:04 +00:00
|
|
|
%changelog
|