diff options
author | Chanho Park <chanho61.park@samsung.com> | 2014-08-01 22:14:13 +0900 |
---|---|---|
committer | Quanxian Wang <quanxian.wang@intel.com> | 2014-10-15 12:07:06 +0800 |
commit | 0f7536afb0366f7be1877d1348d9d907f8f55449 (patch) | |
tree | c659d8420ade72363baca5033d7fd5794cb776a1 /packaging | |
parent | 52de1c57e2e6f3b2a1259478d5ae260ed4c5706e (diff) | |
download | libdrm-0f7536afb0366f7be1877d1348d9d907f8f55449.tar.gz libdrm-0f7536afb0366f7be1877d1348d9d907f8f55449.tar.bz2 libdrm-0f7536afb0366f7be1877d1348d9d907f8f55449.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>
Diffstat (limited to 'packaging')
-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 |