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 BuildRequires: pkgconfig(aul)
13 BuildRequires: pkgconfig(bluetooth-api)
15 # The profile macro usage with the following comments may be removed after
16 # Tizen OBS build projects are merged. However, each vendor may keep using
17 # such if/endif statement to skip building profiles not interested
19 # This usage of profile macro does NOT conflict 4.0 configurability.
20 %if "%{?profile}" != "mobile" && "%{?profile}" != "tv"
21 # Original: wearable, ivi. Added: common, "undefined"
22 BuildRequires: pkgconfig(alarm-service)
23 BuildRequires: pkgconfig(capi-appfw-app-manager)
24 BuildRequires: pkgconfig(capi-system-device)
26 # This usage of profile macro does NOT conflict 4.0 configurability.
27 %if "%{?profile}" != "wearable" && "%{?profile}" != "ivi"
28 # Original: common, mobile, tv. Added: "undefined"
29 BuildRequires: pkgconfig(contacts-service2)
30 BuildRequires: pkgconfig(msg-service)
31 BuildRequires: pkgconfig(email-service)
33 BuildRequires: pkgconfig(capi-system-info)
34 BuildRequires: pkgconfig(dbus-1)
35 BuildRequires: pkgconfig(tapi)
36 BuildRequires: pkgconfig(dlog)
37 BuildRequires: pkgconfig(vconf)
38 BuildRequires: pkgconfig(appsvc)
39 BuildRequires: pkgconfig(capi-appfw-application)
40 BuildRequires: pkgconfig(capi-network-connection)
41 BuildRequires: pkgconfig(capi-network-bluetooth)
42 BuildRequires: pkgconfig(capi-media-image-util)
43 BuildRequires: pkgconfig(contacts-service2)
44 BuildRequires: pkgconfig(libexif)
45 BuildRequires: pkgconfig(gio-2.0)
47 Requires: security-config
49 BuildRequires: pkgconfig(gmock)
52 #Requires: %{name}-compat = %{version}-%{release}
53 #Recommends: %{name}-profile_common = %{version}-%{release}
56 Bluetooth agent packages that support various external profiles
59 Summary: Bluetooth agent for HFP(Hands-Free Profile)'s AG(Audio Gate) role
60 Requires: %{name} = %{version}-%{release}
61 Group: Network & Connectivity/Bluetooth
63 Bluetooth agent binary compiled for HFP(Hands-Free Profile)'s AG(Audio Gate) role
66 Summary: Bluetooth agent for HFP(Hands-Free Profile)'s HF(Hands-Free) role
67 Requires: %{name} = %{version}-%{release}
68 Group: Network & Connectivity/Bluetooth
70 Bluetooth agent binary compiled for HFP(Hands-Free Profile)'s HF(Hands-Free) role
73 Summary: Bluetooth agent for MAP(Message Access Profile) server
74 Requires: %{name} = %{version}-%{release}
75 Group: Network & Connectivity/Bluetooth
77 Bluetooth agent binary compiled for MAP(Message Access Profile) server
80 Summary: Bluetooth agent for PBAP(PhoneBook Access Profile) server
81 Requires: %{name} = %{version}-%{release}
82 Group: Network & Connectivity/Bluetooth
84 Bluetooth agent binary compiled for PBAP(PhoneBook Access Profile) server
87 Summary: Bluetooth agent for HID(Human Interface Device)'s device role
88 Requires: %{name} = %{version}-%{release}
89 Group: Network & Connectivity/Bluetooth
91 Bluetooth agent binary compiled for HID(Human Interface Device)'s device role
94 Summary: Bluetooth agent for IPSP(Internet Protocol Support Profile)
95 Requires: %{name} = %{version}-%{release}
96 Group: Network & Connectivity/Bluetooth
98 Bluetooth agent binary compiled for IPSP(Internet Protocol Support Profile)
102 Summary: Test package for bluetooth-agent
104 Requires: %{name} = %{version}-%{release}
107 This package is C-API test application.
115 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
116 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
117 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
118 export CFLAGS="$CFLAGS -DTIZEN_FEATURE_BT_MEDIA_ENHANCE"
119 export CFLAGS="$CFLAGS -DTIZEN_FEATURE_BT_HFP_AG"
120 export CFLAGS="$CFLAGS -DTIZEN_SUPPORT_DUAL_HF"
122 %ifarch aarch64 x86_64
124 export CFLAGS+=" -DARCH64"
125 export CXXFLAGS+=" -DARCH64"
126 export FFLAGS+=" -DARCH64"
129 export CFLAGS+=" -fpie -DTIZEN_FEATURE_BP_PBAP_SIM -fvisibility=hidden "
130 export CXXFLAGS+=" -fpie -DTIZEN_FEATURE_BP_PBAP_SIM -fvisibility=hidden "
132 export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
134 export CFLAGS_DEFAULT="$CFLAGS"
137 export CFLAGS+=" -fprofile-arcs -ftest-coverage"
138 export CXXFLAGS+=" -fprofile-arcs -ftest-coverage"
139 export FFLAGS+=" -fprofile-arcs -ftest-coverage"
140 export LDFLAGS+=" -lgcov"
143 # Build All (wearalbe/ivi/common/tv/mobile)
144 %cmake . -DCMAKE_INSTALL_PREFIX=/usr \
145 -DTIZEN_FEATURE_BT_HFP_AG=1 \
146 -DBUILD_GTESTS=%{?gcov:1}%{!?gcov:0} \
147 -DBUILD_GCOV=%{?gcov:1}%{!?gcov:0}
155 # This usage of profile macro does NOT conflict 4.0 configurability.
156 #%if "%{?profile}" != "mobile" && "%{?profile}" != "tv"
157 # Original: wearable, ivi. Added: common, "undefined"
158 #mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services
159 #mkdir -p %{buildroot}%{_bindir}/
160 #install -D -m 0644 %{buildroot}/usr/share/dbus-1/system-services/org.bluez.hf_agent.service %{buildroot}%{_datadir}/dbus-1/system-services/
161 #install -D -m 0644 %{buildroot}/usr/share/dbus-1/system-services/org.bluez.ipsp_agent.service %{buildroot}%{_datadir}/dbus-1/system-services/
162 #install -D -m 0644 %{buildroot}/usr/bin/bluetooth-hf-agent %{buildroot}%{_bindir}/
163 #install -D -m 0644 %{buildroot}/usr/bin/bluetooth-ipsp-agent %{buildroot}%{_bindir}/
165 install -D -m 0644 packaging/bluetooth-map-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-map-agent.service
166 install -D -m 0644 packaging/bluetooth-pbap-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-pbap-agent.service
167 install -D -m 0644 packaging/bluetooth-ag-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-ag-agent.service
168 install -D -m 0644 packaging/bluetooth-hf-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-hf-agent.service
169 install -D -m 0644 packaging/bluetooth-hid-agent.service %{buildroot}%{_libdir}/systemd/system/bluetooth-hid-agent.service
172 %manifest %{name}.manifest
174 %defattr(-, root, root)
177 %manifest %{name}.manifest
179 %{_bindir}/bluetooth-ag-agent
180 %attr(0666,-,-) /var/lib/bluetooth/voice-recognition-blacklist
181 %{_datadir}/dbus-1/system-services/org.bluez.ag_agent.service
182 %{_sysconfdir}/dbus-1/system.d/bluetooth-ag-agent.conf
183 %{_libdir}/systemd/system/bluetooth-ag-agent.service
184 #%exclude %{_libdir}/systemd/system/bluetooth-map-agent.service
185 #%exclude %{_libdir}/systemd/system/bluetooth-pbap-agent.service
188 %manifest %{name}.manifest
190 %{_bindir}/bluetooth-hf-agent
191 %{_datadir}/dbus-1/system-services/org.bluez.hf_agent.service
192 %{_sysconfdir}/dbus-1/system.d/bluetooth-hf-agent.conf
193 %{_libdir}/systemd/system/bluetooth-hf-agent.service
194 #%exclude %{_libdir}/systemd/system/bluetooth-map-agent.service
195 #%exclude %{_libdir}/systemd/system/bluetooth-pbap-agent.service
198 %manifest %{name}.manifest
200 %{_bindir}/bluetooth-map-agent
201 %{_datadir}/dbus-1/system-services/org.bluez.map_agent.service
202 %{_libdir}/systemd/system/bluetooth-map-agent.service
203 %{_sysconfdir}/dbus-1/system.d/bluetooth_map_agent.conf
206 %manifest %{name}.manifest
208 %{_bindir}/bluetooth-pb-agent
209 %{_datadir}/dbus-1/system-services/org.bluez.pb_agent.service
210 %{_libdir}/systemd/system/bluetooth-pbap-agent.service
211 %{_sysconfdir}/dbus-1/system.d/bluetooth_pb_agent.conf
214 %manifest %{name}.manifest
216 %{_bindir}/bluetooth-hid-agent
217 %{_datadir}/dbus-1/system-services/org.bluez.hid_agent.service
218 %{_libdir}/systemd/system/bluetooth-hid-agent.service
219 %{_sysconfdir}/dbus-1/system.d/bluetooth-hid-agent.conf
222 %manifest %{name}.manifest
224 %{_bindir}/bluetooth-ipsp-agent
225 %{_datadir}/dbus-1/system-services/org.bluez.ipsp_agent.service
226 %{_sysconfdir}/dbus-1/system.d/bluetooth-ipsp-agent.conf
230 %manifest %{name}.manifest
231 %{_bindir}/gtest-bluetooth-agent