Blame SPECS/libdrm.spec

58d73f
#define gitdate 20130117
58d73f
58d73f
Summary: Direct Rendering Manager runtime library
58d73f
Name: libdrm
48eafa
Version: 2.4.67
f15118
Release: 3%{?dist}
58d73f
License: MIT
58d73f
Group: System Environment/Libraries
58d73f
URL: http://dri.sourceforge.net
58d73f
%if 0%{?gitdate}
58d73f
Source0: %{name}-%{gitdate}.tar.bz2
58d73f
%else
58d73f
Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2
58d73f
%endif
58d73f
Source1: make-git-snapshot.sh
58d73f
58d73f
Requires: udev
58d73f
58d73f
BuildRequires: pkgconfig automake autoconf libtool
58d73f
BuildRequires: kernel-headers
58d73f
BuildRequires: libxcb-devel
58d73f
%if 0%{?fedora} > 17 || 0%{?rhel} > 6
58d73f
BuildRequires: systemd-devel
58d73f
%else
58d73f
BuildRequires: libudev-devel
58d73f
%endif
58d73f
BuildRequires: libatomic_ops-devel
58d73f
BuildRequires: libpciaccess-devel
58d73f
BuildRequires: libxslt docbook-style-xsl
f15118
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le s390x armv7hl aarch64
f15118
BuildRequires: valgrind-devel
f15118
%endif
48eafa
BuildRequires: xorg-x11-util-macros
58d73f
58d73f
Source2: 91-drm-modeset.rules
58d73f
58d73f
# hardcode the 666 instead of 660 for device nodes
58d73f
Patch3: libdrm-make-dri-perms-okay.patch
58d73f
# remove backwards compat not needed on Fedora
58d73f
Patch4: libdrm-2.4.0-no-bc.patch
58d73f
# make rule to print the list of test programs
58d73f
Patch5: libdrm-2.4.25-check-programs.patch
f15118
48eafa
# Missing PCI IDs.
48eafa
Patch10: 0001-intel-Adding-missing-Broxton-PCI-IDs.patch
48eafa
Patch11: 0001-intel-skl-Add-missing-SKL-PCI-IDs.patch
48eafa
48eafa
# Kbl PCI IDs.
48eafa
Patch12: 0001-intel-Add-more-Kabylake-PCI-IDs.patch
48eafa
Patch13: 0002-intel-Removing-PCI-IDs-that-are-no-longer-listed-as-.patch
58d73f
58d73f
%description
58d73f
Direct Rendering Manager runtime library
58d73f
58d73f
%package devel
58d73f
Summary: Direct Rendering Manager development package
58d73f
Group: Development/Libraries
58d73f
Requires: %{name} = %{version}-%{release}
58d73f
Requires: kernel-headers >= 2.6.27-0.144.rc0.git2.fc10
58d73f
Requires: pkgconfig
58d73f
58d73f
%description devel
58d73f
Direct Rendering Manager development package
58d73f
58d73f
%package -n drm-utils
58d73f
Summary: Direct Rendering Manager utilities
58d73f
Group: Development/Tools
f15118
Requires: libdrm = %{version}-%{release}
58d73f
58d73f
%description -n drm-utils
58d73f
Utility programs for the kernel DRM interface.  Will void your warranty.
58d73f
58d73f
%prep
58d73f
%setup -q %{?gitdate:-n %{name}-%{gitdate}}
58d73f
%patch3 -p1 -b .forceperms
58d73f
%patch4 -p1 -b .no-bc
58d73f
%patch5 -p1 -b .check
48eafa
%patch10 -p1 -b .bxtid
48eafa
%patch11 -p1 -b .sklid
48eafa
%patch12 -p1 -b .kblid1
48eafa
%patch13 -p1 -b .kblid2
58d73f
58d73f
%build
58d73f
autoreconf -v --install || exit 1
58d73f
%configure \
58d73f
%ifarch %{arm}
58d73f
	--enable-exynos-experimental-api \
58d73f
	--enable-omap-experimental-api \
f15118
	--enable-tegra-experimental-api \
58d73f
%endif
f15118
	--enable-install-test-programs \
58d73f
	--enable-udev
58d73f
make %{?_smp_mflags}
58d73f
pushd tests
58d73f
make %{?smp_mflags} `make check-programs`
58d73f
popd
58d73f
58d73f
%install
58d73f
make install DESTDIR=$RPM_BUILD_ROOT
58d73f
pushd tests
58d73f
mkdir -p $RPM_BUILD_ROOT%{_bindir}
58d73f
for foo in $(make check-programs) ; do
48eafa
libtool --mode=install install -m 0755 $foo %{buildroot}%{_bindir}
58d73f
done
58d73f
popd
58d73f
# SUBDIRS=libdrm
58d73f
mkdir -p $RPM_BUILD_ROOT/usr/lib/udev/rules.d/
58d73f
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/udev/rules.d/
58d73f
58d73f
# NOTE: We intentionally don't ship *.la files
58d73f
find $RPM_BUILD_ROOT -type f -name '*.la' | xargs rm -f -- || :
58d73f
for i in r300_reg.h via_3d_reg.h
58d73f
do
58d73f
rm -f $RPM_BUILD_ROOT/usr/include/libdrm/$i
58d73f
done
58d73f
58d73f
%post -p /sbin/ldconfig
58d73f
%postun -p /sbin/ldconfig
58d73f
58d73f
%files
58d73f
%defattr(-,root,root,-)
58d73f
%doc README
58d73f
%{_libdir}/libdrm.so.2
58d73f
%{_libdir}/libdrm.so.2.4.0
58d73f
%ifarch %{ix86} x86_64 ia64
58d73f
%{_libdir}/libdrm_intel.so.1
58d73f
%{_libdir}/libdrm_intel.so.1.0.0
58d73f
%endif
58d73f
%ifarch %{arm}
58d73f
%{_libdir}/libdrm_exynos.so.1
58d73f
%{_libdir}/libdrm_exynos.so.1.0.0
58d73f
%{_libdir}/libdrm_omap.so.1
58d73f
%{_libdir}/libdrm_omap.so.1.0.0
f15118
%{_libdir}/libdrm_tegra.so.0
f15118
%{_libdir}/libdrm_tegra.so.0.0.0
f15118
%endif
f15118
%ifarch %{arm} aarch64
f15118
%{_libdir}/libdrm_freedreno.so.1
f15118
%{_libdir}/libdrm_freedreno.so.1.0.0
58d73f
%endif
48eafa
%{_libdir}/libdrm_amdgpu.so.1
48eafa
%{_libdir}/libdrm_amdgpu.so.1.0.0
58d73f
%{_libdir}/libdrm_radeon.so.1
58d73f
%{_libdir}/libdrm_radeon.so.1.0.1
58d73f
%{_libdir}/libdrm_nouveau.so.2
58d73f
%{_libdir}/libdrm_nouveau.so.2.0.0
58d73f
%{_libdir}/libkms.so.1
58d73f
%{_libdir}/libkms.so.1.0.0
58d73f
/usr/lib/udev/rules.d/91-drm-modeset.rules
58d73f
58d73f
%files -n drm-utils
58d73f
%defattr(-,root,root,-)
58d73f
%{_bindir}/dristat
58d73f
%{_bindir}/drmstat
48eafa
%{_bindir}/drmdevice
58d73f
%{_bindir}/getclient
58d73f
%{_bindir}/getstats
58d73f
%{_bindir}/getversion
58d73f
%{_bindir}/name_from_fd
58d73f
%{_bindir}/openclose
58d73f
%{_bindir}/setversion
58d73f
%{_bindir}/updatedraw
f15118
%{_bindir}/modetest
f15118
%{_bindir}/modeprint
f15118
%{_bindir}/vbltest
f15118
%{_bindir}/kmstest
48eafa
%{_bindir}/kms-steal-crtc
48eafa
%{_bindir}/kms-universal-planes
f15118
%exclude %{_bindir}/exynos*
48eafa
%exclude %{_bindir}/drmsl
48eafa
%exclude %{_bindir}/hash
48eafa
%exclude %{_bindir}/proptest
48eafa
%exclude %{_bindir}/random
58d73f
58d73f
%files devel
58d73f
%defattr(-,root,root,-)
58d73f
# FIXME should be in drm/ too
58d73f
%{_includedir}/xf86drm.h
58d73f
%{_includedir}/xf86drmMode.h
58d73f
%dir %{_includedir}/libdrm
58d73f
%{_includedir}/libdrm/drm.h
58d73f
%{_includedir}/libdrm/drm_fourcc.h
58d73f
%{_includedir}/libdrm/drm_mode.h
58d73f
%{_includedir}/libdrm/drm_sarea.h
58d73f
%ifarch %{ix86} x86_64 ia64
58d73f
%{_includedir}/libdrm/intel_aub.h
58d73f
%{_includedir}/libdrm/intel_bufmgr.h
58d73f
%{_includedir}/libdrm/intel_debug.h
58d73f
%endif
58d73f
%ifarch %{arm}
58d73f
%{_includedir}/libdrm/exynos_drmif.h
58d73f
%{_includedir}/libdrm/omap_drmif.h
f15118
%{_includedir}/libdrm/tegra.h
58d73f
%{_includedir}/exynos/
58d73f
%{_includedir}/omap/
58d73f
%endif
f15118
%ifarch %{arm} aarch64
f15118
%{_includedir}/freedreno/
48eafa
%{_includedir}/libdrm/vc4_packet.h
48eafa
%{_includedir}/libdrm/vc4_qpu_defines.h
f15118
%endif
48eafa
%{_includedir}/libdrm/amdgpu.h
58d73f
%{_includedir}/libdrm/radeon_bo.h
58d73f
%{_includedir}/libdrm/radeon_bo_gem.h
58d73f
%{_includedir}/libdrm/radeon_bo_int.h
58d73f
%{_includedir}/libdrm/radeon_cs.h
58d73f
%{_includedir}/libdrm/radeon_cs_gem.h
58d73f
%{_includedir}/libdrm/radeon_cs_int.h
58d73f
%{_includedir}/libdrm/radeon_surface.h
58d73f
%{_includedir}/libdrm/r600_pci_ids.h
58d73f
%{_includedir}/libdrm/*_drm.h
48eafa
%{_includedir}/libdrm/nouveau/*.h
48eafa
%{_includedir}/libdrm/nouveau/nvif/*.h
58d73f
%{_includedir}/libkms
58d73f
%{_libdir}/libdrm.so
58d73f
%ifarch %{ix86} x86_64 ia64
58d73f
%{_libdir}/libdrm_intel.so
58d73f
%endif
58d73f
%ifarch %{arm}
58d73f
%{_libdir}/libdrm_exynos.so
58d73f
%{_libdir}/libdrm_omap.so
f15118
%{_libdir}/libdrm_tegra.so
f15118
%endif
f15118
%ifarch %{arm} aarch64
58d73f
%{_libdir}/libdrm_freedreno.so
58d73f
%endif
58d73f
%{_libdir}/libdrm_radeon.so
48eafa
%{_libdir}/libdrm_amdgpu.so
58d73f
%{_libdir}/libdrm_nouveau.so
58d73f
%{_libdir}/libkms.so
58d73f
%{_libdir}/pkgconfig/libdrm.pc
58d73f
%ifarch %{ix86} x86_64 ia64
58d73f
%{_libdir}/pkgconfig/libdrm_intel.pc
58d73f
%endif
58d73f
%ifarch %{arm}
58d73f
%{_libdir}/pkgconfig/libdrm_exynos.pc
58d73f
%{_libdir}/pkgconfig/libdrm_omap.pc
f15118
%{_libdir}/pkgconfig/libdrm_tegra.pc
f15118
%endif
f15118
%ifarch %{arm} aarch64
f15118
%{_libdir}/pkgconfig/libdrm_freedreno.pc
48eafa
%{_libdir}/pkgconfig/libdrm_vc4.pc
58d73f
%endif
58d73f
%{_libdir}/pkgconfig/libdrm_radeon.pc
48eafa
%{_libdir}/pkgconfig/libdrm_amdgpu.pc
58d73f
%{_libdir}/pkgconfig/libdrm_nouveau.pc
58d73f
%{_libdir}/pkgconfig/libkms.pc
58d73f
%{_mandir}/man3/drm*.3*
58d73f
%{_mandir}/man7/drm*.7*
58d73f
58d73f
%changelog
48eafa
* Tue Aug 09 2016 Rob Clark <rclark@redhat.com> - 2.4.67-3
48eafa
- kbl pci ids.
48eafa
48eafa
* Tue Jun 14 2016 Dave Airlie <airlied@redhat.com> - 2.4.67-2
48eafa
- add missing intel pci ids.
48eafa
48eafa
* Fri Feb 19 2016 Dave Airlie <airlied@redhat.com> 2.4.67-1
48eafa
- libdrm 2.4.67
48eafa
f15118
* Fri May 22 2015 Dave Airlie <airlied@redhat.com> 2.4.60-3
f15118
- backport nouveau fix from 2.4.61
f15118
f15118
* Mon May 04 2015 Benjamin Tissoires <benjamin.tissoires@redhat.com> 2.4.60-2
f15118
- RHEL7 rpmdiff fixes
f15118
f15118
* Mon Mar 23 2015 Dave Airlie <airlied@redhat.com> 2.4.60-1
f15118
- libdrm 2.4.60
f15118
f15118
* Fri Jan 23 2015 Rob Clark <rclark@redhat.com> 2.4.59-4
f15118
- No we don't actually want to install the exynos tests
f15118
f15118
* Fri Jan 23 2015 Rob Clark <rclark@redhat.com> 2.4.59-3
f15118
- Add test apps to drm-utils package
f15118
f15118
* Thu Jan 22 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2.4.59-2
f15118
- Enable tegra
f15118
f15118
* Thu Jan 22 2015 Dave Airlie <airlied@redhat.com> 2.4.59-1
f15118
- libdrm 2.4.59
b60d21
f15118
* Wed Nov 19 2014 Dan Horák <dan[at]danny.cz> 2.4.58-3
f15118
- valgrind available only on selected arches
f15118
f15118
* Tue Nov 18 2014 Adam Jackson <ajax@redhat.com> 2.4.58-2
f15118
- BR: valgrind-devel so we get ioctl annotations
f15118
f15118
* Thu Oct 02 2014 Adam Jackson <ajax@redhat.com> 2.4.58-1
f15118
- libdrm 2.4.58
f15118
f15118
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.56-2
f15118
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f15118
f15118
* Mon Aug 04 2014 Dave Airlie <airlied@redhat.com> 2.4.56-1
b60d21
- libdrm 2.4.56
b60d21
f15118
* Mon Jul  7 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.4.54-3
f15118
- Build freedreno support on aarch64 too
f15118
f15118
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.54-2
f15118
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f15118
f15118
* Sat May 03 2014 Dennis Gilmore <dennis@ausil.us> 2.4.54-1
f15118
- libdrm 2.4.54
f15118
f15118
* Sun Apr 13 2014 Dave Airlie <airlied@redhat.com> 2.4.53-1
f15118
- libdrm 2.4.53
f15118
f15118
* Sat Feb 08 2014 Adel Gadllah <adel.gadllah@gmail.com> 2.4.52-1
f15118
- libdrm 2.4.52
58d73f
904da0
* Thu Dec 05 2013 Dave Airlie <airlied@redhat.com> 2.4.50-1
904da0
- libdrm 2.4.50
904da0
904da0
* Mon Dec 02 2013 Dave Airlie <airlied@redhat.com> 2.4.49-2
904da0
- backport two fixes from master
904da0
904da0
* Sun Nov 24 2013 Dave Airlie <airlied@redhat.com> 2.4.49-1
904da0
- libdrm 2.4.49
904da0
904da0
* Fri Nov 08 2013 Dave Airlie <airlied@redhat.com> 2.4.47-1
58d73f
- libdrm 2.4.47
58d73f
904da0
- add fix for nouveau with gcc 4.8
904da0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.46-2
904da0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
58d73f
58d73f
* Wed Jul 03 2013 Dave Airlie <airlied@redhat.com> 2.4.46-1
58d73f
- libdrm 2.4.46
58d73f
58d73f
* Tue Jun 18 2013 Adam Jackson <ajax@redhat.com> 2.4.45-2
58d73f
- Sync some Haswell updates from git
58d73f
58d73f
* Thu May 16 2013 Dave Airlie <airlied@redhat.com> 2.4.45-1
58d73f
- libdrm 2.4.45
58d73f
58d73f
* Sun Apr 21 2013 Peter Robinson <pbrobinson@fedoraproject.org> 2.4.44-2
58d73f
- enable freedreno support on ARM
58d73f
58d73f
* Fri Apr 19 2013 Jerome Glisse <jglisse@redhat.com> 2.4.44-1
58d73f
- libdrm 2.4.44
58d73f
58d73f
* Fri Apr 12 2013 Adam Jackson <ajax@redhat.com> 2.4.43-1
58d73f
- libdrm 2.4.43
58d73f
58d73f
* Tue Mar 12 2013 Dave Airlie <airlied@redhat.com> 2.4.42-2
58d73f
- add qxl header file
58d73f
58d73f
* Tue Feb 05 2013 Adam Jackson <ajax@redhat.com> 2.4.42-1
58d73f
- libdrm 2.4.42
58d73f
58d73f
* Tue Jan 22 2013 Adam Jackson <ajax@redhat.com> 2.4.41-2
58d73f
- Fix directory ownership in -devel (#894468)
58d73f
58d73f
* Thu Jan 17 2013 Adam Jackson <ajax@redhat.com> 2.4.41-1
58d73f
- libdrm 2.4.41 plus git.  Done as a git snapshot instead of the released
58d73f
  2.4.41 since the release tarball is missing man/ entirely. 
58d73f
- Pre-F16 changelog trim
58d73f
58d73f
* Wed Jan 09 2013 Ben Skeggs <bskeggs@redhat.com> 2.4.40-2
58d73f
- nouveau: fix bug causing kernel to reject certain command streams
58d73f
58d73f
* Tue Nov 06 2012 Dave Airlie <airlied@redhat.com> 2.4.40-1
58d73f
- libdrm 2.4.40
58d73f
58d73f
* Thu Oct 25 2012 Adam Jackson <ajax@redhat.com> 2.4.39-4
58d73f
- Rebuild to appease koji and get libkms on F18 again
58d73f
58d73f
* Mon Oct 08 2012 Adam Jackson <ajax@redhat.com> 2.4.39-3
58d73f
- Add exynos to arm
58d73f
58d73f
* Mon Aug 27 2012 Dave Airlie <airlied@redhat.com> 2.4.39-1
58d73f
- upstream 2.4.39 release
58d73f
58d73f
* Tue Aug 14 2012 Dave Airlie <airlied@redhat.com> 2.4.38-2
58d73f
- add radeon prime support
58d73f
58d73f
* Sun Aug 12 2012 Dave Airlie <airlied@redhat.com> 2.4.38-1
58d73f
- upstream 2.4.38 release
58d73f
58d73f
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.37-4
58d73f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
58d73f
58d73f
* Wed Jul 25 2012 Dave Airlie <airlied@redhat.com> 2.4.37-3
58d73f
- add libdrm prime support for core, intel, nouveau
58d73f
58d73f
* Mon Jul 23 2012 Adam Jackson <ajax@redhat.com> 2.4.37-2
58d73f
- libdrm-2.4.37-i915-hush.patch: Silence an excessive error message
58d73f
58d73f
* Fri Jul 13 2012 Dave Airlie <airlied@redhat.com> 2.4.37-1
58d73f
- bump to libdrm 2.4.37
58d73f
58d73f
* Thu Jun 28 2012 Dave Airlie <airlied@redhat.com> 2.4.36-1
58d73f
- bump to libdrm 2.4.36
58d73f
58d73f
* Mon Jun 25 2012 Adam Jackson <ajax@redhat.com> 2.4.35-2
58d73f
- Drop libkms. Only used by plymouth, and even that's a mistake.
58d73f
58d73f
* Fri Jun 15 2012 Dave Airlie <airlied@redhat.com> 2.4.35-1
58d73f
- bump to libdrm 2.4.35
58d73f
58d73f
* Tue Jun 05 2012 Adam Jackson <ajax@redhat.com> 2.4.34-2
58d73f
- Rebuild for new libudev
58d73f
- Conditional BuildReqs for {libudev,systemd}-devel
58d73f
58d73f
* Sat May 12 2012 Dave Airlie <airlied@redhat.com> 2.4.34-1
58d73f
- libdrm 2.4.34
58d73f
58d73f
* Fri May 11 2012 Dennis Gilmore <dennis@ausil.us> 2.4.34-0.3
58d73f
- enable libdrm_omap on arm arches
58d73f
58d73f
* Thu May 10 2012 Adam Jackson <ajax@redhat.com> 2.4.34-0.2
58d73f
- Drop ancient kernel Requires.
58d73f
58d73f
* Tue Apr 24 2012 Richard Hughes <rhughes@redhat.com> - 2.4.34-0.1.20120424
58d73f
- Update to a newer git snapshot
58d73f
58d73f
* Sat Mar 31 2012 Dave Airlie <airlied@redhat.com> 2.4.33-1
58d73f
- libdrm 2.4.33
58d73f
- drop libdrm-2.4.32-tn-surface.patch
58d73f
58d73f
* Wed Mar 21 2012 Adam Jackson <ajax@redhat.com> 2.4.32-1
58d73f
- libdrm 2.4.32
58d73f
- libdrm-2.4.32-tn-surface.patch: Sync with git.
58d73f
58d73f
* Sat Feb 25 2012 Peter Robinson <pbrobinson@fedoraproject.org> 2.4.31-4
58d73f
- Add gem_ binaries to x86 only exclusion too
58d73f
58d73f
* Wed Feb 22 2012 Adam Jackson <ajax@redhat.com> 2.4.31-3
58d73f
- Fix build on non-Intel arches
58d73f
58d73f
* Tue Feb 07 2012 Jerome Glisse <jglisse@redhat.com> 2.4.31-2
58d73f
- Fix missing header file
58d73f
58d73f
* Tue Feb 07 2012 Jerome Glisse <jglisse@redhat.com> 2.4.31-1
58d73f
- upstream 2.4.31 release
58d73f
58d73f
* Fri Jan 20 2012 Dave Airlie <airlied@redhat.com> 2.4.30-1
58d73f
- upstream 2.4.30 release
58d73f
58d73f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.27-3
58d73f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
58d73f
58d73f
* Fri Nov 11 2011 Adam Jackson <ajax@redhat.com> 2.4.27-2
58d73f
- Fix typo in udev rule
58d73f
58d73f
* Tue Nov 01 2011 Adam Jackson <ajax@redhat.com> 2.4.27-1
58d73f
- libdrm 2.4.27
58d73f
58d73f
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.26-4
58d73f
- Rebuilt for glibc bug#747377
58d73f
58d73f
* Tue Oct 25 2011 Adam Jackson <ajax@redhat.com> 2.4.26-3
58d73f
- Fix udev rule matching and install location (#748205)
58d73f
58d73f
* Fri Oct 21 2011 Dave Airlie <airlied@redhat.com> 2.4.26-2
58d73f
- fix perms on control node in udev rule
58d73f
58d73f
* Mon Jun 06 2011 Adam Jackson <ajax@redhat.com> 2.4.26-1
58d73f
- libdrm 2.4.26 (#711038)