From 141361900370e22d68781434129a3110ca7171045cf5181a57d0014299dd4db2 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 25 Nov 2013 11:00:36 +0000 Subject: [PATCH] update OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-IPC-System-Simple?expand=0&rev=9 --- IPC-System-Simple-1.21.tar.gz | 3 -- IPC-System-Simple-1.25.tar.gz | 3 ++ perl-IPC-System-Simple.changes | 20 ++++++++ perl-IPC-System-Simple.spec | 94 ++++++++++++++++++---------------- 4 files changed, 72 insertions(+), 48 deletions(-) delete mode 100644 IPC-System-Simple-1.21.tar.gz create mode 100644 IPC-System-Simple-1.25.tar.gz diff --git a/IPC-System-Simple-1.21.tar.gz b/IPC-System-Simple-1.21.tar.gz deleted file mode 100644 index e477032..0000000 --- a/IPC-System-Simple-1.21.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3bdec70d1d55d76247db9ff7a953d2f951657f55668750027f4925cf969364ee -size 36077 diff --git a/IPC-System-Simple-1.25.tar.gz b/IPC-System-Simple-1.25.tar.gz new file mode 100644 index 0000000..ecb62be --- /dev/null +++ b/IPC-System-Simple-1.25.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1b6aa1dfab886e8e4ea825f46a1cbb26038ef3e727fef5d84444aa8035a4d3b +size 29744 diff --git a/perl-IPC-System-Simple.changes b/perl-IPC-System-Simple.changes index 911517a..57a87da 100644 --- a/perl-IPC-System-Simple.changes +++ b/perl-IPC-System-Simple.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Mon Nov 25 07:39:36 UTC 2013 - coolo@suse.com + +- updated to 1.25 + * BUILD: No longer ship unrequired file Debian_CPANTS.txt. + (GH #7, thanks to real-dam) + * BUILD: No longer mark BSD::Resource as required (GH #6). + + * TEST: Skip core-dump tests on OS X. They're not as + straightforward as the test script would like. (GH #5). + + * BUGFIX: Silence "Statement unlikely to be reached" warning + (Karen Etheridge) + + * BUGFIX: Repository information fix, and typo fixes (@dsteinbrunner) + + * BUILD: Converted to using dzil. + + * Same as 1.23 release, but with booched changelog. Oops! :) + ------------------------------------------------------------------- Wed Dec 1 06:55:38 UTC 2010 - coolo@novell.com diff --git a/perl-IPC-System-Simple.spec b/perl-IPC-System-Simple.spec index 37f508c..4299c4d 100644 --- a/perl-IPC-System-Simple.spec +++ b/perl-IPC-System-Simple.spec @@ -1,7 +1,7 @@ # # spec file for package perl-IPC-System-Simple # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,68 +17,72 @@ Name: perl-IPC-System-Simple -Version: 1.21 +Version: 1.25 Release: 0 +%define cpan_name IPC-System-Simple Summary: Run commands simply, with detailed diagnostics License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -Source: http://search.cpan.org/CPAN/authors/id/P/PJ/PJF/IPC-System-Simple-%{version}.tar.gz -Url: http://search.cpan.org/dist/IPC-System-Simple +Url: http://search.cpan.org/dist/IPC-System-Simple/ +Source: http://www.cpan.org/authors/id/P/PJ/PJF/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} -BuildRequires: make BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(BSD::Resource) -BuildRequires: perl(Config) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 -BuildRequires: perl(File::Basename) -BuildRequires: perl(List::Util) -BuildRequires: perl(Scalar::Util) -BuildRequires: perl(Test) -BuildRequires: perl(Test::More) -BuildRequires: perl(Test::NoWarnings) -Requires: perl(Config) -Requires: perl(File::Basename) -Requires: perl(List::Util) -Requires: perl(Scalar::Util) +#BuildRequires: perl(BSD::Resource) +#BuildRequires: perl(IPC::System::Simple) +%{perl_requires} %description -Calling Perl's in-built "system()" function is easy, determining if it was -successful is *hard*. Let's face it, $? isn't the nicest variable in the -world to play with, and even if you *do* check it, producing a +Calling Perl's in-built 'system()' function is easy, determining if it was +successful is _hard_. Let's face it, '$?' isn't the nicest variable in the +world to play with, and even if you _do_ check it, producing a well-formatted error string takes a lot of work. -"IPC::System::Simple" takes the hard work out of calling external -commands. + +'IPC::System::Simple' takes the hard work out of calling external commands. +In fact, if you want to be really lazy, you can just write: + + use IPC::System::Simple qw(system); + +and all of your 'system' commands will either succeed (run to completion +and return a zero exit value), or die with rich diagnostic messages. + +The 'IPC::System::Simple' module also provides a simple replacement to +Perl's backticks operator. Simply write: + + use IPC::System::Simple qw(capture); + +and then use the the /capture() manpage command just like you'd use +backticks. If there's an error, it will die with a detailed description of +what went wrong. Better still, you can even use 'capturex()' to run the +equivalent of backticks, but without the shell: + + use IPC::System::Simple qw(capturex); + + my $result = capturex($command, @args); + +If you want more power than the basic interface, including the ability to +specify which exit values are acceptable, trap errors, or process +diagnostics, then read on! %prep -%setup -q -n "IPC-System-Simple-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL +%setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?jobs:-j%{jobs}} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install %perl_make_install %perl_process_packlist +%perl_gen_filelist -%check -%__make test - -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} - -%files -%defattr(-,root,root) -%doc Changes README LICENSE -%dir %{perl_vendorlib}/IPC -%dir %{perl_vendorlib}/IPC/System -%{perl_vendorlib}/IPC/System/Simple.pm -%dir %{perl_vendorarch}/auto/IPC -%dir %{perl_vendorarch}/auto/IPC/System -%{perl_vendorarch}/auto/IPC/System/Simple -%doc %{perl_man3dir}/IPC::System::Simple.%{perl_man3ext}%{ext_man} +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes examples LICENSE README %changelog