2 Summary: Bluetooth file share Agent
5 Group: Network & Connectivity/Bluetooth
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: %{name}.manifest
9 Source1002: libbluetooth-share.manifest
10 Source1003: libbluetooth-share-devel.manifest
11 Source1004: init_db.sh
12 Requires(post): coreutils
13 Requires(post): sqlite
16 BuildRequires: gettext-tools
17 BuildRequires: pkgconfig(appcore-efl)
18 BuildRequires: pkgconfig(bluetooth-api)
19 BuildRequires: pkgconfig(glib-2.0)
20 BuildRequires: pkgconfig(dlog)
21 # Same check as in tizen-extensions-crosswalk. A per-package or global
22 # bcond would be better, but for now let's follow Crosswalk's approach.
23 #%if "%{profile}" == "mobile"
24 #BuildRequires: pkgconfig(calendar-service2)
25 #BuildRequires: pkgconfig(contacts-service2)
27 BuildRequires: pkgconfig(vconf)
28 BuildRequires: pkgconfig(pmapi)
29 BuildRequires: pkgconfig(sysman)
30 BuildRequires: pkgconfig(notification)
31 BuildRequires: pkgconfig(appsvc)
32 BuildRequires: pkgconfig(db-util)
33 BuildRequires: pkgconfig(libprivilege-control)
34 BuildRequires: pkgconfig(capi-content-media-content)
35 BuildRequires: pkgconfig(libtzplatform-config)
38 Bluetooth File Share Agent
40 %package -n libbluetooth-share
41 Summary: Bluetooth share library
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
45 %description -n libbluetooth-share
46 Bluetooth share library
48 %package -n libbluetooth-share-devel
49 Summary: Development package for libbluetooth-share
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
53 %description -n libbluetooth-share-devel
54 Development package for libbluetooth-share
58 cp %{SOURCE1001} %{SOURCE1002} %{SOURCE1003} .
61 export CFLAGS+=" -fpie -fvisibility=hidden"
62 export LDFLAGS+=" -Wl,--rpath=/usr/%{_libdir} -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
65 -DTZ_SYS_ETC=%{TZ_SYS_ETC}
70 mkdir -p %{buildroot}%{TZ_SYS_SHARE}/bt-ftp
71 install -D -m 0755 %{SOURCE1004} %{buildroot}%{TZ_SYS_SHARE}/%{name}/ressources/init_db.sh
73 %post -n libbluetooth-share-devel -p /sbin/ldconfig
75 %post -n libbluetooth-share -p /sbin/ldconfig
77 %postun -n libbluetooth-share-devel -p /sbin/ldconfig
79 %postun -n libbluetooth-share -p /sbin/ldconfig
82 %manifest %{name}.manifest
83 %defattr(-,root,root,-)
84 %{_bindir}/bluetooth-share
85 %{_datadir}/dbus-1/system-services/org.bluetooth.share.service
86 %{TZ_SYS_SHARE}/bt-ftp
87 %{TZ_SYS_SHARE}/%{name}
89 %files -n libbluetooth-share
90 %manifest libbluetooth-share.manifest
91 %defattr(-, root, root)
92 %{_libdir}/libbluetooth-share-api.so.0.*
94 %files -n libbluetooth-share-devel
95 %manifest libbluetooth-share-devel.manifest
96 %defattr(-, root, root)
97 %{_includedir}/bluetooth-share-api/bluetooth-share-api.h
98 %{_libdir}/libbluetooth-share-api.so
99 %{_libdir}/pkgconfig/bluetooth-share-api.pc