diff --git a/openvpn.spec b/openvpn.spec index 4bcb825..05e9e8e 100644 --- a/openvpn.spec +++ b/openvpn.spec @@ -129,7 +129,11 @@ chroot directives. %patch1 -p0 %patch5 -p0 %patch6 -p1 -sed -e "s|\" __DATE__|$(date '+%b %e %Y' -r version.m4)\"|g" -i src/openvpn/options.c +sed -e "s|\" __DATE__|$(date '+%b %e %Y' -r version.m4)\"|g" \ + -i src/openvpn/options.c +sed -e "s|@PLUGIN_LIBDIR@|%{_libdir}/openvpn/plugins|g" \ + -e "s|@PLUGIN_DOCDIR@|%{_defaultdocdir}/%{name}|g" \ + -i doc/openvpn.8 # %%doc items shouldn't be executable. find contrib sample -type f -exec chmod a-x \{\} \; @@ -148,7 +152,7 @@ export LDFLAGS --enable-plugin-down-root \ --enable-plugin-auth-pam \ --with-lzo-headers=%_includedir/lzo \ - CFLAGS="$CFLAGS $(getconf LFS_CFLAGS) -fPIE $PLUGIN_DEFS" \ + CFLAGS="$CFLAGS -fPIE $PLUGIN_DEFS" \ LDFLAGS="$LDFLAGS -pie -lpam -rdynamic -Wl,-rpath,%{_libdir}/%{name}/plugins" make