From aa91be39d206d12c5e4d63efec800888908e08a29dfa76ddd00db58e8d7df58e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Fri, 16 Aug 2024 21:26:01 +0000 Subject: [PATCH] Normalize CPAN version See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Proc-Find-Parents?expand=0&rev=3 --- perl-Proc-Find-Parents.spec | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/perl-Proc-Find-Parents.spec b/perl-Proc-Find-Parents.spec index 97ae5b0..19f857e 100644 --- a/perl-Proc-Find-Parents.spec +++ b/perl-Proc-Find-Parents.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Proc-Find-Parents # -# 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 @@ -12,42 +12,44 @@ # 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-Proc-Find-Parents -Version: 0.631 -Release: 0 %define cpan_name Proc-Find-Parents +Name: perl-Proc-Find-Parents +Version: 0.631.0 +Release: 0 +# 0.631 -> normalize -> 0.631.0 +%define cpan_version 0.631 +License: Artistic-1.0 OR GPL-1.0-or-later Summary: Find parents of a process (up to the root) -License: Artistic-1.0 or GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Proc-Find-Parents/ -Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{version}.tar.gz +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(File::Which) BuildRequires: perl(Proc::ProcessTable) BuildRequires: perl(Test::More) >= 0.98 Requires: perl(Proc::ProcessTable) +Provides: perl(Proc::Find::Parents) = %{version} +%undefine __perllib_provides %{perl_requires} %description Find parents of a process (up to the root) %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 @@ -55,7 +57,6 @@ Find parents of a process (up to the root) %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes README %license LICENSE