From 55c7a3caa5c69d74c09d93baddd94e8b7817a440aa00024f2b622ade6aa4dbb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Tue, 23 Jul 2024 20:43:49 +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-IPC-Cmd?expand=0&rev=15 --- perl-IPC-Cmd.spec | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/perl-IPC-Cmd.spec b/perl-IPC-Cmd.spec index 84525c7..9e5057a 100644 --- a/perl-IPC-Cmd.spec +++ b/perl-IPC-Cmd.spec @@ -1,7 +1,7 @@ # # spec file for package perl-IPC-Cmd # -# Copyright (c) 2019 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,18 +16,16 @@ # +%define cpan_name IPC-Cmd Name: perl-IPC-Cmd Version: 1.04 Release: 0 -%define cpan_name IPC-Cmd -Summary: Finding and running system commands made easy License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} +Summary: Cross platform way of running (interactive) commandline programs +URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Locale::Maketext::Simple) @@ -48,12 +46,13 @@ commands you give it and give you a clear return value, as well as adhere to your verbosity settings. %prep -%setup -q -n %{cpan_name}-%{version} -find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 +%autosetup -n %{cpan_name}-%{version} + +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -64,7 +63,6 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc CHANGES README %changelog