diff --git a/perl-Probe-Perl.changes b/perl-Probe-Perl.changes index 1fec07f..9710e72 100644 --- a/perl-Probe-Perl.changes +++ b/perl-Probe-Perl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Oct 10 15:06:37 UTC 2025 - Tina Müller + +- Normalize CPAN version + See https://github.com/openSUSE/cpanspec/issues/47 for details + ------------------------------------------------------------------- Fri Oct 4 09:13:23 UTC 2013 - coolo@suse.com diff --git a/perl-Probe-Perl.spec b/perl-Probe-Perl.spec index 3e83df3..e3c7c6a 100644 --- a/perl-Probe-Perl.spec +++ b/perl-Probe-Perl.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Probe-Perl # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,25 +12,26 @@ # 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-Probe-Perl -Version: 0.03 -Release: 0 %define cpan_name Probe-Perl +Name: perl-Probe-Perl +Version: 0.30.0 +Release: 0 +# 0.03 -> normalize -> 0.30.0 +%define cpan_version 0.03 +License: Artistic-1.0 OR GPL-1.0-or-later Summary: Information about the currently running perl -License: Artistic-1.0 or GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Probe-Perl/ -Source: http://www.cpan.org/authors/id/K/KW/KWILLIAMS/%{cpan_name}-%{version}.tar.gz +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/K/KW/KWILLIAMS/%{cpan_name}-%{cpan_version}.tar.gz Source100: README.md BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -#BuildRequires: perl(Probe::Perl) +Provides: perl(Probe::Perl) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -39,14 +40,14 @@ running perl interpreter. It originally began life as code in the 'Module::Build' project, but has been externalized here for general use. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} -p1 %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 @@ -54,7 +55,7 @@ running perl interpreter. It originally began life as code in the %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc Changes LICENSE README +%doc Changes README +%license LICENSE %changelog