From 4b323504c21849269ac06103dee5dce3a0c8452e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 7 Nov 2012 09:47:27 +0100 Subject: [PATCH] Conditionalize test dependencies --- perl-Unix-Syslog.spec | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/perl-Unix-Syslog.spec b/perl-Unix-Syslog.spec index 455ee17..1e51d0e 100644 --- a/perl-Unix-Syslog.spec +++ b/perl-Unix-Syslog.spec @@ -1,16 +1,24 @@ +# Tests require accessible syslog +%bcond_with test + Name: perl-Unix-Syslog Version: 1.1 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Perl interface to the UNIX syslog(3) calls License: Artistic 2.0 Group: Development/Libraries URL: http://search.cpan.org/dist/Unix-Syslog/ Source0: http://www.cpan.org/authors/id/M/MH/MHARNISCH/Unix-Syslog-%{version}.tar.gz BuildRequires: perl(ExtUtils::MakeMaker) +%if %{with test} # Run-requires: BuildRequires: perl(DynaLoader) BuildRequires: perl(Exporter) +# Tests: +BuildRequires: syslog +%endif Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: syslog %{?perl_default_filter} @@ -34,8 +42,9 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; %{_fixperms} $RPM_BUILD_ROOT/* %check -# Tests require accessible syslog -%{?_with_check:make test} +%if %{with test} +make test +%endif %files %doc Artistic Changes README @@ -44,6 +53,9 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; %{_mandir}/man3/* %changelog +* Wed Nov 07 2012 Petr Pisar - 1.1-13 +- Conditionalize test dependencies + * Wed Nov 07 2012 Petr Pisar - 1.1-12 - Specify all dependencies - Do not export private library