2012-12-29 22:54:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package perl-IPC-System-Simple
|
|
|
|
#
|
|
|
|
# Copyright (c) 2012 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
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2010-11-20 14:10:47 +01:00
|
|
|
|
|
|
|
Name: perl-IPC-System-Simple
|
|
|
|
Version: 1.21
|
|
|
|
Release: 0
|
|
|
|
Summary: Run commands simply, with detailed diagnostics
|
2012-12-29 22:54:37 +01:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-11-20 14:10:47 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2012-12-29 22:54:37 +01:00
|
|
|
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
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-01 07:56:54 +01:00
|
|
|
%{perl_requires}
|
2012-12-29 22:54:37 +01:00
|
|
|
BuildRequires: make
|
2010-11-20 14:10:47 +01:00
|
|
|
BuildRequires: perl
|
2010-12-03 15:39:13 +01:00
|
|
|
BuildRequires: perl-macros
|
2012-12-29 22:54:37 +01:00
|
|
|
BuildRequires: perl(BSD::Resource)
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2010-11-20 14:10:47 +01:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
BuildRequires: perl(List::Util)
|
2012-12-29 22:54:37 +01:00
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
BuildRequires: perl(Test)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::NoWarnings)
|
2010-11-20 14:10:47 +01:00
|
|
|
Requires: perl(Config)
|
|
|
|
Requires: perl(File::Basename)
|
2012-12-29 22:54:37 +01:00
|
|
|
Requires: perl(List::Util)
|
|
|
|
Requires: perl(Scalar::Util)
|
2010-11-20 14:10:47 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
well-formatted error string takes a lot of work.
|
|
|
|
"IPC::System::Simple" takes the hard work out of calling external
|
|
|
|
commands.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "IPC-System-Simple-%{version}"
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
2012-12-29 22:54:37 +01:00
|
|
|
%changelog
|