Accepting request 126379 from home:Guillaume_G:branches:X11:XOrg

enable omapdrm support

OBS-URL: https://build.opensuse.org/request/show/126379
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libdrm?expand=0&rev=108
This commit is contained in:
Stefan Dirsch 2012-06-27 21:38:08 +00:00 committed by Git OBS Bridge
parent 19bbb2dd0d
commit 83dae9355b
3 changed files with 28 additions and 2 deletions

View File

@ -1,12 +1,14 @@
libdrm2
libdrm_intel1
libdrm_nouveau1
libdrm_omap1
libdrm_radeon1
libdrm-devel
requires -libdrm-<targettype>
requires "libdrm2-<targettype> = <version>"
requires "libdrm_intel1-<targettype> = <version>"
requires "libdrm_nouveau1-<targettype> = <version>"
requires "libdrm_omap1-<targettype> = <version>"
requires "libdrm_radeon1-<targettype> = <version>"
libkms1
libkms-devel

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 27 20:04:08 UTC 2012 - guillaume@opensuse.org
- enable omapdrm support
-------------------------------------------------------------------
Tue May 29 09:47:00 UTC 2012 - sndirsch@suse.com

View File

@ -16,7 +16,6 @@
#
Name: libdrm
Url: http://dri.freedesktop.org/
Version: 2.4.33
@ -67,6 +66,9 @@ Group: Development/Libraries/X11
Requires: libdrm2 = %version
Requires: libdrm_nouveau1 = %version
Requires: libdrm_radeon1 = %version
%ifarch %arm
Requires: libdrm_omap1 = %version
%endif
%ifarch %ix86 x86_64
Requires: libdrm_intel1 = %version
%endif
@ -137,13 +139,21 @@ Group: System/Libraries
%description -n libkms1
The KMS Memory Management abstraction library.
%package -n libdrm_omap1
Summary: Userspace interface to kernel DRM services for omap chips
Group: System/Libraries
%description -n libdrm_omap1
(Upstream has not provided a description)
%prep
%setup -q
%patch -P 1 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --with-pic --enable-nouveau-experimental-api --enable-vmwgfx-experimental-api --enable-udev
%configure --with-pic --enable-nouveau-experimental-api --enable-vmwgfx-experimental-api --enable-udev --enable-omap-experimental-api
make %{?_smp_mflags}
make %{?_smp_mflags} -C tests dristat drmstat
@ -182,6 +192,10 @@ rm -f "%buildroot/%_libdir"/*.la
%postun -n libkms1 -p /sbin/ldconfig
%post -n libdrm_omap1 -p /sbin/ldconfig
%postun -n libdrm_omap1 -p /sbin/ldconfig
%files tools
%defattr(-,root,root)
%_bindir/dristat
@ -193,6 +207,7 @@ rm -f "%buildroot/%_libdir"/*.la
%defattr(-,root,root)
%_includedir/libdrm
%_includedir/nouveau
%_includedir/omap
%_includedir/xf86drm.h
%_includedir/xf86drmMode.h
%_libdir/libdrm*.so
@ -227,4 +242,8 @@ rm -f "%buildroot/%_libdir"/*.la
%_libdir/libkms.so
%_libdir/pkgconfig/libkms.pc
%files -n libdrm_omap1
%defattr(-,root,root)
%_libdir/libdrm_omap.so.1*
%changelog