Source4: bluetooth.sh
Source5: baselibs.conf
Source7: bluetooth.modprobe
+Source101: obex-root-setup
+Source102: create-symlinks
Source1001: bluez.manifest
%define cups_lib_dir %{_prefix}/lib/cups
install --mode 0755 -d $RPM_BUILD_ROOT/var/lib/bluetooth
+install -D -m 0755 %SOURCE101 %{buildroot}%{_bindir}/obex-root-setup
+install -D -m 0755 %SOURCE102 %{buildroot}%{_sysconfdir}/obex/root-setup.d/000_create-symlinks
+
%post -n libbluetooth -p /sbin/ldconfig
%postun -n libbluetooth -p /sbin/ldconfig
/lib/bluetooth/obexd
%{_libdir}/systemd/user/obex.service
%{_datadir}/dbus-1/services/org.bluez.obex.service
+%{_sysconfdir}/obex/root-setup.d/000_create-symlinks
+%{_bindir}/obex-root-setup
%files test
%manifest %{name}.manifest
--- /dev/null
+#!/bin/sh
+
+OBEX_ROOT="$1"
+
+cd "$OBEX_ROOT"
+
+ln -sf ../MyDocs/.documents Documents
+ln -sf ../MyDocs/.images Images
+ln -sf ../MyDocs/.sounds "Audio clips"
+ln -sf ../MyDocs/.camera Camera
+ln -sf ../MyDocs/.videos "Video clips"
+ln -sf ../MyDocs Data
--- /dev/null
+#!/bin/sh
+
+set -e
+
+ROOT_SETUP=/etc/obex/root-setup.d
+
+OBEX_ROOT="$1"
+
+mkdir -p "$OBEX_ROOT"
+
+if [ -d "$ROOT_SETUP" ]; then
+ run-parts -a "$OBEX_ROOT" "$ROOT_SETUP"
+fi
+
+chmod 0550 "$OBEX_ROOT"