* updated spec file accordingly -- don't know if this works git-svn-id: svn+ssh://jackaudio.org/trunk/jack@220 0c269be4-1314-0410-8aa9-9f06e86f4224tags/0.109.0
@@ -66,6 +66,17 @@ AC_ARG_ENABLE(capabilities, | |||||
AC_SUBST(JACK_CFLAGS) | AC_SUBST(JACK_CFLAGS) | ||||
STRIPPED_JACKD=false | |||||
AC_ARG_ENABLE(stripped-jackd, | |||||
[ --enable-stripped-jackd strip jack before computing its md5 sum ], | |||||
[ if test "x$USE_CAPABILITIES" != "xtrue" ; then | |||||
AC_MSG_WARN([*** capabilities not enabled, stripped jackd has no effect]) | |||||
elif test "x$enable_stripped_jackd" != "xno"; then | |||||
STRIPPED_JACKD=true | |||||
fi | |||||
] | |||||
) | |||||
# plugins (just jack_alsa.so at the moment) go in the addon dir. | # plugins (just jack_alsa.so at the moment) go in the addon dir. | ||||
ADDON_DIR=${libdir}/jack | ADDON_DIR=${libdir}/jack | ||||
@@ -131,6 +142,7 @@ AM_CONDITIONAL(HAVE_FLTK, $HAVE_FLTK) | |||||
AM_CONDITIONAL(HAVE_SNDFILE, $HAVE_SNDFILE) | AM_CONDITIONAL(HAVE_SNDFILE, $HAVE_SNDFILE) | ||||
AM_CONDITIONAL(HAVE_DOXYGEN, $HAVE_DOXYGEN) | AM_CONDITIONAL(HAVE_DOXYGEN, $HAVE_DOXYGEN) | ||||
AM_CONDITIONAL(USE_CAPABILITIES, $USE_CAPABILITIES) | AM_CONDITIONAL(USE_CAPABILITIES, $USE_CAPABILITIES) | ||||
AM_CONDITIONAL(STRIPPED_JACKD, $STRIPPED_JACKD) | |||||
AC_OUTPUT( | AC_OUTPUT( | ||||
Makefile | Makefile | ||||
jack.pc | jack.pc | ||||
@@ -12,10 +12,6 @@ Source0: %{name}-%{version}.tar.gz | |||||
URL: http://jackit.sourceforge.net | URL: http://jackit.sourceforge.net | ||||
BuildRoot: /var/tmp/%{name}-%{version}-root-%(id -u -n) | BuildRoot: /var/tmp/%{name}-%{version}-root-%(id -u -n) | ||||
# disable build root strip policy, otherwise rpm strips the executables | |||||
# and the jackd md5 checksum checked by jackstart does not match. | |||||
%define __spec_install_post /usr/lib/rpm/brp-compress || : | |||||
%description | %description | ||||
JACK is a low-latency audio server, written primarily for the Linux | JACK is a low-latency audio server, written primarily for the Linux | ||||
operating system. It can connect a number of different applications to | operating system. It can connect a number of different applications to | ||||
@@ -50,7 +46,7 @@ Small example clients that use the Jack Audio Connection Kit. | |||||
%build | %build | ||||
%if "%{enable_capabilities}" == "1" | %if "%{enable_capabilities}" == "1" | ||||
%configure --enable-capabilities | |||||
%configure --enable-capabilities --enable-stripped-jackd | |||||
%else | %else | ||||
%configure | %configure | ||||
%endif | %endif | ||||
@@ -20,6 +20,9 @@ noinst_HEADERS = jack_md5.h md5.h md5_loc.h | |||||
BUILT_SOURCES = jack_md5.h | BUILT_SOURCES = jack_md5.h | ||||
jack_md5.h: jackd | jack_md5.h: jackd | ||||
if STRIPPED_JACKD | |||||
strip -R .note -R .comment .libs/jackd | |||||
endif | |||||
echo "#define JACKD_MD5_SUM \"`md5sum .libs/jackd | awk '{print $$1}'`\"" > jack_md5.h | echo "#define JACKD_MD5_SUM \"`md5sum .libs/jackd | awk '{print $$1}'`\"" > jack_md5.h | ||||
jackstart_SOURCES = jackstart.c md5.c | jackstart_SOURCES = jackstart.c md5.c | ||||