1 Name: service-discovery
2 Summary: Service Discovery Framework for Convergence
5 Group: System/Libraries
7 Source0: %{name}-%{version}.tar.gz
10 BuildRequires: pkgconfig(dlog)
11 BuildRequires: pkgconfig(gio-2.0)
12 BuildRequires: pkgconfig(glib-2.0)
13 BuildRequires: pkgconfig(gobject-2.0)
14 BuildRequires: pkgconfig(gthread-2.0)
17 Service Discovery Framework Library/Binary package
19 %package -n service-discovery-devel
20 Summary: Headers for Service Discovery Framework
21 Group: Development/Libraries
22 Requires: %{name} = %{version}-%{release}
24 %description -n service-discovery-devel
25 This package contains the header and pc files of Service Discovery.
31 export CFLAGS="${CFLAGS} -fPIC -Wall -g -fvisibility=hidden -fdata-sections -ffunction-sections"
32 export CXXFLAGS="${CXXFLAGS} -fPIC -Wall -g -fvisibility=hidden"
33 export LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--rpath=%{_prefix}/lib -Wl,--as-needed"
35 %if 0%{?sec_build_binary_debug_enable}
36 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
37 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
38 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
41 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
49 mkdir -p %{buildroot}/usr/share/license
50 cp LICENSE.APLv2 %{buildroot}/usr/share/license/service-discovery
51 cp LICENSE.APLv2 %{buildroot}/usr/share/license/service-discovery-devel
53 %post -n service-discovery
56 %postun -p /sbin/ldconfig
58 %files -n service-discovery
59 %manifest service-discovery.manifest
60 %defattr(-,system,system,-)
63 /usr/share/license/%{name}
65 %files -n service-discovery-devel
66 %defattr(-,system,system,-)
68 %{_libdir}/pkgconfig/service-discovery.pc
69 %{_includedir}/service-discovery/*.h
70 /usr/share/license/%{name}-devel