Browse files

Get VMODDIR from pkg-config

  • Loading branch information...
Tollef Fog Heen authored and tfheen committed Jan 23, 2013
1 parent b91a304 commit ab13e3ab6ff4093823f5c7775d9c20b21f680dd4
Showing with 1 addition and 1 deletion.
  1. +1 −1 vmod-example.spec
@@ -18,7 +18,7 @@ Example VMOD
# 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
-./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/

0 comments on commit ab13e3a

Please sign in to comment.