-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
perl-IPC-System-Simple.spec
57 lines (47 loc) · 1.55 KB
/
perl-IPC-System-Simple.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
%define modname IPC-System-Simple
%define modver 1.25
# find-requires extracts too much, cf https://qa.mandriva.com/show_bug.cgi?id=47678
# therefore, forcing explicit require skipping of Win32
%if %{_use_internal_dependency_generator}
%define __noautoreq 'perl\\(Win32(.*)\\)'
%else
%define _requires_exceptions perl.Win32.
%endif
Summary: Run commands simply, with detailed diagnostics
Name: perl-%{modname}
Version: %perl_convert_version %{modver}
Release: 10
License: GPLv2+ or Artistic
Group: Development/Perl
Url: http://search.cpan.org/dist/%{modname}
Source0: http://www.cpan.org/modules/by-module/IPC/IPC-System-Simple-%{modver}.tar.gz
BuildArch: noarch
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(List::Util)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
%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.
In fact, if you want to be really lazy, you can just write:
use IPC::System::Simple qw(system);
%prep
%setup -qn %{modname}-%{modver}
%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make
%check
make test
%install
%makeinstall_std
%files
%doc Changes LICENSE README
%{perl_vendorlib}/*
%{_mandir}/man3/*