From 1c2751c5f88031489c80759707a633669d965204 Mon Sep 17 00:00:00 2001 From: Jan-Frode Myklebust Date: Aug 25 2013 20:15:36 +0000 Subject: Use rpm %configure macro, instead of calling configure directly. --- diff --git a/trafficserver.spec b/trafficserver.spec index d806fa3..d7d474a 100644 --- a/trafficserver.spec +++ b/trafficserver.spec @@ -3,7 +3,7 @@ Summary: Fast, scalable and extensible HTTP/1.1 compliant caching proxy server Name: trafficserver Version: 3.2.5 -Release: 2%{?dist} +Release: 3%{?dist} License: ASL 2.0 Group: System Environment/Daemons Source0: http://www.apache.org/dist/%{name}/%{name}-%{version}.tar.bz2 @@ -40,8 +40,16 @@ caching proxy server. %patch2 -p1 -b .patch2 %build -LDFLAGS="%{?__global_ldflags}" CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure --enable-layout=Gentoo --libdir=%{_libdir}/trafficserver --with-tcl=%{_libdir} --with-user=ats --with-group=ats -make %{?_smp_mflags} LDFLAGS="%{?__global_ldflags}" CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" +%configure \ + --enable-layout=Gentoo \ + --libdir=%{_libdir}/trafficserver \ + --libexecdir=%{_libdir}/trafficserver/plugins \ + --sysconfdir=%{_sysconfdir}/trafficserver \ + --with-tcl=%{_libdir} \ + --with-user=ats --with-group=ats \ + --disable-silent-rules + +make %{?_smp_mflags} %install echo $RPM_BUILD_ROOT @@ -188,6 +196,10 @@ header files, and Apache httpd style module build system. %attr(0644,root,root) %{_libdir}/trafficserver/*.so %changelog +* Sun Aug 25 2013 Jan-Frode Myklebust - 3.2.5-3 +- bz#994224 Use rpm %configure macro, instead of calling configure + directly. + * Fri Aug 9 2013 Jan-Frode Myklebust - 3.2.5-2 - bz#994224 Pass RPM_OPT_FLAGS as environment variables to configure, instead of overriding on make commandline. Thanks Dimitry Andric!