From: Sung-Jin Park Date: Fri, 11 Mar 2016 02:47:07 +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=refs%2Fheads%2Faccepted%2Ftizen_3.0.m2_wearable;p=platform%2Fupstream%2Flibevdev.git Apply directory macros Change-Id: I2e082b618708edaf8a5558bc423ae30b8ec321ef --- diff --git a/packaging/libevdev.spec b/packaging/libevdev.spec index 31c3602..541b0f2 100644 --- a/packaging/libevdev.spec +++ b/packaging/libevdev.spec @@ -12,6 +12,7 @@ BuildRequires: doxygen BuildRequires: make BuildRequires: python +%global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share} %description libevdev is a wrapper library for evdev devices. it moves the common @@ -41,6 +42,10 @@ make %{?jobs:-j%jobs} V=1 %make_install #%fdupes %{buildroot} +# 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 @@ -49,6 +54,7 @@ make %{?jobs:-j%jobs} V=1 %files %manifest %{name}.manifest %defattr(-,root,root) +%{TZ_SYS_RO_SHARE}/license/%{name} %{_bindir}/touchpad-edge-detector %{_libdir}/*.so.* %{_datadir}/*