From 2d334e875f2ce5e4cc64e72b0d95d10f5ea87436 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 | 6 ++++++ 1 file changed, 6 insertions(+) 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}* -- 2.34.1