1 %define TZ_SYS_SHARE /opt
4 Summary: Bluetooth file share Agent
7 Group: Network & Connectivity/Bluetooth
9 Source0: %{name}-%{version}.tar.gz
10 Source1001: %{name}.manifest
11 Source1002: libbluetooth-share.manifest
12 Source1003: libbluetooth-share-devel.manifest
13 Source1004: init_db.sh
14 Requires(post): coreutils
17 BuildRequires: gettext-tools
18 BuildRequires: pkgconfig(appcore-efl)
19 BuildRequires: pkgconfig(bluetooth-api)
20 BuildRequires: pkgconfig(glib-2.0)
21 BuildRequires: pkgconfig(aul)
22 BuildRequires: pkgconfig(dlog)
23 BuildRequires: pkgconfig(sqlite3)
24 BuildRequires: pkgconfig(ecore)
25 # Same check as in tizen-extensions-crosswalk. A per-package or global
26 # bcond would be better, but for now let's follow Crosswalk's approach.
27 #%if "%{profile}" == "mobile"
28 #BuildRequires: pkgconfig(calendar-service2)
29 #BuildRequires: pkgconfig(contacts-service2)
31 BuildRequires: pkgconfig(vconf)
32 BuildRequires: pkgconfig(syspopup-caller)
33 BuildRequires: pkgconfig(pmapi)
34 BuildRequires: pkgconfig(sysman)
35 BuildRequires: pkgconfig(notification)
36 BuildRequires: pkgconfig(appsvc)
37 BuildRequires: pkgconfig(db-util)
38 BuildRequires: pkgconfig(capi-content-media-content)
39 BuildRequires: pkgconfig(storage)
40 BuildRequires: pkgconfig(libtzplatform-config)
41 BuildRequires: pkgconfig(cynara-client)
42 BuildRequires: pkgconfig(cynara-session)
43 BuildRequires: pkgconfig(cynara-creds-dbus)
44 BuildRequires: pkgconfig(eventsystem)
47 Bluetooth File Share Agent
49 %package -n libbluetooth-share
50 Summary: Bluetooth share library
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
54 %description -n libbluetooth-share
55 Bluetooth share library
57 %package -n libbluetooth-share-devel
58 Summary: Development package for libbluetooth-share
59 Group: Development/Libraries
60 Requires: %{name} = %{version}-%{release}
62 %description -n libbluetooth-share-devel
63 Development package for libbluetooth-share
67 cp %{SOURCE1001} %{SOURCE1002} %{SOURCE1003} .
70 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
71 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
72 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
74 export CFLAGS+=" -fpie -fvisibility=hidden"
75 export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
78 -DCMAKE_INSTALL_PREFIX=%{_prefix}
84 mkdir -p %{buildroot}%{TZ_SYS_SHARE}/bt-ftp
85 install -D -m 0755 %{SOURCE1004} %{buildroot}%{TZ_SYS_SHARE}/%{name}/ressources/init_db.sh
87 %post -n libbluetooth-share-devel -p /sbin/ldconfig
89 %post -n libbluetooth-share -p /sbin/ldconfig
91 %postun -n libbluetooth-share-devel -p /sbin/ldconfig
93 %postun -n libbluetooth-share -p /sbin/ldconfig
96 %manifest %{name}.manifest
97 %defattr(-,root,root,-)
98 %{_bindir}/bluetooth-share
99 %{_datadir}/dbus-1/system-services/org.bluetooth.share.service
100 %{TZ_SYS_SHARE}/bt-ftp
101 %{TZ_SYS_SHARE}/%{name}
103 %files -n libbluetooth-share
104 %manifest libbluetooth-share.manifest
105 %defattr(-, root, root)
106 %{_libdir}/libbluetooth-share-api.so.0.*
108 %files -n libbluetooth-share-devel
109 %manifest libbluetooth-share-devel.manifest
110 %defattr(-, root, root)
111 %{_includedir}/bluetooth-share-api/bluetooth-share-api.h
112 %{_libdir}/libbluetooth-share-api.so
113 %{_libdir}/pkgconfig/bluetooth-share-api.pc