4 Summary: Bluetooth file share Agent
8 License: Apache License, Version 2.0
9 Source0: %{name}-%{version}.tar.gz
11 Requires(post): coreutils
12 Requires(post): sqlite
13 Requires(post): smack-utils
15 BuildRequires: gettext-tools
16 BuildRequires: pkgconfig(appcore-efl)
17 BuildRequires: pkgconfig(bluetooth-api)
18 BuildRequires: pkgconfig(glib-2.0)
19 BuildRequires: pkgconfig(aul)
20 BuildRequires: pkgconfig(dlog)
21 BuildRequires: pkgconfig(calendar-service2)
22 BuildRequires: pkgconfig(contacts-service2)
23 BuildRequires: pkgconfig(vconf)
24 BuildRequires: pkgconfig(syspopup-caller)
25 BuildRequires: pkgconfig(pmapi)
26 BuildRequires: pkgconfig(sysman)
27 BuildRequires: pkgconfig(notification)
28 BuildRequires: pkgconfig(appsvc)
29 BuildRequires: pkgconfig(db-util)
30 BuildRequires: pkgconfig(libprivilege-control)
31 BuildRequires: pkgconfig(capi-content-media-content)
34 Bluetooth File Share Agent
36 %package -n libbluetooth-share
37 Summary: Bluetooth share library
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
41 %description -n libbluetooth-share
42 Bluetooth share library
44 %package -n libbluetooth-share-devel
45 Summary: Development package for libbluetooth-share
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
49 %description -n libbluetooth-share-devel
50 Development package for libbluetooth-share
56 export CFLAGS+=" -fpie -fvisibility=hidden"
57 export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
59 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
65 mkdir -p %{buildroot}%{_optdir}/share/bt-ftp
68 # For the FTP server folder
69 if [ ! -e /opt/share/bt-ftp ]
71 mkdir -p /opt/share/bt-ftp
74 if [ ! -e /opt/share/bt-ftp/Media ]
76 ln -s /opt/usr/media /opt/share/bt-ftp/Media
79 if [ ! -e /opt/share/bt-ftp/SD_External ]
81 ln -s /opt/storage/sdcard /opt/share/bt-ftp/SD_External
84 vconftool set -tf bool memory/private/bluetooth-share/quickpanel_clear_btn_status FALSE -g 6520 -i
85 vconftool set -tf bool memory/private/bluetooth-share/opp_server_init FALSE -g 6520 -i
87 if [ ! -f /opt/dbspace/.bluetooth_trasnfer.db ]
89 sqlite3 /opt/dbspace/.bluetooth_trasnfer.db 'PRAGMA journal_mode = PERSIST;
90 create table if not exists inbound (
91 id INTEGER PRIMARY KEY autoincrement,
96 timestamp INTEGER default 0,
101 create table if not exists outbound (
102 id INTEGER PRIMARY KEY autoincrement,
107 timestamp INTEGER default 0,
115 chown :5000 /opt/dbspace/.bluetooth_trasnfer.db
116 chown :5000 /opt/dbspace/.bluetooth_trasnfer.db-journal
117 chmod 660 /opt/dbspace/.bluetooth_trasnfer.db
118 chmod 660 /opt/dbspace/.bluetooth_trasnfer.db-journal
120 if [ -f /usr/lib/rpm-plugins/msm.so ]
122 chsmack -a 'bt_share::db' /opt/dbspace/.bluetooth_trasnfer.db
123 chsmack -a 'bt_share::db' /opt/dbspace/.bluetooth_trasnfer.db-journal
127 %manifest bluetooth-share.manifest
128 %defattr(-,root,root,-)
129 %{_bindir}/bluetooth-share
130 %{_datadir}/dbus-1/services/org.bluetooth.share.service
131 %{_optdir}/share/bt-ftp
133 %files -n libbluetooth-share
134 %defattr(-, root, root)
135 %{_libdir}/libbluetooth-share-api.so.0.*
137 %files -n libbluetooth-share-devel
138 %defattr(-, root, root)
139 /usr/include/bluetooth-share-api/bluetooth-share-api.h
140 %{_libdir}/libbluetooth-share-api.so
141 %{_libdir}/pkgconfig/bluetooth-share-api.pc