From 6fff76bd052f34bbdcbf7e24c5404e108c6b3620 Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Fri, 1 Aug 2014 22:14:13 +0900 Subject: packaging: add libdrm-tools This patch adds libdrm-tools package which includes test utilities such as modetest/modeprint. Change-Id: Icc10b1c56625af7954823664156cfec8b7b57c3e Signed-off-by: Chanho Park --- packaging/libdrm.spec | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/packaging/libdrm.spec b/packaging/libdrm.spec index 01963ffe..9de30eca 100644 --- a/packaging/libdrm.spec +++ b/packaging/libdrm.spec @@ -14,6 +14,15 @@ BuildRequires: pkgconfig(pthread-stubs) %description Direct Rendering Manager headers and kernel modules. +%package tools +Summary: Diagnostic utilities for DRI and DRM +Group: Graphics & UI Framework/Utilities +Obsoletes: libdrm < %version-%release +Provides: libdrm = %version-%release + +%description tools +Diagnoistic tools to run a test for DRI and DRM + %package devel Summary: Userspace interface to kernel DRM services Requires: kernel-headers @@ -56,10 +65,18 @@ cp %{SOURCE1001} . --enable-exynos-experimental-api make %{?_smp_mflags} +make %{?_smp_mflags} -C tests dristat drmstat %install %make_install - +make -C tests/modeprint install DESTDIR=$RPM_BUILD_ROOT +make -C tests/modetest install DESTDIR=$RPM_BUILD_ROOT +%{__mkdir} -p $RPM_BUILD_ROOT/usr/bin +%{__install} \ + tests/.libs/dristat \ + tests/.libs/drmstat \ + tests/modeprint/.libs/modeprint \ + tests/modetest/.libs/modetest $RPM_BUILD_ROOT/usr/bin %post -p /sbin/ldconfig @@ -79,6 +96,13 @@ make %{?_smp_mflags} %{_libdir}/libdrm_exynos.so.* %{_libdir}/libdrm_vigs.so.* +%files tools +%manifest %{name}.manifest +%_bindir/dristat +%_bindir/drmstat +%_bindir/modeprint +%_bindir/modetest + %files devel %manifest %{name}.manifest %dir %{_includedir}/libdrm -- cgit v1.2.3