diff --git a/perl-Sort-ArrayOfArrays.spec b/perl-Sort-ArrayOfArrays.spec index c20f57f..07dd85d 100644 --- a/perl-Sort-ArrayOfArrays.spec +++ b/perl-Sort-ArrayOfArrays.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Sort-ArrayOfArrays # -# Copyright (c) 2011 SUSE LINUX Products 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 @@ -12,60 +12,47 @@ # 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/ # -# norootforbuild - -Name: perl-Sort-ArrayOfArrays %define cpan_name Sort-ArrayOfArrays -Summary: Perl extension for sorting an array of arrays -Version: 1.00 -Release: 1 -License: CHECK(GPL+ or Artistic) -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Sort-ArrayOfArrays/ -#Source: http://www.cpan.org/modules/by-module/Sort/Sort-ArrayOfArrays-%{version}.tar.gz -Source: %{cpan_name}-%{version}.tar.gz +Name: perl-Sort-ArrayOfArrays +Version: 1.0.0 +Release: 0 +# 1.00 -> normalize -> 1.0.0 +%define cpan_version 1.00 +License: CHECK(Artistic-1.0 or GPL-1.0-or-later) +Summary: Sort::ArrayOfArrays Perl module +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/E/EA/EARL/%{cpan_name}-%{cpan_version}.tar.gz BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros +Provides: perl(Sort::ArrayOfArrays) = %{version} +%undefine __perllib_provides +%{perl_requires} %description Sort::ArrayOfArrays was written to sort an arbitrary array of arrays, in powerful, different ways. -Author: -------- -Earl Cahill - %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install -# do not perl_process_packlist (noarch) -# remove .packlist file -%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch -# remove perllocal.pod file -%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib +%perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf $RPM_BUILD_ROOT - %files -f %{name}.files -%defattr(-,root,root,-) %doc Changes README %changelog