Change-Id: I6c140f044f6f2c7b35259f460b5ab5b5abf48c0b
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
%description devel
This package contains the development files for %{name} API library.
%description devel
This package contains the development files for %{name} API library.
-%if 0%{?gcov:1}
-%package gcov
-Summary: A MDG gcov Tool
-Group: Network & Connectivity/Development
-
-%description gcov
-MDG gcov objects
-%endif
-
%prep
%setup #-q
chmod g-w %_sourcedir/*
%prep
%setup #-q
chmod g-w %_sourcedir/*
CFLAGS=$(echo $CFLAGS | sed 's/-O2/-O0/' | sed 's/-O1/-O0/' | sed 's/-Wp,-D_FORTIFY_SOURCE=2//')
CXXFLAGS=$(echo $CXXFLAGS | sed 's/-O2/-O0/' | sed 's/-O1/-O0/' | sed 's/-Wp,-D_FORTIFY_SOURCE=2//')
CFLAGS=$(echo $CFLAGS | sed 's/-O2/-O0/' | sed 's/-O1/-O0/' | sed 's/-Wp,-D_FORTIFY_SOURCE=2//')
CXXFLAGS=$(echo $CXXFLAGS | sed 's/-O2/-O0/' | sed 's/-O1/-O0/' | sed 's/-Wp,-D_FORTIFY_SOURCE=2//')
-%if 0%{?gcov:1}
-export LDFLAGS+=" -lgcov"
-%endif
-
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%define NETWORK_FW_DATADIR %{TZ_SYS_GLOBALUSER_DATA}/network
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%define NETWORK_FW_DATADIR %{TZ_SYS_GLOBALUSER_DATA}/network
-DMAJORVER=${MAJORVER} \
-DNETWORK_FW_DATADIR=%{NETWORK_FW_DATADIR} \
-DDBDIR=%{DBDIR} \
-DMAJORVER=${MAJORVER} \
-DNETWORK_FW_DATADIR=%{NETWORK_FW_DATADIR} \
-DDBDIR=%{DBDIR} \
- -DBUILD_GCOV=%{?gcov:1}%{!?gcov:0}
-%if 0%{?gcov:1}
-mkdir -p gcov-obj
-find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
-%endif
-
%install
rm -rf %{buildroot}/BUILD/%{name}
%make_install
%install
rm -rf %{buildroot}/BUILD/%{name}
%make_install
-%if 0%{?gcov:1}
-mkdir -p %{buildroot}%{_datadir}/gcov/obj
-install -m 0644 gcov-obj/* %{buildroot}%{_datadir}/gcov/obj
-%endif
-
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/*.h
%attr(777,network_fw,network_fw) %{_bindir}/mdg-test
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/*.h
%attr(777,network_fw,network_fw) %{_bindir}/mdg-test
-
-%if 0%{?gcov:1}
-%files gcov
-%{_datadir}/gcov/obj/*
-%endif