From 4d46ff84aca5d09ef33050c3a9c5bcf96c16046e Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Fri, 11 Mar 2016 11:47:07 +0900 Subject: [PATCH] Apply directory macros Change-Id: I2e082b618708edaf8a5558bc423ae30b8ec321ef --- packaging/libevdev.spec | 6 ++++++ 1 file changed, 6 insertions(+) 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}/* -- 2.34.1