Apply directory macros 70/61870/4
authorDoyoun Kang <doyoun.kang@samsung.com>
Fri, 11 Mar 2016 04:52:54 +0000 (13:52 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 17 Mar 2016 07:46:08 +0000 (00:46 -0700)
Change-Id: I5047157a58d2bf2f12af94744161544f6503e2eb

packaging/e-mod-tizen-effect.spec

index bf6730e..6f7e9f8 100644 (file)
@@ -26,6 +26,8 @@ ExclusiveArch:
 %endif
 ###
 
+%global TZ_SYS_RO_SHARE  %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
+
 %description
 This package provides various window effect(animation)
 as one module of enlightenment.
@@ -44,15 +46,15 @@ export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed -Wl,--rpath=/usr/lib"
 %if %{with wayland}
       --enable-wayland-only \
 %endif
-      --prefix=/usr
+      --prefix=%{_prefix}
 make
 
 %install
 rm -rf %{buildroot}
 
 # for license notification
-mkdir -p %{buildroot}/usr/share/license
-cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/usr/share/license/%{name}
+mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
+cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
 
 # install
 make install DESTDIR=%{buildroot}
@@ -65,5 +67,5 @@ find  %{buildroot}%{_libdir}/enlightenment/modules/%{name} -name *.la | xargs rm
 %defattr(-,root,root,-)
 %{_libdir}/enlightenment/modules/e-mod-tizen-effect
 %{_datadir}/enlightenment/data/themes
-/usr/share/license/%{name}
+%{TZ_SYS_RO_SHARE}/license/%{name}