1 %define _usrlibdir /usr/lib
4 Summary: Bluetooth agent packages that support various external profiles
7 Group: Network & Connectivity/Bluetooth
9 Source0: %{name}-%{version}.tar.gz
10 Source1001: bluetooth-agent.manifest
12 %if "%{?profile}" == "tv"
13 ExcludeArch: %{arm} %ix86 x86_64
16 BuildRequires: pkgconfig(aul)
17 BuildRequires: pkgconfig(bluetooth-api)
18 %if "%{?profile}" == "wearable"
19 BuildRequires: pkgconfig(alarm-service)
20 BuildRequires: pkgconfig(capi-appfw-app-manager)
21 BuildRequires: pkgconfig(capi-system-device)
23 BuildRequires: pkgconfig(contacts-service2)
24 BuildRequires: pkgconfig(msg-service)
26 BuildRequires: pkgconfig(capi-system-info)
27 BuildRequires: pkgconfig(dbus-glib-1)
28 BuildRequires: pkgconfig(tapi)
29 BuildRequires: pkgconfig(dlog)
30 BuildRequires: pkgconfig(vconf)
31 BuildRequires: pkgconfig(appsvc)
32 BuildRequires: pkgconfig(capi-appfw-application)
33 BuildRequires: pkgconfig(capi-media-image-util)
34 BuildRequires: pkgconfig(libexif)
36 Requires: security-config
39 Bluetooth agent packages that support various external profiles
46 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
47 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
48 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
49 export CFLAGS="$CFLAGS -DTIZEN_MEDIA_ENHANCE"
50 export CFLAGS="$CFLAGS -DTIZEN_BT_HFP_AG_ENABLE"
52 %if "%{?profile}" == "wearable"
53 export CFLAGS="$CFLAGS -DTIZEN_WEARABLE"
54 export CFLAGS="$CFLAGS -DTIZEN_SUPPORT_LUNAR_DEVICE"
56 export CFLAGS="$CFLAGS -DTIZEN_KIRAN"
59 export CFLAGS+=" -fpie -DPBAP_SIM_ENABLE"
61 export CFLAGS+=" -fpie -fvisibility=hidden"
62 export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
64 cmake . -DCMAKE_INSTALL_PREFIX=/usr \
65 %if "%{?profile}" == "wearable"
70 -DTIZEN_BT_HFP_AG_ENABLE=1
78 install -D -m 0644 LICENSE %{buildroot}%{_datadir}/license/bluetooth-agent
79 mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
80 #%if "%{?profile}" != "wearable"
81 #install -m 0644 packaging/bluetooth-ag-agent.service %{buildroot}%{_unitdir}/
82 #ln -s ../bluetooth-ag-agent.service %{buildroot}%{_unitdir}/multi-user.target.wants/bluetooth-ag-agent.service
86 %manifest %{name}.manifest
87 %defattr(-, root, root)
88 %if "%{?profile}" == "wearable"
89 %{_bindir}/bluetooth-hf-agent
90 %{_datadir}/dbus-1/system-services/org.bluez.hf_agent.service
92 %{_bindir}/bluetooth-ag-agent
93 %{_bindir}/bluetooth-map-agent
94 %{_bindir}/bluetooth-pb-agent
95 %{_datadir}/dbus-1/system-services/org.bluez.pb_agent.service
96 %{_datadir}/dbus-1/system-services/org.bluez.map_agent.service
97 %{_datadir}/dbus-1/system-services/org.bluez.ag_agent.service
98 #%{_usrlibdir}/systemd/system/bluetooth-ag-agent.service
99 #%{_usrlibdir}/systemd/system/multi-user.target.wants/bluetooth-ag-agent.service
100 %attr(0666,-,-) /var/lib/bluetooth/voice-recognition-blacklist
101 %{_sysconfdir}/dbus-1/system.d/bluetooth-ag-agent.conf
103 %{_datadir}/license/bluetooth-agent