libdrm/libdrm.spec
OBS User autobuild c847e6d6f3 Accepting request 23530 from X11:XOrg
Copy from X11:XOrg/libdrm based on submit request 23530 from user sndirsch

OBS-URL: https://build.opensuse.org/request/show/23530
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdrm?expand=0&rev=19
2009-11-02 11:39:22 +00:00

167 lines
4.7 KiB
RPMSpec

#
# 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: 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: 3
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 <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 containts 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
%{__make} %{?jobs:-j%jobs}
%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