diff options
| -rw-r--r-- | bluetooth.spec | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bluetooth.spec b/bluetooth.spec index d6b8f2e..dd668b9 100644 --- a/bluetooth.spec +++ b/bluetooth.spec @@ -74,8 +74,16 @@ Header files and development libraries for the BlueZ Bluetooth library. %make_build lib/libbluetooth.la %install -# Install only the library, headers, and pkgconfig file -%make_install install-libLTLIBRARIES install-pkgincludeHEADERS install-pkgconfigDATA +# Install only the library, headers, and pkgconfig file. +# Do NOT use %%make_install (which runs the bare 'install' make target) — +# in automake install→install-am→all-am, which rebuilds src/bluetoothd. +# With --disable-hfp the HFP functions (hfp_hf_sco_remove, hfp_hf_get_device) +# are not compiled, but profiles/audio/media.c still references them, so +# linking bluetoothd fails. Instead invoke only the specific install +# sub-targets directly; they depend solely on lib/libbluetooth.la (built +# in %%build), the source headers, and lib/bluez.pc (generated by configure). +make DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p" \ + install-libLTLIBRARIES install-pkgincludeHEADERS install-pkgconfigDATA # Remove libtool archive files find %{buildroot} -name '*.la' -delete |
