Commit ab13e3ab authored by Tollef Fog Heen's avatar Tollef Fog Heen Committed by Tollef Fog Heen

Get VMODDIR from pkg-config

parent b91a304e
...@@ -18,7 +18,7 @@ Example VMOD ...@@ -18,7 +18,7 @@ Example VMOD
%build %build
# this assumes that VARNISHSRC is defined on the rpmbuild command line, like this: # this assumes that VARNISHSRC is defined on the rpmbuild command line, like this:
# rpmbuild -bb --define 'VARNISHSRC /home/user/rpmbuild/BUILD/varnish-3.0.3' redhat/*spec # rpmbuild -bb --define 'VARNISHSRC /home/user/rpmbuild/BUILD/varnish-3.0.3' redhat/*spec
./configure VARNISHSRC=%{VARNISHSRC} VMODDIR=/usr/lib64/varnish/vmods/ --prefix=/usr/ ./configure VARNISHSRC=%{VARNISHSRC} VMODDIR="$(PKG_CONFIG_PATH=%{VARNISHSRC} pkg-config --variable=vmoddir varnishapi)" --prefix=/usr/
make make
%install %install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment