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