From: Sung-Jin Park Date: Fri, 11 Mar 2016 02:50:46 +0000 (+0900) Subject: Apply directory macros X-Git-Tag: submit/tizen/20160314.020721^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6257e0e1056c751dc6951dc76dbe0fe7185db272;p=platform%2Fupstream%2Flibinput.git Apply directory macros Change-Id: I9b419f585ef8b1832fcc114720fc572869771ce3 --- diff --git a/packaging/libinput.spec b/packaging/libinput.spec index b6f23b53..63e53e17 100644 --- a/packaging/libinput.spec +++ b/packaging/libinput.spec @@ -18,6 +18,8 @@ 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 libinput is a library that handles input devices for display servers and @@ -56,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 @@ -64,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}*