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
13 Requires(post): coreutils
14 Requires(post): sqlite
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(calendar-service2)
24 BuildRequires: pkgconfig(contacts-service2)
25 BuildRequires: pkgconfig(vconf)
26 BuildRequires: pkgconfig(syspopup-caller)
27 BuildRequires: pkgconfig(pmapi)
28 BuildRequires: pkgconfig(sysman)
29 BuildRequires: pkgconfig(notification)
30 BuildRequires: pkgconfig(appsvc)
31 BuildRequires: pkgconfig(db-util)
32 BuildRequires: pkgconfig(libprivilege-control)
33 BuildRequires: pkgconfig(capi-content-media-content)
34 BuildRequires: pkgconfig(libtzplatform-config)
37 Bluetooth File Share Agent
39 %package -n libbluetooth-share
40 Summary: Bluetooth share library
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
44 %description -n libbluetooth-share
45 Bluetooth share library
47 %package -n libbluetooth-share-devel
48 Summary: Development package for libbluetooth-share
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
52 %description -n libbluetooth-share-devel
53 Development package for libbluetooth-share
57 cp %{SOURCE1001} %{SOURCE1002} %{SOURCE1003} .
60 export CFLAGS+=" -fpie -fvisibility=hidden"
61 export LDFLAGS+=" -Wl,--rpath=/usr/%{_libdir} -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
68 mkdir -p %{buildroot}%{TZ_SYS_SHARE}/bt-ftp
69 install -D -m 0755 %{SOURCE1004} %{buildroot}%{TZ_SYS_SHARE}/%{name}/ressources/init_db.sh
71 %post -n libbluetooth-share-devel -p /sbin/ldconfig
73 %post -n libbluetooth-share -p /sbin/ldconfig
75 %postun -n libbluetooth-share-devel -p /sbin/ldconfig
77 %postun -n libbluetooth-share -p /sbin/ldconfig
80 %manifest %{name}.manifest
81 %{TZ_SYS_ETC}/smack/accesses.d/bluetooth-share.rule
82 %defattr(-,root,root,-)
83 %{_bindir}/bluetooth-share
84 %{_datadir}/dbus-1/system-services/org.bluetooth.share.service
85 %{TZ_SYS_SHARE}/bt-ftp
86 %{TZ_SYS_SHARE}/%{name}
88 %files -n libbluetooth-share
89 %manifest libbluetooth-share.manifest
90 %defattr(-, root, root)
91 %{_libdir}/libbluetooth-share-api.so.0.*
93 %files -n libbluetooth-share-devel
94 %manifest libbluetooth-share-devel.manifest
95 %defattr(-, root, root)
96 %{_includedir}/bluetooth-share-api/bluetooth-share-api.h
97 %{_libdir}/libbluetooth-share-api.so
98 %{_libdir}/pkgconfig/bluetooth-share-api.pc