4 Summary: Bluetooth file share Agent
8 License: Apache License, Version 2.0
9 Source0: %{name}-%{version}.tar.gz
11 BuildRequires: gettext-tools
12 BuildRequires: pkgconfig(appcore-efl)
13 BuildRequires: pkgconfig(bluetooth-api)
14 BuildRequires: pkgconfig(glib-2.0)
15 BuildRequires: pkgconfig(aul)
16 BuildRequires: pkgconfig(dlog)
17 BuildRequires: pkgconfig(calendar-service2)
18 BuildRequires: pkgconfig(contacts-service2)
19 BuildRequires: pkgconfig(vconf)
20 BuildRequires: pkgconfig(syspopup-caller)
21 BuildRequires: pkgconfig(pmapi)
22 BuildRequires: pkgconfig(sysman)
23 BuildRequires: pkgconfig(notification)
24 BuildRequires: pkgconfig(appsvc)
25 BuildRequires: pkgconfig(db-util)
26 BuildRequires: pkgconfig(libprivilege-control)
27 BuildRequires: pkgconfig(capi-content-media-content)
30 Bluetooth File Share Agent
32 %package -n libbluetooth-share
33 Summary: Bluetooth share library
34 Group: Development/Libraries
35 Requires: %{name} = %{version}-%{release}
37 %description -n libbluetooth-share
38 Bluetooth share library
40 %package -n libbluetooth-share-devel
41 Summary: Development package for libbluetooth-share
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
45 %description -n libbluetooth-share-devel
46 Development package for libbluetooth-share
52 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
58 mkdir -p %{buildroot}%{_optdir}/share/bt-ftp
61 # For the FTP server folder
62 if [ ! -e /opt/share/bt-ftp ]
64 mkdir -p /opt/share/bt-ftp
67 if [ ! -e /opt/share/bt-ftp/Media ]
69 ln -s /opt/usr/media /opt/share/bt-ftp/Media
72 if [ ! -e /opt/share/bt-ftp/SD_External ]
74 ln -s /opt/storage/sdcard /opt/share/bt-ftp/SD_External
77 vconftool set -tf bool memory/private/bluetooth-share/quickpanel_clear_btn_status FALSE -g 6520 -i
78 vconftool set -tf bool memory/private/bluetooth-share/opp_server_init FALSE -g 6520 -i
80 if [ ! -f /opt/dbspace/.bluetooth_trasnfer.db ]
82 sqlite3 /opt/dbspace/.bluetooth_trasnfer.db 'PRAGMA journal_mode = PERSIST;
83 create table if not exists inbound (
84 id INTEGER PRIMARY KEY autoincrement,
89 timestamp INTEGER default 0,
92 create table if not exists outbound (
93 id INTEGER PRIMARY KEY autoincrement,
98 timestamp INTEGER default 0,
104 chown :5000 /opt/dbspace/.bluetooth_trasnfer.db
105 chown :5000 /opt/dbspace/.bluetooth_trasnfer.db-journal
106 chmod 660 /opt/dbspace/.bluetooth_trasnfer.db
107 chmod 660 /opt/dbspace/.bluetooth_trasnfer.db-journal
109 if [ -f /usr/lib/rpm-plugins/msm.so ]
111 chsmack -a 'bt_share::db' /opt/dbspace/.bluetooth_trasnfer.db
112 chsmack -a 'bt_share::db' /opt/dbspace/.bluetooth_trasnfer.db-journal
116 %manifest bluetooth-share.manifest
117 %defattr(-,root,root,-)
118 %{_bindir}/bluetooth-share
119 %{_datadir}/dbus-1/services/org.bluetooth.share.service
120 %{_optdir}/share/bt-ftp
122 %files -n libbluetooth-share
123 %defattr(-, root, root)
124 %{_libdir}/libbluetooth-share-api.so.0.*
126 %files -n libbluetooth-share-devel
127 %defattr(-, root, root)
128 /usr/include/bluetooth-share-api/bluetooth-share-api.h
129 %{_libdir}/libbluetooth-share-api.so
130 %{_libdir}/pkgconfig/bluetooth-share-api.pc