Group: Graphics & UI Framework/Libraries
Source0: %{name}-%{version}.tar.bz2
Source1001: libdrm.manifest
+
BuildRequires: kernel-headers
BuildRequires: pkgconfig(pciaccess)
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
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 \
--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
%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
%{_libdir}/libdrm_vigs.so
%{_libdir}/pkgconfig/*
-
%files -n libkms
%manifest %{name}.manifest
%{_libdir}/libkms.so.*