]> git.pld-linux.org Git - packages/perl-POE-Component-Server-Syslog.git/blobdiff - perl-POE-Component-Server-Syslog.spec
- cosmetics
[packages/perl-POE-Component-Server-Syslog.git] / perl-POE-Component-Server-Syslog.spec
index 7854bdf971efbc2bcb01d073100e4dd9628737c8..5b0f5e6c76f36e4d9f35c3847ba9d6bb41039e51 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests   # do not perform "make test"
 #
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    POE
@@ -16,7 +16,7 @@ Source0:      http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version
 # Source0-md5: 9d13ce4eb4d3c1ce308478952b68e1e5
 BuildRequires: perl-devel >= 5.6
 BuildRequires: rpm-perlprov >= 4.1-13
-%if %{!?_without_tests:1}0
+%if %{with tests}
 BuildRequires: perl(Time::ParseDate)
 BuildRequires: perl-POE >= 0.24
 BuildRequires: perl-Test-Simple
@@ -42,14 +42,13 @@ mo
        INSTALLDIRS=vendor
 %{__make}
 
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
-
 install -d $RPM_BUILD_ROOT%{_examplesdir}
 cp -r samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
This page took 0.092049 seconds and 4 git commands to generate.