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
|
|
|
#
|
2018-01-15 15:25:50 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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
|
2018-02-19 11:22:02 +01:00
|
|
|
Version: 2.4.90
|
2012-02-13 11:09:00 +01:00
|
|
|
Release: 0
|
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
|
2017-09-30 12:51:30 +02:00
|
|
|
Group: Development/Libraries/X11
|
2016-10-04 12:49:05 +02:00
|
|
|
Url: http://dri.freedesktop.org/
|
2012-02-13 11:09:00 +01:00
|
|
|
#Git-Clone: git://anongit.freedesktop.org/git/mesa/drm
|
|
|
|
#Git-Web: http://cgit.freedesktop.org/mesa/drm/
|
2014-04-14 11:43:34 +02:00
|
|
|
# Source URL: http://dri.freedesktop.org/libdrm/
|
2015-08-19 10:07:02 +02:00
|
|
|
Source: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2
|
2009-12-16 09:20:45 +01:00
|
|
|
Source2: baselibs.conf
|
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
|
2017-08-02 14:50:37 +02:00
|
|
|
%if 0%{?is_opensuse} || 0%{?suse_version} > 1320
|
2015-05-08 11:57:47 +02:00
|
|
|
BuildRequires: util-macros-devel
|
2017-04-04 11:31:49 +02:00
|
|
|
%endif
|
2012-02-13 11:09:00 +01:00
|
|
|
BuildRequires: pkgconfig(pciaccess) >= 0.10
|
|
|
|
BuildRequires: pkgconfig(pthread-stubs)
|
2017-01-25 12:01:28 +01:00
|
|
|
# Required for building manpages
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
|
|
|
BuildRequires: xsltproc
|
2016-10-04 12:49:05 +02:00
|
|
|
Provides: libdrm23 = %{version}
|
|
|
|
Obsoletes: libdrm23 < %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libdrm-64bit < %{version}
|
|
|
|
Provides: libdrm-64bit = %{version}
|
|
|
|
%endif
|
2016-02-03 19:55:08 +01:00
|
|
|
%if 0%{?with_valgrind_support:1}
|
2016-10-04 12:49:05 +02:00
|
|
|
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le s390x %{arm}
|
2012-04-13 12:34:31 +02:00
|
|
|
BuildRequires: pkgconfig(valgrind)
|
2012-07-02 10:59:11 +02:00
|
|
|
%endif
|
2016-02-03 19:55:08 +01: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
|
2016-10-04 12:49:05 +02:00
|
|
|
Obsoletes: libdrm < %{version}-%{release}
|
|
|
|
Provides: libdrm = %{version}-%{release}
|
2012-02-13 11:09:00 +01:00
|
|
|
|
|
|
|
%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
|
2016-10-04 12:49:05 +02:00
|
|
|
Requires: libdrm2 = %{version}
|
|
|
|
Requires: libdrm_amdgpu1 = %{version}
|
|
|
|
Requires: libdrm_nouveau2 = %{version}
|
|
|
|
Requires: libdrm_radeon1 = %{version}
|
|
|
|
%ifarch %{arm} aarch64
|
|
|
|
Requires: libdrm_freedreno1 = %{version}
|
2015-04-08 18:28:20 +02:00
|
|
|
%endif
|
2016-10-04 12:49:05 +02:00
|
|
|
%ifarch %{arm}
|
|
|
|
Requires: libdrm_omap1 = %{version}
|
|
|
|
Requires: libdrm_tegra0 = %{version}
|
2012-06-29 14:49:09 +02:00
|
|
|
%endif
|
2016-10-04 12:49:05 +02:00
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
Requires: libdrm_intel1 = %{version}
|
2012-02-22 14:41:37 +01:00
|
|
|
%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
|
2014-05-05 10:05:12 +02:00
|
|
|
Linux, BSD and other operating systems that support the ioctl
|
2012-02-13 11:09:00 +01:00
|
|
|
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
|
2014-05-05 10:05:12 +02:00
|
|
|
Linux, BSD and other operating systems that support the ioctl
|
2012-02-13 11:09:00 +01:00
|
|
|
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)
|
|
|
|
|
2015-08-14 16:46:19 +02:00
|
|
|
%package -n libdrm_amdgpu1
|
|
|
|
Summary: Userspace interface for Kernel DRM services for AMD Radeon chips
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libdrm_amdgpu1
|
|
|
|
(Upstream has not provided a description)
|
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%package -n libkms-devel
|
|
|
|
Summary: Development files for the KMS MM abstraction library
|
|
|
|
Group: Development/Libraries/C and C++
|
2016-10-04 12:49:05 +02:00
|
|
|
Requires: libkms1 = %{version}
|
2012-02-13 11:09:00 +01:00
|
|
|
|
|
|
|
%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-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)
|
2014-01-15 12:53:49 +01:00
|
|
|
|
|
|
|
%package -n libdrm_freedreno1
|
|
|
|
Summary: Userspace interface to kernel DRM services for Qualcomm Adreno chips
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libdrm_freedreno1
|
|
|
|
(Upstream has not provided a description)
|
2015-02-23 10:48:19 +01:00
|
|
|
|
|
|
|
%package -n libdrm_tegra0
|
|
|
|
Summary: Userspace interface to kernel DRM services for Nvidia Tegra chips
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libdrm_tegra0
|
|
|
|
(Upstream has not provided a description)
|
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
|
2011-06-20 10:59:35 +02:00
|
|
|
|
2007-01-16 00:21:38 +01:00
|
|
|
%build
|
2016-10-04 12:49:05 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2012-08-27 15:49:35 +02:00
|
|
|
autoreconf -fi
|
2017-09-30 12:51:30 +02:00
|
|
|
%configure \
|
2016-10-04 12:49:05 +02:00
|
|
|
%ifnarch %{ix86} x86_64 ppc ppc64 ppc64le s390x %{arm}
|
2015-07-27 20:06:08 +02:00
|
|
|
--disable-valgrind \
|
2016-02-03 19:55:08 +01:00
|
|
|
%else
|
|
|
|
%if 0%{!?with_valgrind_support:1}
|
|
|
|
--disable-valgrind \
|
|
|
|
%endif
|
2015-07-27 20:06:08 +02:00
|
|
|
%endif
|
2016-10-04 12:49:05 +02:00
|
|
|
%ifarch %{arm}
|
2012-07-05 14:40:01 +02:00
|
|
|
--enable-omap-experimental-api \
|
2014-01-15 12:53:49 +01:00
|
|
|
--enable-freedreno-experimental-api \
|
2015-02-23 10:48:19 +01:00
|
|
|
--enable-tegra-experimental-api \
|
2012-07-05 14:40:01 +02:00
|
|
|
%endif
|
2017-01-25 12:01:28 +01:00
|
|
|
--enable-manpages \
|
2012-07-05 14:40:01 +02:00
|
|
|
--enable-udev
|
2012-08-27 15:49:35 +02:00
|
|
|
|
2016-10-04 12:49:05 +02:00
|
|
|
make %{?_smp_mflags} V=1
|
2017-01-30 10:23:32 +01:00
|
|
|
make %{?_smp_mflags} -C tests
|
2011-10-05 18:20:54 +02:00
|
|
|
|
|
|
|
%check
|
2016-10-04 12:49:05 +02:00
|
|
|
make %{?_smp_mflags} -C tests check-am
|
2007-01-16 00:21:38 +01:00
|
|
|
|
|
|
|
%install
|
2016-10-04 12:49:05 +02:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
|
|
|
make -C tests/modeprint install DESTDIR=%{buildroot}
|
|
|
|
make -C tests/modetest install DESTDIR=%{buildroot}
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/bin
|
|
|
|
install \
|
2011-05-25 12:39:53 +02:00
|
|
|
tests/modeprint/.libs/modeprint \
|
2016-10-04 12:49:05 +02:00
|
|
|
tests/modetest/.libs/modetest %{buildroot}%{_prefix}/bin
|
2007-01-16 00:21:38 +01:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%post -n libdrm2 -p /sbin/ldconfig
|
|
|
|
%postun -n libdrm2 -p /sbin/ldconfig
|
|
|
|
%post -n libdrm_intel1 -p /sbin/ldconfig
|
|
|
|
%postun -n libdrm_intel1 -p /sbin/ldconfig
|
2012-08-27 15:49:35 +02:00
|
|
|
%post -n libdrm_nouveau2 -p /sbin/ldconfig
|
|
|
|
%postun -n libdrm_nouveau2 -p /sbin/ldconfig
|
2012-02-13 11:09:00 +01:00
|
|
|
%post -n libdrm_radeon1 -p /sbin/ldconfig
|
|
|
|
%postun -n libdrm_radeon1 -p /sbin/ldconfig
|
2015-08-14 16:46:19 +02:00
|
|
|
%post -n libdrm_amdgpu1 -p /sbin/ldconfig
|
|
|
|
%postun -n libdrm_amdgpu1 -p /sbin/ldconfig
|
2012-02-13 11:09:00 +01:00
|
|
|
%post -n libkms1 -p /sbin/ldconfig
|
|
|
|
%postun -n libkms1 -p /sbin/ldconfig
|
|
|
|
|
2016-10-04 12:49:05 +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
|
2015-02-23 10:48:19 +01:00
|
|
|
%post -n libdrm_tegra0 -p /sbin/ldconfig
|
|
|
|
%postun -n libdrm_tegra0 -p /sbin/ldconfig
|
2012-07-05 14:40:01 +02:00
|
|
|
%endif
|
2012-06-29 14:49:09 +02:00
|
|
|
|
2016-10-04 12:49:05 +02:00
|
|
|
%ifarch %{arm} aarch64
|
2015-04-08 18:28:20 +02:00
|
|
|
%post -n libdrm_freedreno1 -p /sbin/ldconfig
|
|
|
|
%postun -n libdrm_freedreno1 -p /sbin/ldconfig
|
|
|
|
%endif
|
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_bindir}/modeprint
|
|
|
|
%{_bindir}/modetest
|
2012-02-13 11:09:00 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2017-01-25 12:01:28 +01:00
|
|
|
%dir %{_mandir}/man3
|
|
|
|
%dir %{_mandir}/man7
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man7/*
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_includedir}/libdrm
|
|
|
|
%ifarch %{arm}
|
|
|
|
%{_includedir}/omap
|
2015-04-08 18:28:20 +02:00
|
|
|
%endif
|
2016-10-04 12:49:05 +02:00
|
|
|
%ifarch %{arm} aarch64
|
|
|
|
%{_includedir}/freedreno
|
2012-07-05 14:40:01 +02:00
|
|
|
%endif
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_includedir}/xf86drm.h
|
|
|
|
%{_includedir}/xf86drmMode.h
|
2016-11-15 14:44:07 +01:00
|
|
|
%{_includedir}/libsync.h
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_libdir}/libdrm*.so
|
|
|
|
%{_libdir}/pkgconfig/libdrm*.pc
|
2012-02-13 11:09:00 +01:00
|
|
|
|
|
|
|
%files -n libdrm2
|
|
|
|
%defattr(-,root,root)
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_libdir}/libdrm.so.2*
|
2017-07-21 08:56:55 +02:00
|
|
|
%dir %{_datarootdir}/libdrm
|
2012-03-07 10:47:56 +01:00
|
|
|
|
2016-10-04 12:49:05 +02:00
|
|
|
%ifarch %{ix86} x86_64
|
2012-02-13 11:09:00 +01:00
|
|
|
%files -n libdrm_intel1
|
|
|
|
%defattr(-,root,root)
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_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)
|
2016-10-04 12:49:05 +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)
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_libdir}/libdrm_radeon.so.1*
|
2007-01-16 00:21:38 +01:00
|
|
|
|
2015-08-14 16:46:19 +02:00
|
|
|
%files -n libdrm_amdgpu1
|
|
|
|
%defattr(-,root,root)
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_libdir}/libdrm_amdgpu.so.1*
|
2017-07-21 08:56:55 +02:00
|
|
|
%{_datarootdir}/libdrm/amdgpu.ids
|
2015-08-14 16:46:19 +02:00
|
|
|
|
2012-02-13 11:09:00 +01:00
|
|
|
%files -n libkms1
|
|
|
|
%defattr(-,root,root)
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_libdir}/libkms.so.1*
|
2012-02-13 11:09:00 +01:00
|
|
|
|
|
|
|
%files -n libkms-devel
|
2007-01-16 00:21:38 +01:00
|
|
|
%defattr(-,root,root)
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_includedir}/libkms
|
|
|
|
%{_libdir}/libkms.so
|
|
|
|
%{_libdir}/pkgconfig/libkms.pc
|
2007-01-16 00:21:38 +01:00
|
|
|
|
2016-10-04 12:49:05 +02:00
|
|
|
%ifarch %{arm}
|
2012-06-29 14:49:09 +02:00
|
|
|
%files -n libdrm_omap1
|
|
|
|
%defattr(-,root,root)
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_libdir}/libdrm_omap.so.1*
|
2014-01-15 12:53:49 +01:00
|
|
|
|
2015-02-23 10:48:19 +01:00
|
|
|
%files -n libdrm_tegra0
|
|
|
|
%defattr(-,root,root)
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_libdir}/libdrm_tegra.so.0*
|
2012-07-05 14:40:01 +02:00
|
|
|
%endif
|
2012-06-29 14:49:09 +02:00
|
|
|
|
2016-10-04 12:49:05 +02:00
|
|
|
%ifarch %{arm} aarch64
|
2015-04-08 18:28:20 +02:00
|
|
|
%files -n libdrm_freedreno1
|
|
|
|
%defattr(-,root,root)
|
2016-10-04 12:49:05 +02:00
|
|
|
%{_libdir}/libdrm_freedreno.so.1*
|
2015-04-08 18:28:20 +02:00
|
|
|
%endif
|
|
|
|
|
2007-12-31 22:25:50 +01:00
|
|
|
%changelog
|