From 6257e0e1056c751dc6951dc76dbe0fe7185db272 Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Fri, 11 Mar 2016 11:50:46 +0900 Subject: [PATCH] Apply directory macros Change-Id: I9b419f585ef8b1832fcc114720fc572869771ce3 --- packaging/libinput.spec | 7 +++++++ 1 file changed, 7 insertions(+) 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}* -- 2.34.1