2007-01-16 00:21:38 +01:00
|
|
|
#
|
2011-05-26 10:06:06 +02:00
|
|
|
# spec file for package libdrm
|
2007-01-16 00:21:38 +01:00
|
|
|
#
|
2013-01-16 18:38:35 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:21:38 +01:00
|
|
|
#
|
2008-08-24 11:03:52 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:21:38 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-07 10:47:56 +01:00
|
|
|
|
2007-01-16 00:21:38 +01:00
|
|
|
Name: libdrm
|
2012-02-13 11:09:00 +01:00
|
|
|
Url: http://dri.freedesktop.org/
|
2013-07-03 14:05:00 +02:00
|
|
|
Version: 2.4.46
|
2012-02-13 11:09:00 +01:00
|
|
|
Release: 0
|
2010-07-19 13:29:11 +02:00
|
|
|
Provides: libdrm23 = %{version}
|
|
|
|
Obsoletes: libdrm23 < %{version}
|
2009-01-08 18:33:58 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2010-07-19 13:29:11 +02:00
|
|
|
Obsoletes: libdrm-64bit < %{version}
|
|
|
|
Provides: libdrm-64bit = %{version}
|
2009-01-08 18:33:58 +01:00
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:21:38 +01:00
|
|
|
Summary: Userspace Interface for Kernel DRM Services
|
2012-02-13 11:09:00 +01:00
|
|
|
License: MIT
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
#Git-Clone: git://anongit.freedesktop.org/git/mesa/drm
|
|
|
|
#Git-Web: http://cgit.freedesktop.org/mesa/drm/
|
2012-04-13 12:34:31 +02:00
|
|
|
Source: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2
|
2009-12-16 09:20:45 +01:00
|
|
|
Source2: baselibs.conf
|
2012-04-13 12:34:31 +02:00
|
|
|
# PATCH-FIX-UPSTREAM libdrm-implicit-defs.diff fdo#48599 -- Fix compiler warnings in tests/radeon/radeon_ttm.c
|
2012-02-13 11:09:00 +01:00
|
|
|
Patch1: libdrm-implicit-defs.diff
|
2012-09-23 13:00:16 +02:00
|
|
|
Patch2: u_Fix-compilation-on-systems-that-don-t-provide-O_CLOE.patch
|
2012-08-27 15:49:35 +02:00
|
|
|
|
2007-01-16 00:21:38 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-08-27 15:49:35 +02:00
|
|
|
BuildRequires: autoconf >= 2.63
|
|
|
|
BuildRequires: automake >= 1.10
|
2012-02-13 11:09:00 +01:00
|
|
|
BuildRequires: libtool >= 2.2
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(pciaccess) >= 0.10
|
|
|
|
BuildRequires: pkgconfig(pthread-stubs)
|
2013-09-09 12:22:23 +02:00
|
|
|
%ifarch %ix86 x86_64 ppc ppc64 s390x armv7l armv7hl
|
2012-04-13 12:34:31 +02:00
|
|
|
BuildRequires: pkgconfig(valgrind)
|
2012-07-02 10:59:11 +02:00
|
|
|
%endif
|
2007-01-16 00:21:38 +01:00
|
|
|
|
|
|
|
%description
|
2010-03-18 23:02:42 +01:00
|
|
|
The package contains the userspace interface to the kernel DRM
|
2007-01-16 00:21:38 +01:00
|
|
|
services.
|
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%package tools
|
|
|
|
Summary: Diagnostic utilities for DRI and DRM
|
|
|
|
Group: System/Base
|
|
|
|
# O/P added in 12.2
|
|
|
|
Obsoletes: libdrm < %version-%release
|
|
|
|
Provides: libdrm = %version-%release
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
(Upstream has not provided a description)
|
2010-03-20 03:43:30 +01:00
|
|
|
|
2007-01-16 00:21:38 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Libraries, includes and more to develop libdrm applications
|
2010-07-19 13:29:11 +02:00
|
|
|
Group: Development/Libraries/X11
|
2012-02-22 14:41:37 +01:00
|
|
|
Requires: libdrm2 = %version
|
2012-08-27 15:49:35 +02:00
|
|
|
Requires: libdrm_nouveau2 = %version
|
2012-04-13 12:34:31 +02:00
|
|
|
Requires: libdrm_radeon1 = %version
|
2012-06-29 14:49:09 +02:00
|
|
|
%ifarch %arm
|
|
|
|
Requires: libdrm_omap1 = %version
|
|
|
|
%endif
|
2012-02-27 12:59:41 +01:00
|
|
|
%ifarch %ix86 x86_64
|
2012-02-22 14:41:37 +01:00
|
|
|
Requires: libdrm_intel1 = %version
|
|
|
|
%endif
|
2009-01-08 18:33:58 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
2010-07-19 13:29:11 +02:00
|
|
|
Obsoletes: libdrm-devel-64bit < %{version}
|
|
|
|
Provides: libdrm-devel-64bit = %{version}
|
2009-01-08 18:33:58 +01:00
|
|
|
%endif
|
2007-01-16 00:21:38 +01:00
|
|
|
|
|
|
|
%description devel
|
2012-02-13 11:09:00 +01:00
|
|
|
libdrm is a library for accessing the Direct Rendering Manager on
|
|
|
|
Linux, BSD and other operating systes that support the ioctl
|
|
|
|
interface, and for chipsets with DRM memory manager, support for
|
|
|
|
tracking relocations and buffers. libdrm is a low-level library,
|
|
|
|
typically used by graphics drivers such as the Mesa DRI and X
|
|
|
|
drivers.
|
|
|
|
|
|
|
|
This package contains the development headers for the library found
|
|
|
|
in libdrm2.
|
|
|
|
|
|
|
|
%package -n libdrm2
|
|
|
|
Summary: Userspace Interface for Kernel DRM Services
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libdrm2
|
|
|
|
libdrm is a library for accessing the Direct Rendering Manager on
|
|
|
|
Linux, BSD and other operating systes that support the ioctl
|
|
|
|
interface, and for chipsets with DRM memory manager, support for
|
|
|
|
tracking relocations and buffers. libdrm is a low-level library,
|
|
|
|
typically used by graphics drivers such as the Mesa DRI and X
|
|
|
|
drivers.
|
|
|
|
|
|
|
|
%package -n libdrm_intel1
|
|
|
|
Summary: Userspace interface for Kernel DRM services for Intel chips
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libdrm_intel1
|
|
|
|
(Upstream has not provided a description)
|
|
|
|
|
2012-08-27 15:49:35 +02:00
|
|
|
%package -n libdrm_nouveau2
|
2012-02-13 11:09:00 +01:00
|
|
|
Summary: Userspace interface for Kernel DRM services for NVIDIA chips
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2012-08-27 15:49:35 +02:00
|
|
|
%description -n libdrm_nouveau2
|
2012-02-13 11:09:00 +01:00
|
|
|
(Upstream has not provided a description)
|
|
|
|
|
|
|
|
%package -n libdrm_radeon1
|
|
|
|
Summary: Userspace interface for Kernel DRM services for AMD Radeon chips
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libdrm_radeon1
|
|
|
|
(Upstream has not provided a description)
|
|
|
|
|
|
|
|
%package -n libkms-devel
|
|
|
|
Summary: Development files for the KMS MM abstraction library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libkms1 = %version
|
|
|
|
|
|
|
|
%description -n libkms-devel
|
|
|
|
This package contains the development headers for the library found
|
|
|
|
in libkms1.
|
|
|
|
|
|
|
|
%package -n libkms1
|
|
|
|
Summary: Userspace interface to kernel DRM buffer management
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libkms1
|
|
|
|
The KMS Memory Management abstraction library.
|
2007-01-16 00:21:38 +01:00
|
|
|
|
2012-07-05 14:40:01 +02:00
|
|
|
%ifarch %arm
|
2012-06-29 14:49:09 +02:00
|
|
|
%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)
|
2012-07-05 14:40:01 +02:00
|
|
|
%endif
|
2012-06-29 14:49:09 +02:00
|
|
|
|
2007-01-16 00:21:38 +01:00
|
|
|
%prep
|
2012-02-13 11:09:00 +01:00
|
|
|
%setup -q
|
2012-08-27 15:49:35 +02:00
|
|
|
%patch1 -p1
|
2012-09-23 13:00:16 +02:00
|
|
|
%patch2 -p1
|
2011-06-20 10:59:35 +02:00
|
|
|
|
2007-01-16 00:21:38 +01:00
|
|
|
%build
|
2012-05-29 11:51:44 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
2012-08-27 15:49:35 +02:00
|
|
|
autoreconf -fi
|
2012-12-07 11:41:01 +01:00
|
|
|
%configure --with-pic \
|
2012-07-05 14:40:01 +02:00
|
|
|
%ifarch %arm
|
|
|
|
--enable-omap-experimental-api \
|
|
|
|
%endif
|
|
|
|
--enable-udev
|
2012-08-27 15:49:35 +02:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags} -C tests dristat drmstat
|
2011-10-05 18:20:54 +02:00
|
|
|
|
|
|
|
%check
|
2012-02-13 11:09:00 +01:00
|
|
|
make %{?_smp_mflags} -C tests check-am
|
2007-01-16 00:21:38 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2009-12-08 11:50:40 +01:00
|
|
|
make -C tests/modeprint install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
make -C tests/modetest install DESTDIR=$RPM_BUILD_ROOT
|
2012-02-13 11:09:00 +01:00
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2011-05-25 03:02:35 +02:00
|
|
|
%{__mkdir} -p $RPM_BUILD_ROOT/usr/bin
|
|
|
|
%{__install} \
|
2011-05-25 12:39:53 +02:00
|
|
|
tests/.libs/dristat \
|
|
|
|
tests/.libs/drmstat \
|
|
|
|
tests/modeprint/.libs/modeprint \
|
|
|
|
tests/modetest/.libs/modetest $RPM_BUILD_ROOT/usr/bin
|
2007-01-16 00:21:38 +01:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%post -n libdrm2 -p /sbin/ldconfig
|
2012-02-16 16:19:36 +01:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%postun -n libdrm2 -p /sbin/ldconfig
|
2012-02-16 16:19:36 +01:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%post -n libdrm_intel1 -p /sbin/ldconfig
|
2012-02-16 16:19:36 +01:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%postun -n libdrm_intel1 -p /sbin/ldconfig
|
2012-02-16 16:19:36 +01:00
|
|
|
|
2012-08-27 15:49:35 +02:00
|
|
|
%post -n libdrm_nouveau2 -p /sbin/ldconfig
|
2012-02-16 16:19:36 +01:00
|
|
|
|
2012-08-27 15:49:35 +02:00
|
|
|
%postun -n libdrm_nouveau2 -p /sbin/ldconfig
|
2012-02-16 16:19:36 +01:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%post -n libdrm_radeon1 -p /sbin/ldconfig
|
2012-02-16 16:19:36 +01:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%postun -n libdrm_radeon1 -p /sbin/ldconfig
|
2012-02-16 16:19:36 +01:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%post -n libkms1 -p /sbin/ldconfig
|
2012-02-16 16:19:36 +01:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%postun -n libkms1 -p /sbin/ldconfig
|
|
|
|
|
2012-07-05 14:40:01 +02:00
|
|
|
%ifarch %arm
|
2012-06-29 14:49:09 +02:00
|
|
|
%post -n libdrm_omap1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libdrm_omap1 -p /sbin/ldconfig
|
2012-07-05 14:40:01 +02:00
|
|
|
%endif
|
2012-06-29 14:49:09 +02:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/dristat
|
|
|
|
%_bindir/drmstat
|
|
|
|
%_bindir/modeprint
|
|
|
|
%_bindir/modetest
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/libdrm
|
2012-07-05 14:40:01 +02:00
|
|
|
%ifarch %arm
|
2012-06-29 14:49:09 +02:00
|
|
|
%_includedir/omap
|
2012-07-05 14:40:01 +02:00
|
|
|
%endif
|
2012-02-13 11:09:00 +01:00
|
|
|
%_includedir/xf86drm.h
|
|
|
|
%_includedir/xf86drmMode.h
|
|
|
|
%_libdir/libdrm*.so
|
|
|
|
%_libdir/pkgconfig/libdrm*.pc
|
2013-01-16 18:38:35 +01:00
|
|
|
#%_mandir/man3/drm*
|
2012-02-13 11:09:00 +01:00
|
|
|
|
|
|
|
%files -n libdrm2
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libdrm.so.2*
|
2007-01-16 00:21:38 +01:00
|
|
|
|
2012-02-27 12:59:41 +01:00
|
|
|
%ifarch %ix86 x86_64
|
2012-03-07 10:47:56 +01:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%files -n libdrm_intel1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libdrm_intel.so.1*
|
2012-02-22 14:41:37 +01:00
|
|
|
%endif
|
2007-01-16 00:21:38 +01:00
|
|
|
|
2012-08-27 15:49:35 +02:00
|
|
|
%files -n libdrm_nouveau2
|
2012-02-13 11:09:00 +01:00
|
|
|
%defattr(-,root,root)
|
2012-08-27 15:49:35 +02:00
|
|
|
%_libdir/libdrm_nouveau.so.2*
|
2007-12-31 22:25:50 +01:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%files -n libdrm_radeon1
|
2007-01-16 00:21:38 +01:00
|
|
|
%defattr(-,root,root)
|
2012-02-13 11:09:00 +01:00
|
|
|
%_libdir/libdrm_radeon.so.1*
|
2007-01-16 00:21:38 +01:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%files -n libkms1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libkms.so.1*
|
|
|
|
|
|
|
|
%files -n libkms-devel
|
2007-01-16 00:21:38 +01:00
|
|
|
%defattr(-,root,root)
|
2012-05-29 11:51:44 +02:00
|
|
|
%_includedir/libkms
|
2012-02-13 11:09:00 +01:00
|
|
|
%_libdir/libkms.so
|
|
|
|
%_libdir/pkgconfig/libkms.pc
|
2007-01-16 00:21:38 +01:00
|
|
|
|
2012-07-05 14:40:01 +02:00
|
|
|
%ifarch %arm
|
2012-06-29 14:49:09 +02:00
|
|
|
%files -n libdrm_omap1
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libdrm_omap.so.1*
|
2012-07-05 14:40:01 +02:00
|
|
|
%endif
|
2012-06-29 14:49:09 +02:00
|
|
|
|
2007-12-31 22:25:50 +01:00
|
|
|
%changelog
|