Stefan Dirsch
9c28e49fa0
- obsoletes commit-3506173.diff - adjusted enable_test_tools.diff OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libdrm?expand=0&rev=52
127 lines
3.4 KiB
RPMSpec
127 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package libdrm (Version 2.4.21)
|
|
#
|
|
# 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.21
|
|
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.
|
|
|
|
|
|
%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.
|
|
|
|
%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/%{_lib}/libkms.so.1
|
|
/usr/%{_lib}/libkms.so.1.0.0
|
|
/usr/bin/dristat
|
|
/usr/bin/drmstat
|
|
/usr/bin/modeprint
|
|
/usr/bin/modetest
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
/usr/include/libdrm/
|
|
/usr/include/nouveau/
|
|
/usr/include/libkms/
|
|
/usr/include/xf86drm.h
|
|
/usr/include/xf86drmMode.h
|
|
/usr/%{_lib}/libdrm.so
|
|
/usr/%{_lib}/libdrm_intel.so
|
|
/usr/%{_lib}/libdrm_nouveau.so
|
|
/usr/%{_lib}/libdrm_radeon.so
|
|
/usr/%{_lib}/libkms.so
|
|
/usr/%{_lib}/pkgconfig/libdrm.pc
|
|
/usr/%{_lib}/pkgconfig/libdrm_intel.pc
|
|
/usr/%{_lib}/pkgconfig/libdrm_nouveau.pc
|
|
/usr/%{_lib}/pkgconfig/libdrm_radeon.pc
|
|
/usr/%{_lib}/pkgconfig/libkms.pc
|
|
%exclude %{_libdir}/libdrm.la
|
|
%exclude %{_libdir}/libdrm_intel.la
|
|
%exclude %{_libdir}/libdrm_nouveau.la
|
|
%exclude %{_libdir}/libdrm_radeon.la
|
|
%exclude %{_libdir}/libkms.la
|
|
|
|
%changelog
|