libdrm/libdrm.spec
Stefan Dirsch 97b9a3103a Accepting request 34199 from home:jirislaby:branches:X11:XOrg
Copy from home:jirislaby:branches:X11:XOrg/libdrm via accept of submit request 34199 revision 4.
Request was accepted with message:
reviewed ok.

OBS-URL: https://build.opensuse.org/request/show/34199
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libdrm?expand=0&rev=42
2010-03-06 14:03:43 +00:00

177 lines
5.1 KiB
RPMSpec

#
# spec file for package libdrm (Version 2.4.18)
#
# Copyright (c) 2010 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: 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.18
Release: 1
Summary: Userspace Interface for Kernel DRM Services
Source: %{name}-%{version}.tar.bz2
Source2: baselibs.conf
Patch: enable_test_tools.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The package contains the userspace interface to the kernel DRM
services.
Authors:
--------
Daryll Strauss <daryll@valinux.com>
Dave Airlie <airlied@linux.ie>
Eric Anholt <anholt@FreeBSD.org>
Frank C. Earl <fearl@airmail.net>
Gareth Hughes <gareth@valinux.com>
Greg Kroah-Hartman <greg@kroah.com>
Jeff Hartmann <jhartmann@valinux.com>
Jens Owen <jens@tungstengraphics.com>
Jon Smirl <jonsmirl@gmail.com>
Jose Fonseca <jrfonseca@tungstengraphics.com>
Keith Whitwell <keith@tungstengraphics.com>
Kevin E. Martin <martin@valinux.com>
Leif Delgass <ldelgass@retinalburn.net>
Matthew J Sottek <matthew.j.sottek@intel.com>
Michel Daenzer <michel@daenzer.net>
Nicolai Haehnle <prefect_@gmx.net>
Paul Mackerras <paulus@samba.org>
Richard Henderson <rth@twiddle.net>
Rickard E. (Rik) Faith <faith@valinux.com>
Sung-Ching Lin <sclin@sis.com.tw>
Terry Barnaby <terry1@beam.ltd.uk>
Thomas Hellstrom <unichrome@shipmail.org>
Torsten Duwe <duwe@caldera.de>
%package devel
License: MIT License (or similar)
Summary: Libraries, includes and more to develop libdrm applications
Group: System/Libraries
Requires: libdrm = %{version} glibc-devel
# bug437293
%ifarch ppc64
Obsoletes: libdrm-devel-64bit
%endif
#
%description devel
The package contains the userspace interface to the kernel DRM
services.
Authors:
--------
Daryll Strauss <daryll@valinux.com>
Dave Airlie <airlied@linux.ie>
Eric Anholt <anholt@FreeBSD.org>
Frank C. Earl <fearl@airmail.net>
Gareth Hughes <gareth@valinux.com>
Greg Kroah-Hartman <greg@kroah.com>
Jeff Hartmann <jhartmann@valinux.com>
Jens Owen <jens@tungstengraphics.com>
Jon Smirl <jonsmirl@gmail.com>
Jose Fonseca <jrfonseca@tungstengraphics.com>
Keith Whitwell <keith@tungstengraphics.com>
Kevin E. Martin <martin@valinux.com>
Leif Delgass <ldelgass@retinalburn.net>
Matthew J Sottek <matthew.j.sottek@intel.com>
Michel Daenzer <michel@daenzer.net>
Nicolai Haehnle <prefect_@gmx.net>
Paul Mackerras <paulus@samba.org>
Richard Henderson <rth@twiddle.net>
Rickard E. (Rik) Faith <faith@valinux.com>
Sung-Ching Lin <sclin@sis.com.tw>
Terry Barnaby <terry1@beam.ltd.uk>
Thomas Hellstrom <unichrome@shipmail.org>
Torsten Duwe <duwe@caldera.de>
%prep
%setup -q
%patch
%build
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --with-pic --enable-nouveau-experimental-api --enable-radeon-experimental-api --enable-udev
%{__make} %{?jobs:-j%jobs}
%{__make} %{?jobs:-j%jobs} -C tests/modeprint
%{__make} %{?jobs:-j%jobs} -C tests/modetest
%install
make install DESTDIR=$RPM_BUILD_ROOT
make -C tests/modeprint install DESTDIR=$RPM_BUILD_ROOT
make -C tests/modetest 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/%{_lib}/libdrm_radeon.so.1
/usr/%{_lib}/libdrm_radeon.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}/libdrm_radeon.so
/usr/%{_lib}/pkgconfig/libdrm.pc
/usr/%{_lib}/pkgconfig/libdrm_intel.pc
/usr/%{_lib}/pkgconfig/libdrm_nouveau.pc
/usr/%{_lib}/pkgconfig/libdrm_radeon.pc
%exclude %{_libdir}/libdrm.la
%exclude %{_libdir}/libdrm_intel.la
%exclude %{_libdir}/libdrm_nouveau.la
%exclude %{_libdir}/libdrm_radeon.la
%changelog