diff --git a/README.rst b/README.rst new file mode 100644 index 0000000000000000000000000000000000000000..e47cb241b119d09b642d87b4a5a6d6cac9f50141 --- /dev/null +++ b/README.rst @@ -0,0 +1,61 @@ +libdrm - userspace library for drm +---------------------------------- + +This is libdrm, a userspace library for accessing the DRM, direct rendering +manager, on Linux, BSD and other operating systems that support the ioctl +interface. +The library provides wrapper functions for the ioctls to avoid exposing the +kernel interface directly, and for chipsets with drm memory manager, support +for tracking relocations and buffers. +New functionality in the kernel DRM drivers typically requires a new libdrm, +but a new libdrm will always work with an older kernel. + +libdrm is a low-level library, typically used by graphics drivers such as +the Mesa drivers, the X drivers, libva and similar projects. + + +Compiling +--------- + +libdrm has two build systems, a legacy autotools build system, and a newer +meson build system. The meson build system is much faster, and offers a +slightly different interface, but otherwise provides an equivalent feature set. + +To use it: + + meson builddir/ + +By default this will install into /usr/local, you can change your prefix +with --prefix=/usr (or `meson configure builddir/ -Dprefix=/usr` after +the initial meson setup). + +Then use ninja to build and install: + + ninja -C builddir/ install + +If you are installing into a system location you will need to run install +separately, and as root. + + +Alternatively you can invoke autotools configure: + + ./configure + +By default, libdrm will install into the /usr/local/ prefix. If you +want to install this DRM to replace your system copy, pass +--prefix=/usr and --exec-prefix=/ to configure. If you are building +libdrm from a git checkout, you first need to run the autogen.sh +script. You can pass any options to autogen.sh that you would other +wise pass to configure, or you can just re-run configure with the +options you need once autogen.sh finishes. + +Next step is to build libdrm: + + make + +and once make finishes successfully, install the package using + + make install + +If you are installing into a system location, you will need to be root +to perform the install step. diff --git a/download b/download deleted file mode 100644 index ebd5f9bf2239e8c8976ebfd7836e7b4c65973aad..0000000000000000000000000000000000000000 --- a/download +++ /dev/null @@ -1 +0,0 @@ -1cc371b9201b8e68f6f8c061926f6157 libdrm-2.4.108.tar.xz diff --git a/libdrm-2.4.111.tar.xz b/libdrm-2.4.111.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..787418bacd070bb05b8ca2a276192885e6475c93 Binary files /dev/null and b/libdrm-2.4.111.tar.xz differ diff --git a/libdrm.spec b/libdrm.spec index 70338128567ec917def0cbe0cc7b85e2bdd436c9..435c95d3d2a9d767d5a4f28431175f3c3ede5b94 100644 --- a/libdrm.spec +++ b/libdrm.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %define bcond_meson() %{lua: do local option = rpm.expand("%{1}") local with = rpm.expand("%{?with_" .. option .. "}") @@ -6,7 +7,6 @@ print(string.format("-D%s=%s", option, value)) end} -%bcond_without libkms %ifarch %{ix86} x86_64 %bcond_without intel %else @@ -47,12 +47,13 @@ end} Name: libdrm Summary: Direct Rendering Manager runtime library -Version: 2.4.108 -Release: 1%{?dist} +Version: 2.4.111 +Release: 1%{anolis_release}%{?dist} License: MIT URL: https://dri.freedesktop.org Source0: %{url}/libdrm/%{name}-%{version}.tar.xz +Source1: README.rst Source2: 91-drm-modeset.rules BuildRequires: meson >= 0.43 @@ -89,9 +90,6 @@ Direct Rendering Manager runtime library Summary: Direct Rendering Manager development package Requires: %{name}%{?_isa} = %{version}-%{release} Requires: kernel-headers -%if %{with valgrind} -Requires: valgrind-devel -%endif %description devel Direct Rendering Manager development package. @@ -105,12 +103,19 @@ Requires: %{name}%{?_isa} = %{version}-%{release} Utility programs for the kernel DRM interface. Will void your warranty. %endif +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %autosetup -p1 %build %meson \ - %{bcond_meson libkms} \ %{bcond_meson intel} \ %{bcond_meson radeon} \ %{bcond_meson amdgpu} \ @@ -147,10 +152,6 @@ install -Dpm0644 -t %{buildroot}%{_udevrulesdir} %{S:2} %{_libdir}/libdrm.so.2 %{_libdir}/libdrm.so.2.4.0 %dir %{_datadir}/libdrm -%if %{with libkms} -%{_libdir}/libkms.so.1 -%{_libdir}/libkms.so.1.0.0 -%endif %if %{with intel} %{_libdir}/libdrm_intel.so.1 %{_libdir}/libdrm_intel.so.1.0.0 @@ -201,11 +202,6 @@ install -Dpm0644 -t %{buildroot}%{_udevrulesdir} %{S:2} %{_includedir}/libdrm/*_drm.h %{_libdir}/libdrm.so %{_libdir}/pkgconfig/libdrm.pc -%if %{with libkms} -%{_includedir}/libkms/ -%{_libdir}/libkms.so -%{_libdir}/pkgconfig/libkms.pc -%endif %if %{with intel} %{_includedir}/libdrm/intel_*.h %{_libdir}/libdrm_intel.so @@ -272,43 +268,75 @@ install -Dpm0644 -t %{buildroot}%{_udevrulesdir} %{S:2} %{_bindir}/drmdevice %exclude %{_bindir}/etnaviv_* %exclude %{_bindir}/exynos_* -%{_bindir}/kms-steal-crtc -%{_bindir}/kms-universal-planes -%if %{with libkms} -%{_bindir}/kmstest -%endif %{_bindir}/modeprint %{_bindir}/modetest %{_bindir}/proptest %{_bindir}/vbltest +%if %{with tegra} +%{_bindir}/tegra-* %endif +%endif + +%files doc +%doc README.rst %changelog -* Wed Nov 17 2021 Dave Airlie - 2.4.108-1 +* Fri Nov 25 2022 Bo Ren - 2.4.111-1.0.1 +- Add doc sub package + +* Fri Jun 10 2022 Dave Airlie - 2.4.111-1 +- Update to 2.4.111 + +* Mon Nov 22 2021 Dave Airlie - 2.4.108-1 - Update to 2.4.108 -* Tue May 25 2021 Dave Airlie - 2.4.106-2 -- Fixup requires for devel packages +* Mon Aug 09 2021 Mohan Boddu - 2.4.107-3 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Thu Jul 08 2021 Dave Airlie - 2.4.107-2 +- annobin rebuild + +* Wed Jul 07 2021 Dave Airlie - 2.4.107-1 +- Update to 2.4.107 + +* Fri Apr 16 2021 Mohan Boddu - 2.4.103-3 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 -* Tue May 18 2021 Dave Airlie - 2.4.106-1 -- Update to 2.4.106 +* Tue Jan 26 2021 Fedora Release Engineering - 2.4.103-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Nov 04 2020 Dave Airlie - 2.4.103-1 - Update to 2.4.103 -* Tue May 26 2020 Dave Airlie - 2.4.101-1 +* Tue Jul 28 2020 Fedora Release Engineering - 2.4.102-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed May 27 2020 Dave Airlie - 2.4.102-1 +- Update to 2.4.102 + +* Thu May 14 2020 Dave Airlie - 2.4.101-1 - Update to 2.4.101 -* Thu Nov 14 2019 Dave Airlie - 2.4.100-1 +* Wed Jan 29 2020 Fedora Release Engineering - 2.4.100-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 17 2019 Pete Walter - 2.4.100-1 - Update to 2.4.100 -* Fri Aug 09 2019 Dave Airlie - 2.4.98-2 -- rebuild for annobin +* Thu Jul 25 2019 Fedora Release Engineering - 2.4.99-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild -* Thu May 09 2019 Dave Airlie - 2.4.98-1 +* Thu Jul 04 2019 Dave Airlie - 2.4.99-1 +- Update to 2.4.99 + +* Tue Apr 30 2019 Peter Robinson 2.4.98-1 - Update to 2.4.98 -* Wed May 08 2019 Dave Airlie - 2.4.97-1 +* Fri Feb 01 2019 Fedora Release Engineering - 2.4.97-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 29 2019 Dave Airlie - 2.4.97-1 - Update to 2.4.97 * Mon Nov 19 2018 Adam Jackson - 2.4.96-2