]> git.pld-linux.org Git - packages/libapreq2.git/commitdiff
- tests (off by default)
authorradek <radek@pld-linux.org>
Fri, 8 Sep 2006 11:37:14 +0000 (11:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libapreq2.spec -> 1.34

libapreq2.spec

index 51bd40cd3b01c846773c4bcd5e3d4c240df807de..5fa2c5618914477180eb1814a25567f045e13d54 100644 (file)
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without static_libs     # don't build static library
+%bcond_with    tests           # perform "make test"
 #
 %include       /usr/lib/rpm/macros.perl
 %define        apxs    /usr/sbin/apxs
@@ -26,6 +27,10 @@ BuildRequires:       autoconf >= 2.53
 BuildRequires: automake
 BuildRequires: libtool
 BuildRequires: perl-ExtUtils-XSBuilder >= 0.23
+%if %{with tests}
+BuildRequires: perl-libwww
+BuildRequires: apache-mod_mime
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -112,6 +117,8 @@ Modu
 
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.036859 seconds and 4 git commands to generate.