From: Sung-Jin Park Date: Fri, 11 Mar 2016 02:50:46 +0000 (+0900) Subject: Apply directory macros X-Git-Tag: accepted/tizen/unified/20240105.013022~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3683d2691e3b9dd29d8d4a89c417213d25e90b1;p=platform%2Fupstream%2Flibinput.git Apply directory macros Change-Id: I9b419f585ef8b1832fcc114720fc572869771ce3 --- diff --git a/packaging/libinput.spec b/packaging/libinput.spec index d666dee2..63e53e17 100644 --- a/packaging/libinput.spec +++ b/packaging/libinput.spec @@ -18,6 +18,7 @@ BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(mtdev) BuildRequires: pkgconfig(ttrace) +%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share} %description @@ -57,6 +58,10 @@ cp %{SOURCE1001} . %install %make_install +# for license notification +mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license +cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name} + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -65,6 +70,7 @@ cp %{SOURCE1001} . %files %manifest %{name}.manifest %defattr(-,root,root) +%{TZ_SYS_RO_SHARE}/license/%{name} %{_libdir}/*.so.* %{udev_dir}/%{name}* %{udev_dir}/rules.d/*%{name}*