2 Summary: Service Adaptor Framework for Convergence
5 Group: System/Libraries
7 Source0: %{name}-%{version}.tar.gz
8 Source1: service-adaptor.service
11 BuildRequires: pkgconfig(dlog)
12 BuildRequires: pkgconfig(gio-2.0)
13 BuildRequires: pkgconfig(glib-2.0)
14 BuildRequires: pkgconfig(gobject-2.0)
15 BuildRequires: pkgconfig(gthread-2.0)
16 BuildRequires: pkgconfig(capi-base-common)
17 BuildRequires: pkgconfig(capi-appfw-application)
18 BuildRequires: pkgconfig(capi-appfw-app-manager)
19 BuildRequires: pkgconfig(capi-appfw-package-manager)
20 BuildRequires: pkgconfig(libsmack)
21 BuildRequires: pkgconfig(service-discovery)
22 BuildRequires: pkgconfig(service-federation)
23 BuildRequires: service-discovery-devel
24 BuildRequires: service-federation-devel
27 Service Adaptor Framework Library/Binary package
29 %package -n service-adaptor-devel
30 Summary: Headers for Service Adaptor Framework (devel)
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
34 %description -n service-adaptor-devel
35 This package contains the header and pc files of Service Adaptor.
41 export CFLAGS="${CFLAGS} -fPIC -Wall -g -fvisibility=hidden -fdata-sections -ffunction-sections"
42 export CXXFLAGS="${CXXFLAGS} -fPIC -Wall -g -fvisibility=hidden"
43 export LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--rpath=%{_prefix}/lib -Wl,--as-needed"
45 %if 0%{?sec_build_binary_debug_enable}
46 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
47 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
48 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
51 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
59 mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
60 install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/system/
61 ln -sf ../service-adaptor.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/
63 mkdir -p %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants
64 cp %SOURCE1 %{buildroot}/usr/lib/systemd/user/service-adaptor.service
65 ln -s ../service-adaptor.service %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants/
67 mkdir -p %{buildroot}/usr/share/license
68 cp LICENSE.APLv2 %{buildroot}/usr/share/license/service-adaptor
69 cp LICENSE.APLv2 %{buildroot}/usr/share/license/service-adaptor-devel
71 %post -n service-adaptor
74 %postun -p /sbin/ldconfig
76 %files -n service-adaptor
77 %manifest service-adaptor.manifest
78 #%defattr(-,system,system,-)
79 %defattr(-,root,root,-)
81 %{_bindir}/service-adaptor-server
83 /usr/lib/systemd/user/service-adaptor.service
84 /usr/lib/systemd/user/tizen-middleware.target.wants/service-adaptor.service
85 %{_libdir}/systemd/system/service-adaptor.service
86 %{_libdir}/systemd/system/multi-user.target.wants/service-adaptor.service
87 /usr/share/license/%{name}
89 %files -n service-adaptor-devel
90 #%defattr(-,system,system,-)
91 %defattr(-,root,root,-)
93 %{_libdir}/pkgconfig/service-adaptor.pc
94 %{_includedir}/service-adaptor/*.h
95 %{_includedir}/service-provider/*.h
96 /usr/share/license/%{name}-devel