diff --git a/perl-Text-CSV-Unicode.spec b/perl-Text-CSV-Unicode.spec index 22627f0..da13953 100644 --- a/perl-Text-CSV-Unicode.spec +++ b/perl-Text-CSV-Unicode.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Text-CSV-Unicode # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,23 +16,25 @@ # -Name: perl-Text-CSV-Unicode -Version: 0.400 -Release: 0 %define cpan_name Text-CSV-Unicode -Summary: Comma-Separated Values Manipulation Routines +Name: perl-Text-CSV-Unicode +Version: 0.400.0 +Release: 0 +# 0.400 -> normalize -> 0.400.0 +%define cpan_version 0.400 License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/R/RM/RMBARKER/%{cpan_name}-%{version}.tar.gz +Summary: Comma-separated values manipulation routines +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/R/RM/RMBARKER/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Module::Build) >= 0.380000 +BuildRequires: perl(Module::Build) >= 0.38 BuildRequires: perl(Text::CSV) >= 1 Requires: perl(Text::CSV) >= 1 +Provides: perl(Text::CSV::Unicode) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -42,21 +44,20 @@ Text::CSV::Unicode allows for input with wide character data but does not permit control characters. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -perl Build.PL installdirs=vendor -./Build build flags=%{?_smp_mflags} +perl Build.PL --installdirs=vendor +./Build build --flags=%{?_smp_mflags} %check ./Build test %install -./Build install destdir=%{buildroot} create_packlist=0 +./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes examples README %changelog