2007-01-16 00:21:38 +01:00
|
|
|
#
|
2010-06-15 12:47:07 +02:00
|
|
|
# spec file for package libdrm (Version 2.4.21)
|
2007-01-16 00:21:38 +01:00
|
|
|
#
|
2010-01-08 17:30:48 +01:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 14:24:47 +02:00
|
|
|
|
2007-01-16 00:21:38 +01:00
|
|
|
Name: libdrm
|
2009-11-02 12:39:22 +01:00
|
|
|
BuildRequires: pkgconfig xorg-x11-proto-devel
|
2007-12-31 22:25:50 +01:00
|
|
|
Url: http://dri.sf.net
|
2009-10-02 23:31:18 +02:00
|
|
|
License: MIT License (or similar)
|
2007-01-16 00:21:38 +01:00
|
|
|
Group: System/Libraries
|
2007-12-31 22:25:50 +01:00
|
|
|
AutoReqProv: on
|
2010-07-19 13:29:11 +02:00
|
|
|
Version: 2.4.21
|
|
|
|
Release: 2
|
|
|
|
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
|
2010-06-24 16:59:51 +02:00
|
|
|
Source: %{name}-%{version}-726210f.tar.bz2
|
2009-12-16 09:20:45 +01:00
|
|
|
Source2: baselibs.conf
|
2009-10-30 17:00:09 +01:00
|
|
|
Patch: enable_test_tools.diff
|
2007-01-16 00:21:38 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2010-03-20 03:43:30 +01:00
|
|
|
|
2007-01-16 00:21:38 +01:00
|
|
|
%package devel
|
2009-10-02 23:31:18 +02:00
|
|
|
License: MIT License (or similar)
|
2007-01-16 00:21:38 +01:00
|
|
|
Summary: Libraries, includes and more to develop libdrm applications
|
2010-07-19 13:29:11 +02:00
|
|
|
Group: Development/Libraries/X11
|
2009-11-02 12:39:22 +01:00
|
|
|
Requires: libdrm = %{version} glibc-devel
|
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
|
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.
|
|
|
|
|
|
|
|
%prep
|
2009-12-08 11:50:40 +01:00
|
|
|
%setup -q
|
2009-10-30 17:00:09 +01:00
|
|
|
%patch
|
2007-01-16 00:21:38 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
2007-12-31 22:25:50 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
2009-12-08 11:50:40 +01:00
|
|
|
%configure --with-pic --enable-nouveau-experimental-api --enable-radeon-experimental-api --enable-udev
|
2009-11-02 12:39:22 +01:00
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2009-12-08 11:50:40 +01:00
|
|
|
%{__make} %{?jobs:-j%jobs} -C tests/modeprint
|
|
|
|
%{__make} %{?jobs:-j%jobs} -C tests/modetest
|
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
|
2007-01-16 00:21:38 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
2007-12-31 22:25:50 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2007-01-16 00:21:38 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/%{_lib}/libdrm.so.2
|
2009-02-26 12:16:33 +01:00
|
|
|
/usr/%{_lib}/libdrm.so.2.4.0
|
2008-09-24 17:09:36 +02:00
|
|
|
/usr/%{_lib}/libdrm_intel.so.1
|
|
|
|
/usr/%{_lib}/libdrm_intel.so.1.0.0
|
2009-05-19 00:47:59 +02:00
|
|
|
/usr/%{_lib}/libdrm_nouveau.so.1
|
|
|
|
/usr/%{_lib}/libdrm_nouveau.so.1.0.0
|
2009-12-08 11:50:40 +01:00
|
|
|
/usr/%{_lib}/libdrm_radeon.so.1
|
|
|
|
/usr/%{_lib}/libdrm_radeon.so.1.0.0
|
2010-03-20 03:43:30 +01:00
|
|
|
/usr/%{_lib}/libkms.so.1
|
|
|
|
/usr/%{_lib}/libkms.so.1.0.0
|
2009-10-30 17:00:09 +01:00
|
|
|
/usr/bin/dristat
|
|
|
|
/usr/bin/drmstat
|
2009-12-08 11:50:40 +01:00
|
|
|
/usr/bin/modeprint
|
|
|
|
/usr/bin/modetest
|
2007-01-16 00:21:38 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2010-04-14 15:17:49 +02:00
|
|
|
/usr/include/libdrm/
|
2009-05-19 00:47:59 +02:00
|
|
|
/usr/include/nouveau/
|
2010-03-20 03:43:30 +01:00
|
|
|
/usr/include/libkms/
|
2007-01-16 00:21:38 +01:00
|
|
|
/usr/include/xf86drm.h
|
2009-02-26 12:16:33 +01:00
|
|
|
/usr/include/xf86drmMode.h
|
2007-01-16 00:21:38 +01:00
|
|
|
/usr/%{_lib}/libdrm.so
|
2008-09-24 17:09:36 +02:00
|
|
|
/usr/%{_lib}/libdrm_intel.so
|
2009-05-19 00:47:59 +02:00
|
|
|
/usr/%{_lib}/libdrm_nouveau.so
|
2009-12-08 11:50:40 +01:00
|
|
|
/usr/%{_lib}/libdrm_radeon.so
|
2010-03-20 03:43:30 +01:00
|
|
|
/usr/%{_lib}/libkms.so
|
2007-01-16 00:21:38 +01:00
|
|
|
/usr/%{_lib}/pkgconfig/libdrm.pc
|
2009-02-26 12:16:33 +01:00
|
|
|
/usr/%{_lib}/pkgconfig/libdrm_intel.pc
|
2009-05-19 00:47:59 +02:00
|
|
|
/usr/%{_lib}/pkgconfig/libdrm_nouveau.pc
|
2009-12-08 11:50:40 +01:00
|
|
|
/usr/%{_lib}/pkgconfig/libdrm_radeon.pc
|
2010-03-20 03:43:30 +01:00
|
|
|
/usr/%{_lib}/pkgconfig/libkms.pc
|
2007-12-31 22:25:50 +01:00
|
|
|
%exclude %{_libdir}/libdrm.la
|
2008-09-24 17:09:36 +02:00
|
|
|
%exclude %{_libdir}/libdrm_intel.la
|
2009-05-19 00:47:59 +02:00
|
|
|
%exclude %{_libdir}/libdrm_nouveau.la
|
2009-12-08 11:50:40 +01:00
|
|
|
%exclude %{_libdir}/libdrm_radeon.la
|
2010-03-20 03:43:30 +01:00
|
|
|
%exclude %{_libdir}/libkms.la
|
2007-01-16 00:21:38 +01:00
|
|
|
|
2007-12-31 22:25:50 +01:00
|
|
|
%changelog
|