libdrm/libdrm.spec

319 lines
8.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libdrm
#
# Copyright (c) 2017 SUSE LINUX 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/
#
Name: libdrm
Version: 2.4.83
Release: 0
Summary: Userspace Interface for Kernel DRM Services
License: MIT
Group: System/Libraries
Url: http://dri.freedesktop.org/
#Git-Clone: git://anongit.freedesktop.org/git/mesa/drm
#Git-Web: http://cgit.freedesktop.org/mesa/drm/
# Source URL: http://dri.freedesktop.org/libdrm/
Source: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2
Source2: baselibs.conf
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1.10
BuildRequires: libtool >= 2.2
BuildRequires: pkgconfig
%if 0%{?is_opensuse} || 0%{?suse_version} > 1320
BuildRequires: util-macros-devel
%endif
BuildRequires: pkgconfig(pciaccess) >= 0.10
BuildRequires: pkgconfig(pthread-stubs)
# Required for building manpages
BuildRequires: docbook-xsl-stylesheets
BuildRequires: xsltproc
Provides: libdrm23 = %{version}
Obsoletes: libdrm23 < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# bug437293
%ifarch ppc64
Obsoletes: libdrm-64bit < %{version}
Provides: libdrm-64bit = %{version}
%endif
%if 0%{?with_valgrind_support:1}
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le s390x %{arm}
BuildRequires: pkgconfig(valgrind)
%endif
%endif
%description
The package contains the userspace interface to the kernel DRM
services.
%package tools
Summary: Diagnostic utilities for DRI and DRM
Group: System/Base
Obsoletes: libdrm < %{version}-%{release}
Provides: libdrm = %{version}-%{release}
%description tools
(Upstream has not provided a description)
%package devel
Summary: Libraries, includes and more to develop libdrm applications
Group: Development/Libraries/X11
Requires: libdrm2 = %{version}
Requires: libdrm_amdgpu1 = %{version}
Requires: libdrm_nouveau2 = %{version}
Requires: libdrm_radeon1 = %{version}
%ifarch %{arm} aarch64
Requires: libdrm_freedreno1 = %{version}
%endif
%ifarch %{arm}
Requires: libdrm_omap1 = %{version}
Requires: libdrm_tegra0 = %{version}
%endif
%ifarch %{ix86} x86_64
Requires: libdrm_intel1 = %{version}
%endif
# bug437293
%ifarch ppc64
Obsoletes: libdrm-devel-64bit < %{version}
Provides: libdrm-devel-64bit = %{version}
%endif
%description devel
libdrm is a library for accessing the Direct Rendering Manager on
Linux, BSD and other operating systems 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 systems 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)
%package -n libdrm_nouveau2
Summary: Userspace interface for Kernel DRM services for NVIDIA chips
Group: System/Libraries
%description -n libdrm_nouveau2
(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 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)
%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.
%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)
%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)
%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)
%prep
%setup -q
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
autoreconf -fi
%configure --with-pic \
%ifnarch %{ix86} x86_64 ppc ppc64 ppc64le s390x %{arm}
--disable-valgrind \
%else
%if 0%{!?with_valgrind_support:1}
--disable-valgrind \
%endif
%endif
%ifarch %{arm}
--enable-omap-experimental-api \
--enable-freedreno-experimental-api \
--enable-tegra-experimental-api \
%endif
--enable-manpages \
--enable-udev
make %{?_smp_mflags} V=1
Accepting request 453201 from home:mimi_vx:branches:X11:XOrg - update to 2.4.75 * amdgpu: Provide more specific error message if non-privileged user runs amdgpu_test * amdgpu: verify the tested device * amdgpu: A new option to choose which device to run most tests * amdgpu: A new option to run tests on render node * Import uapi/i915_drm.h from v4.10-rc5-950-g152d5750dda9 * intel: Allow the client to control implicit synchronisation * intel: Support passing of explicit fencing from execbuf * intel: Clear execobject flags before preserving object in reuse cache * intel: Export a function to re-enable implicit synchronisation * intel: update global_name before HASH_ADD * xf86drm: use maj/min in drmParsePciDeviceInfo() * xf86drm: add plumbing to not retrieve PCI device revision * xf86drm: parse the separate sysfs files for vendor... info * xf86drm: introduce drmGetDevice[s]2 * tests/drmdevice: use drmGetDevice[s]2 * tests: remove useless legacy tests * kms: remove commented out libudev code * configure: remove libudev checks * tests: automake: reorder makefile contents * autogen.sh: set format.subjectPrefix and sendemail.to if needed * android: remove LOCAL_MODULE_TAGS := optional tag * android: introduce Android.common.mk to reduce boilerplate * android: add HAVE_VISIBILITY to Android.common.mk * android: add note about command line defines and config.h * android: silence ~550 warnings * tests/nouveau: automake: fold C and CPP flags * xf86drm: fix sign-compare warning * xf86drm: implement drmGetMinorNameForFD for non-sysfs * xf86drm: implement drmParseSubsystemType for OpenBSD OBS-URL: https://build.opensuse.org/request/show/453201 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libdrm?expand=0&rev=227
2017-01-30 10:23:32 +01:00
make %{?_smp_mflags} -C tests
%check
make %{?_smp_mflags} -C tests check-am
%install
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 \
tests/modeprint/.libs/modeprint \
tests/modetest/.libs/modetest %{buildroot}%{_prefix}/bin
%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
%post -n libdrm_nouveau2 -p /sbin/ldconfig
%postun -n libdrm_nouveau2 -p /sbin/ldconfig
%post -n libdrm_radeon1 -p /sbin/ldconfig
%postun -n libdrm_radeon1 -p /sbin/ldconfig
%post -n libdrm_amdgpu1 -p /sbin/ldconfig
%postun -n libdrm_amdgpu1 -p /sbin/ldconfig
%post -n libkms1 -p /sbin/ldconfig
%postun -n libkms1 -p /sbin/ldconfig
%ifarch %{arm}
%post -n libdrm_omap1 -p /sbin/ldconfig
%postun -n libdrm_omap1 -p /sbin/ldconfig
%post -n libdrm_tegra0 -p /sbin/ldconfig
%postun -n libdrm_tegra0 -p /sbin/ldconfig
%endif
%ifarch %{arm} aarch64
%post -n libdrm_freedreno1 -p /sbin/ldconfig
%postun -n libdrm_freedreno1 -p /sbin/ldconfig
%endif
%files tools
%defattr(-,root,root)
%{_bindir}/modeprint
%{_bindir}/modetest
%files devel
%defattr(-,root,root)
%dir %{_mandir}/man3
%dir %{_mandir}/man7
%{_mandir}/man3/*
%{_mandir}/man7/*
%{_includedir}/libdrm
%ifarch %{arm}
%{_includedir}/omap
%endif
%ifarch %{arm} aarch64
%{_includedir}/freedreno
%endif
%{_includedir}/xf86drm.h
%{_includedir}/xf86drmMode.h
%{_includedir}/libsync.h
%{_libdir}/libdrm*.so
%{_libdir}/pkgconfig/libdrm*.pc
%files -n libdrm2
%defattr(-,root,root)
%{_libdir}/libdrm.so.2*
Accepting request 511676 from home:tobijk:X11:XOrg - Update to version 2.4.82: + intel: PCI Ids for S SKU in CFL + intel: PCI Ids for H SKU in CFL + intel: PCI Ids for U SKU in CFL + intel/gen10: Add missed gen10 stuff + etnaviv: submit full struct drm_etnaviv_gem_submit + amdgpu: sync amdgpu_drm with kernel. + drm: update drm.h to latest in drm-next. + libdrm: add drm syncobj create/destroy/import/export + drm/amdgpu: add syncobj create/destroy/import/export apis + drm/amdgpu: add new low overhead command submission API. (v2) + amdgpu: add new symbols to tests. + Android's major/minor/makedev live in <sys/sysmacros.h> + headers: Update drm_fourcc and vc4_drm.h with new VC4 tiling UAPI. + headers: sync drm_fourcc.h with airlied/drm-next + headers: sync drm_sarea.h with airlied/drm-next + tests/amdgpu: rename uvd messages to decode messages + tests/amdgpu: separate decode messages + tests/amdgpu: move decode sum to common + tests/amdgpu: add vcn tests support and sets + tests/amdgpu: implement vcn dec unit tests + tests/amdgpu: s/uvd_messages.h/decode_messages.h/ in Makefile.am + tests/amdgpu: Fix device_id option + amdgpu: Add .editorconfig file for amdgpu coding style + intel: add GEN10 to IS_9XX. + Android: fix missing trailing \ + intel: Add Cannonlake PCI IDs for U-skus. + intel: Add Cannonlake PCI IDs for Y-skus. + intel/intel_chipset: Move IS_9XX below IS_GEN10. + amdgpu: move asic id table to a separate file OBS-URL: https://build.opensuse.org/request/show/511676 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libdrm?expand=0&rev=239
2017-07-21 08:56:55 +02:00
%dir %{_datarootdir}/libdrm
%ifarch %{ix86} x86_64
%files -n libdrm_intel1
%defattr(-,root,root)
%{_libdir}/libdrm_intel.so.1*
%endif
%files -n libdrm_nouveau2
%defattr(-,root,root)
%{_libdir}/libdrm_nouveau.so.2*
%files -n libdrm_radeon1
%defattr(-,root,root)
%{_libdir}/libdrm_radeon.so.1*
%files -n libdrm_amdgpu1
%defattr(-,root,root)
%{_libdir}/libdrm_amdgpu.so.1*
Accepting request 511676 from home:tobijk:X11:XOrg - Update to version 2.4.82: + intel: PCI Ids for S SKU in CFL + intel: PCI Ids for H SKU in CFL + intel: PCI Ids for U SKU in CFL + intel/gen10: Add missed gen10 stuff + etnaviv: submit full struct drm_etnaviv_gem_submit + amdgpu: sync amdgpu_drm with kernel. + drm: update drm.h to latest in drm-next. + libdrm: add drm syncobj create/destroy/import/export + drm/amdgpu: add syncobj create/destroy/import/export apis + drm/amdgpu: add new low overhead command submission API. (v2) + amdgpu: add new symbols to tests. + Android's major/minor/makedev live in <sys/sysmacros.h> + headers: Update drm_fourcc and vc4_drm.h with new VC4 tiling UAPI. + headers: sync drm_fourcc.h with airlied/drm-next + headers: sync drm_sarea.h with airlied/drm-next + tests/amdgpu: rename uvd messages to decode messages + tests/amdgpu: separate decode messages + tests/amdgpu: move decode sum to common + tests/amdgpu: add vcn tests support and sets + tests/amdgpu: implement vcn dec unit tests + tests/amdgpu: s/uvd_messages.h/decode_messages.h/ in Makefile.am + tests/amdgpu: Fix device_id option + amdgpu: Add .editorconfig file for amdgpu coding style + intel: add GEN10 to IS_9XX. + Android: fix missing trailing \ + intel: Add Cannonlake PCI IDs for U-skus. + intel: Add Cannonlake PCI IDs for Y-skus. + intel/intel_chipset: Move IS_9XX below IS_GEN10. + amdgpu: move asic id table to a separate file OBS-URL: https://build.opensuse.org/request/show/511676 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libdrm?expand=0&rev=239
2017-07-21 08:56:55 +02:00
%{_datarootdir}/libdrm/amdgpu.ids
%files -n libkms1
%defattr(-,root,root)
%{_libdir}/libkms.so.1*
%files -n libkms-devel
%defattr(-,root,root)
%{_includedir}/libkms
%{_libdir}/libkms.so
%{_libdir}/pkgconfig/libkms.pc
%ifarch %{arm}
%files -n libdrm_omap1
%defattr(-,root,root)
%{_libdir}/libdrm_omap.so.1*
%files -n libdrm_tegra0
%defattr(-,root,root)
%{_libdir}/libdrm_tegra.so.0*
%endif
%ifarch %{arm} aarch64
%files -n libdrm_freedreno1
%defattr(-,root,root)
%{_libdir}/libdrm_freedreno.so.1*
%endif
%changelog