2024-07-23 20:43:49 +00:00
committed by Git OBS Bridge
parent ac0f575925
commit 55c7a3caa5

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-IPC-Cmd # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,16 @@
# #
%define cpan_name IPC-Cmd
Name: perl-IPC-Cmd Name: perl-IPC-Cmd
Version: 1.04 Version: 1.04
Release: 0 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 License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl Summary: Cross platform way of running (interactive) commandline programs
Url: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Locale::Maketext::Simple) 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. to your verbosity settings.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} %make_build
%check %check
make test make test
@@ -64,7 +63,6 @@ make test
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc CHANGES README %doc CHANGES README
%changelog %changelog