File perl-IPC-System-Simple.spec of Package perl-IPC-System-Simple

#
# 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/
#


Name:           perl-IPC-System-Simple
Version:        1.21
Release:        0
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
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)

%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 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}

%changelog
openSUSE Build Service is sponsored by