SET(PACKAGE ${PROJECT_NAME})
SET(PKGNAME "${VENDOR}.${PACKAGE}")
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
+SET(PREFIXRW ${CMAKE_INSTALL_PREFIXRW})
SET(BINDIR "${PREFIX}/bin")
SET(RESDIR "${PREFIX}/res")
-SET(DATADIR "${PREFIX}/data")
+SET(DATADIR "${PREFIXRW}/data")
SET(LOCALEDIR "${RESDIR}/locale")
SET(ICONDIR "${RESDIR}/icons")
SET(EDJDIR "${RESDIR}/edje")
%define PKGNAME org.tizen.indicator
%define PREFIX /usr/apps/%{PKGNAME}
%define RESDIR %{PREFIX}/res
+%define PREFIXRW /opt/usr/apps/%{PKGNAME}
Name: org.tizen.indicator
Summary: indicator window
CXXFLAGS+=" -fvisibility=hidden -fvisibility-inlines-hidden"; export CXXFLAGS
FFLAGS+=" -fvisibility=hidden -fvisibility-inlines-hidden"; export FFLAGS
-cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX}
+cmake . -DCMAKE_INSTALL_PREFIX=%{PREFIX} -DCMAKE_INSTALL_PREFIXRW=%{PREFIXRW} \
make %{?jobs:-j%jobs}
%{RESDIR}/icons/*
%{RESDIR}/edje/*
/usr/share/packages/%{PKGNAME}.xml
+%attr(775,app,app) %{PREFIXRW}/data
%attr(755,-,-) %{_sysconfdir}/init.d/indicator
/usr/share/license/%{PKGNAME}
/usr/apps/%{PKGNAME}/author-signature.xml