diff --git a/perl-Spreadsheet-ParseExcel-Simple.spec b/perl-Spreadsheet-ParseExcel-Simple.spec index fa925fa..1c7b16f 100644 --- a/perl-Spreadsheet-ParseExcel-Simple.spec +++ b/perl-Spreadsheet-ParseExcel-Simple.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Spreadsheet-ParseExcel-Simple # -# 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,27 +12,28 @@ # 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/ # - -Name: perl-Spreadsheet-ParseExcel-Simple -Version: 1.04 -Release: 1 -License: CHECK(GPL+ or Artistic) %define cpan_name Spreadsheet-ParseExcel-Simple -Summary: A simple interface to Excel data -Url: http://search.cpan.org/dist/Spreadsheet-ParseExcel-Simple/ -Group: Development/Libraries/Perl -#Source: http://www.cpan.org/authors/id/T/TM/TMTM/Spreadsheet-ParseExcel-Simple-%{version}.tar.gz -Source: %{cpan_name}-%{version}.tar.gz -BuildRequires: perl(Spreadsheet::ParseExcel) >= 0.18 +Name: perl-Spreadsheet-ParseExcel-Simple +Version: 1.40.0 +Release: 0 +# 1.04 -> normalize -> 1.40.0 +%define cpan_version 1.04 +License: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +Summary: Simple interface to Excel data +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/T/TM/TMTM/%{cpan_name}-%{cpan_version}.tar.gz +BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(Spreadsheet::ParseExcel) >= 0.18 Requires: perl(Spreadsheet::ParseExcel) >= 0.18 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch +Provides: perl(Spreadsheet::ParseExcel::Simple) = %{version} +Provides: perl(Spreadsheet::ParseExcel::Simple::_Sheet) +%undefine __perllib_provides %{perl_requires} %description @@ -45,25 +46,21 @@ For anything more complex, you probably want to use Spreadsheet::ParseExcel directly. %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 %perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(644,root,root,755) %doc Changes README test.xls %changelog