summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>2015-01-06 05:31:01 -0800
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2015-01-06 05:31:01 -0800
commit9f41ab529ed8ec71e3cdab580e2e983337f83c78 (patch)
treea361662027bfc08277051c987cc74673fbdbf5cb
parent6d4925fd0ea38d534baa119760d015df6921b6ca (diff)
parent9a7c9774e50e9e8073f145a1063f4eb12c561313 (diff)
downloadlibdrm-9f41ab529ed8ec71e3cdab580e2e983337f83c78.tar.gz
libdrm-9f41ab529ed8ec71e3cdab580e2e983337f83c78.tar.bz2
libdrm-9f41ab529ed8ec71e3cdab580e2e983337f83c78.zip
Merge "clean spec file" into tizen
-rw-r--r--packaging/libdrm.spec36
1 files changed, 19 insertions, 17 deletions
diff --git a/packaging/libdrm.spec b/packaging/libdrm.spec
index c4c46d8e..bec559bc 100644
--- a/packaging/libdrm.spec
+++ b/packaging/libdrm.spec
@@ -7,6 +7,7 @@ Summary: Userspace interface to kernel DRM services
Group: Graphics & UI Framework/Libraries
Source0: %{name}-%{version}.tar.bz2
Source1001: libdrm.manifest
+
BuildRequires: kernel-headers
BuildRequires: pkgconfig(pciaccess)
BuildRequires: pkgconfig(pthread-stubs)
@@ -15,7 +16,7 @@ BuildRequires: pkgconfig(pthread-stubs)
Direct Rendering Manager headers and kernel modules.
%package tools
-Summary: Diagnostic utilities for DRI and DRM
+Summary: Diagnostic utilities for DRI and DRM
Group: Graphics & UI Framework/Utilities
Obsoletes: libdrm < %version-%release
Provides: libdrm = %version-%release
@@ -48,20 +49,19 @@ Development related files.
Summary: Userspace interface to kernel DRM buffer management
%description -n libkms
-Userspace interface to kernel DRM buffer management
+Userspace interface to kernel DRM buffer management files
%package intel
Summary: Userspace interface to intel graphics kernel DRM buffer management
%description intel
-Userspace interface to intel graphics kernel DRM buffer management
+Userspace interface to intel graphics kernel DRM buffer management files
%prep
%setup -q
-
+cp %{SOURCE1001} .
%build
-cp %{SOURCE1001} .
%reconfigure \
--enable-static=yes \
--enable-udev \
@@ -72,17 +72,21 @@ cp %{SOURCE1001} .
--disable-radeon \
--disable-nouveau \
--enable-exynos-experimental-api \
- --enable-install-test-programs
+ --enable-install-test-programs \
+ --disable-cairo-tests
-make %{?_smp_mflags}
-make %{?_smp_mflags} -C tests dristat drmstat
+%__make %{?_smp_mflags}
+%__make %{?_smp_mflags} -C tests dristat drmstat
%install
%make_install
-%{__mkdir} -p $RPM_BUILD_ROOT/usr/bin
+%{__mkdir} -p %{buildroot}%{_bindir}
%{__install} \
- tests/.libs/dristat \
- tests/.libs/drmstat $RPM_BUILD_ROOT/usr/bin
+ tests/.libs/dristat \
+ tests/.libs/drmstat \
+ %{buildroot}%{_bindir}
+
+rm -f %{buildroot}%{_bindir}/kmstest
%post -p /sbin/ldconfig
@@ -104,11 +108,10 @@ make %{?_smp_mflags} -C tests dristat drmstat
%files tools
%manifest %{name}.manifest
-%_bindir/dristat
-%_bindir/drmstat
-%_bindir/kmstest
-%_bindir/modeprint
-%_bindir/modetest
+%{_bindir}/dristat
+%{_bindir}/drmstat
+%{_bindir}/modeprint
+%{_bindir}/modetest
%files tools-exynos
%manifest %{name}.manifest
@@ -134,7 +137,6 @@ make %{?_smp_mflags} -C tests dristat drmstat
%{_libdir}/libdrm_vigs.so
%{_libdir}/pkgconfig/*
-
%files -n libkms
%manifest %{name}.manifest
%{_libdir}/libkms.so.*