diff options
author | Chanho Park <chanho61.park@samsung.com> | 2014-08-01 22:14:13 +0900 |
---|---|---|
committer | Joonyoung Shim <jy0922.shim@samsung.com> | 2017-02-15 13:37:33 +0900 |
commit | 6fff76bd052f34bbdcbf7e24c5404e108c6b3620 (patch) | |
tree | 14314f2ff69a5de555849863a9f3a80287232ac5 | |
parent | 9112953f1f4a758cc1d38d74d1188923b114793f (diff) | |
download | libdrm-6fff76bd052f34bbdcbf7e24c5404e108c6b3620.tar.gz libdrm-6fff76bd052f34bbdcbf7e24c5404e108c6b3620.tar.bz2 libdrm-6fff76bd052f34bbdcbf7e24c5404e108c6b3620.zip |
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 <chanho61.park@samsung.com>
-rw-r--r-- | packaging/libdrm.spec | 26 |
1 files changed, 25 insertions, 1 deletions
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 |