# # spec file for package libdrm (Version 2.4.14) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: libdrm BuildRequires: glibc-devel pkgconfig xorg-x11-proto-devel Url: http://dri.sf.net License: MIT License (or similar) Group: System/Libraries AutoReqProv: on Provides: libdrm23 Obsoletes: libdrm23 # bug437293 %ifarch ppc64 Obsoletes: libdrm-64bit %endif # Version: 2.4.14 Release: 2 Summary: Userspace Interface for Kernel DRM Services Source: %{name}-%{version}.tar.bz2 Patch: enable_test_tools.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The package containts the userspace interface to the kernel DRM services. Authors: -------- Daryll Strauss Dave Airlie Eric Anholt Frank C. Earl Gareth Hughes Greg Kroah-Hartman Jeff Hartmann Jens Owen Jon Smirl Jose Fonseca Keith Whitwell Kevin E. Martin Leif Delgass Matthew J Sottek Michel Daenzer Nicolai Haehnle Paul Mackerras Richard Henderson Rickard E. (Rik) Faith Sung-Ching Lin Terry Barnaby Thomas Hellstrom Torsten Duwe %package devel License: MIT License (or similar) Summary: Libraries, includes and more to develop libdrm applications Group: System/Libraries Requires: libdrm = %{version} # bug437293 %ifarch ppc64 Obsoletes: libdrm-devel-64bit %endif # %description devel The package containts the userspace interface to the kernel DRM services. Authors: -------- Daryll Strauss Dave Airlie Eric Anholt Frank C. Earl Gareth Hughes Greg Kroah-Hartman Jeff Hartmann Jens Owen Jon Smirl Jose Fonseca Keith Whitwell Kevin E. Martin Leif Delgass Matthew J Sottek Michel Daenzer Nicolai Haehnle Paul Mackerras Richard Henderson Rickard E. (Rik) Faith Sung-Ching Lin Terry Barnaby Thomas Hellstrom Torsten Duwe %prep %setup -q %patch %build autoreconf -fi export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure --with-pic --enable-nouveau-experimental-api make %install make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) /usr/%{_lib}/libdrm.so.2 /usr/%{_lib}/libdrm.so.2.4.0 /usr/%{_lib}/libdrm_intel.so.1 /usr/%{_lib}/libdrm_intel.so.1.0.0 /usr/%{_lib}/libdrm_nouveau.so.1 /usr/%{_lib}/libdrm_nouveau.so.1.0.0 /usr/bin/dristat /usr/bin/drmstat /usr/bin/modeprint /usr/bin/modetest %files devel %defattr(-,root,root) /usr/include/drm/ /usr/include/nouveau/ /usr/include/xf86drm.h /usr/include/xf86drmMode.h /usr/include/intel_bufmgr.h /usr/%{_lib}/libdrm.so /usr/%{_lib}/libdrm_intel.so /usr/%{_lib}/libdrm_nouveau.so /usr/%{_lib}/pkgconfig/libdrm.pc /usr/%{_lib}/pkgconfig/libdrm_intel.pc /usr/%{_lib}/pkgconfig/libdrm_nouveau.pc %exclude %{_libdir}/libdrm.la %exclude %{_libdir}/libdrm_intel.la %exclude %{_libdir}/libdrm_nouveau.la %changelog