Blame SPECS/libdrm.spec

58d73f
#define gitdate 20130117
58d73f
58d73f
Summary: Direct Rendering Manager runtime library
58d73f
Name: libdrm
58d73f
Version: 2.4.47
58d73f
Release: 2%{?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
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
58d73f
# fix nouveau with gcc 4.8
58d73f
Patch6: 0001-nouveau-prevent-undefined-behavior-in-nouveau_pushbu.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
58d73f
58d73f
%description -n drm-utils
58d73f
Utility programs for the kernel DRM interface.  Will void your warranty.
58d73f
Requires: libdrm = %{version}-%{release}
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
58d73f
%patch6 -p1 -b .gcc48
58d73f
58d73f
%build
58d73f
autoreconf -v --install || exit 1
58d73f
%configure \
58d73f
%ifarch %{arm}
58d73f
	--enable-exynos-experimental-api \
58d73f
	--enable-freedreno-experimental-api \
58d73f
	--enable-omap-experimental-api \
58d73f
%endif
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
58d73f
 install -m 0755 .libs/$foo $RPM_BUILD_ROOT%{_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_freedreno.so.1
58d73f
%{_libdir}/libdrm_freedreno.so.1.0.0
58d73f
%{_libdir}/libdrm_omap.so.1
58d73f
%{_libdir}/libdrm_omap.so.1.0.0
58d73f
%endif
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
58d73f
%ifarch %{ix86} x86_64 ia64
58d73f
%{_bindir}/gem_basic
58d73f
%{_bindir}/gem_flink
58d73f
%{_bindir}/gem_mmap
58d73f
%{_bindir}/gem_readwrite
58d73f
%endif
58d73f
%{_bindir}/getclient
58d73f
%{_bindir}/getstats
58d73f
%{_bindir}/getversion
58d73f
%{_bindir}/name_from_fd
58d73f
%{_bindir}/openclose
58d73f
%{_bindir}/setversion
58d73f
%{_bindir}/updatedraw
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
58d73f
%{_includedir}/exynos/
58d73f
%{_includedir}/freedreno/
58d73f
%{_includedir}/omap/
58d73f
%endif
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/nouveau.h
58d73f
%{_includedir}/libdrm/*_drm.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
58d73f
%{_libdir}/libdrm_freedreno.so
58d73f
%endif
58d73f
%{_libdir}/libdrm_radeon.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_freedreno.pc
58d73f
%{_libdir}/pkgconfig/libdrm_omap.pc
58d73f
%endif
58d73f
%{_libdir}/pkgconfig/libdrm_radeon.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
58d73f
* Fri Nov 08 2013 Dave Airlie <airlied@redhat.com> 2.4.47-2
58d73f
- fix nouveau with gcc 4.8
58d73f
58d73f
* Wed Oct 23 2013 Jerome Glisse <jglisse@redhat.com> 2.4.47-1
58d73f
- libdrm 2.4.47
58d73f
58d73f
* Thu Jul 04 2013 Dave Airlie <airlied@redhat.com> 2.4.46-2
58d73f
- RHEL7 rpmdiff fixes
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)