forked from pool/perl-IPC-System-Simple
Compare commits
11 Commits
39ae576fb6
...
main
Author | SHA256 | Date | |
---|---|---|---|
871fc79c62 | |||
84087550f9 | |||
2e32e6c2df | |||
93113fac53 | |||
|
97bc524c7b | ||
55728bd899 | |||
158410199c | |||
|
7f55924b63 | ||
|
1413619003 | ||
|
8bfeb98a35 | ||
ffabbf8ea0 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3bdec70d1d55d76247db9ff7a953d2f951657f55668750027f4925cf969364ee
|
|
||||||
size 36077
|
|
BIN
IPC-System-Simple-1.30.tar.gz
(Stored with Git LFS)
Normal file
BIN
IPC-System-Simple-1.30.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
12
README.md
Normal file
12
README.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
## Build Results
|
||||||
|
|
||||||
|
Current state of perl in openSUSE:Factory is
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
The current state of perl in the devel project build (devel:languages:perl)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
28
cpanspec.yml
Normal file
28
cpanspec.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
#description_paragraphs: 3
|
||||||
|
#description: |-
|
||||||
|
# override description from CPAN
|
||||||
|
#summary: override summary from CPAN
|
||||||
|
#no_testing: broken upstream
|
||||||
|
#sources:
|
||||||
|
# - source1
|
||||||
|
# - source2
|
||||||
|
#patches:
|
||||||
|
# foo.patch: -p1
|
||||||
|
# bar.patch:
|
||||||
|
#preamble: |-
|
||||||
|
# BuildRequires: gcc-c++
|
||||||
|
#post_prep: |-
|
||||||
|
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||||
|
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||||
|
#post_build: |-
|
||||||
|
# rm unused.files
|
||||||
|
#post_install: |-
|
||||||
|
# sed on %{name}.files
|
||||||
|
#license: SUSE-NonFree
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: |-
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
||||||
|
#custom_test: |-
|
||||||
|
#startserver && make test
|
||||||
|
#ignore_requires: Bizarre::Module
|
@@ -1,3 +1,60 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 20 13:05:23 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||||
|
|
||||||
|
- Normalize CPAN version
|
||||||
|
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 24 03:10:53 UTC 2020 - <timueller+perl@suse.de>
|
||||||
|
|
||||||
|
- updated to 1.30
|
||||||
|
see /usr/share/doc/packages/perl-IPC-System-Simple/Changes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 26 03:07:34 UTC 2020 - <timueller+perl@suse.de>
|
||||||
|
|
||||||
|
- updated to 1.26
|
||||||
|
see /usr/share/doc/packages/perl-IPC-System-Simple/Changes
|
||||||
|
|
||||||
|
1.26 2020-01-25 02:00:45+00:00 UTC
|
||||||
|
|
||||||
|
1.26 2020-01-24 20:47 America/NewYork
|
||||||
|
* BUILD: Update FAIL_POSIX warning message
|
||||||
|
Per: https://github.com/pjf/ipc-system-simple/pull/28. Thanks to scop.
|
||||||
|
|
||||||
|
* TEST: t/07_taint.t: Use executable name as source of taintedness
|
||||||
|
Addresses https://github.com/pjf/ipc-system-simple/issues/21
|
||||||
|
Thanks to Petr Písař.
|
||||||
|
|
||||||
|
* OTHER: Typographic corrections:
|
||||||
|
rt.cpan.org 60211; leonerd++
|
||||||
|
rt.cpan.org 86403; dsteinbrunner++
|
||||||
|
|
||||||
|
Add Travis configuration.
|
||||||
|
|
||||||
|
1.26-TRIAL 2020-01-24 03:43:20 GMT
|
||||||
|
TRIAL release only
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
Wed Dec 1 06:55:38 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-IPC-System-Simple
|
# spec file for package perl-IPC-System-Simple
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2025 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
|
||||||
@@ -12,73 +12,80 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define cpan_name IPC-System-Simple
|
||||||
Name: perl-IPC-System-Simple
|
Name: perl-IPC-System-Simple
|
||||||
Version: 1.21
|
Version: 1.300.0
|
||||||
Release: 0
|
Release: 0
|
||||||
|
# 1.30 -> normalize -> 1.300.0
|
||||||
|
%define cpan_version 1.30
|
||||||
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Summary: Run commands simply, with detailed diagnostics
|
Summary: Run commands simply, with detailed diagnostics
|
||||||
License: Artistic-1.0 or GPL-1.0+
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Group: Development/Libraries/Perl
|
Source0: https://cpan.metacpan.org/authors/id/J/JK/JKEENAN/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/P/PJ/PJF/IPC-System-Simple-%{version}.tar.gz
|
Source1: cpanspec.yml
|
||||||
Url: http://search.cpan.org/dist/IPC-System-Simple
|
Source100: README.md
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildArch: noarch
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: make
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(BSD::Resource)
|
Provides: perl(IPC::System::Simple) = %{version}
|
||||||
BuildRequires: perl(Config)
|
%undefine __perllib_provides
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
%{perl_requires}
|
||||||
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)
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Calling Perl's in-built "system()" function is easy, determining if it was
|
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
|
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
|
world to play with, and even if you _do_ check it, producing a
|
||||||
well-formatted error string takes a lot of work.
|
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 capture() 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
|
%prep
|
||||||
%setup -q -n "IPC-System-Simple-%{version}"
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||||
%__sed -i '/^auto_install/d' Makefile.PL
|
|
||||||
|
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 PREFIX="%{_prefix}"
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
%__make %{?jobs:-j%{jobs}}
|
%make_build
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%check
|
%files -f %{name}.files
|
||||||
%__make test
|
%doc Changes examples README
|
||||||
|
%license LICENSE
|
||||||
%clean
|
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc Changes README
|
|
||||||
%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}
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user