%define moduledir %(pkg-config xorg-server --variable=moduledir )
%define driverdir %{moduledir}/drivers
%define gputoolsdate 20130212
#define gitdate 20120907
#define gitrev .%{gitdate}
%if 0%{?rhel} == 7
%define rhel7 1
%endif
%if 0%{?rhel} == 6
%define rhel6 1
%endif
%if 0%{?rhel7} || 0%{?fedora} > 17
%define prime 1
%endif
Summary: Xorg X11 Intel video driver
Name: xorg-x11-drv-intel
Version: 2.21.2
Release: 4%{?gitrev}%{?dist}
URL: http://www.x.org
License: MIT
Group: User Interface/X Hardware Support
%if 0%{?gitdate}
Source0: xf86-video-intel-%{gitdate}.tar.bz2
%else
Source0: http://xorg.freedesktop.org/archive/individual/driver/xf86-video-intel-%{version}.tar.bz2
%endif
Source1: make-intel-gpu-tools-snapshot.sh
Source3: intel-gpu-tools-%{gputoolsdate}.tar.bz2
Source4: make-git-snapshot.sh
ExclusiveArch: %{ix86} x86_64 ia64
BuildRequires: autoconf automake libtool
BuildRequires: xorg-x11-server-devel >= 1.10.99.902
BuildRequires: libXvMC-devel
BuildRequires: mesa-libGL-devel >= 6.5-9
BuildRequires: libdrm-devel >= 2.4.25
BuildRequires: kernel-headers >= 2.6.32.3
BuildRequires: libudev-devel
BuildRequires: libxcb-devel >= 1.5
BuildRequires: xcb-util-devel
BuildRequires: cairo-devel
Requires: Xorg %(xserver-sdk-abi-requires ansic)
Requires: Xorg %(xserver-sdk-abi-requires videodrv)
%description
X.Org X11 Intel video driver.
%package devel
Summary: Xorg X11 Intel video driver XvMC development package
Group: Development/System
Requires: %{name} = %{version}-%{release}
Provides: xorg-x11-drv-intel-devel = %{version}-%{release}
%description devel
X.Org X11 Intel video driver XvMC development package.
%package -n intel-gpu-tools
Summary: Debugging tools for Intel graphics chips
Group: Development/Tools
%description -n intel-gpu-tools
Debugging tools for Intel graphics chips
%if 0%{?gitdate}
%define dirsuffix %{gitdate}
%else
%define dirsuffix %{version}
%endif
%prep
%setup -q -n xf86-video-intel-%{?gitdate:%{gitdate}}%{!?gitdate:%{dirsuffix}} -b3
%build
#export CFLAGS="$RPM_OPT_FLAGS -fno-omit-frame-pointer"
%{?gitdate:autoreconf -v --install}
%configure \
%ifnarch %{ix86}
--enable-kms-only \
%endif
%{?rhel7:--enable-kms-only} \
--disable-static \
--enable-dri \
--enable-xvmc \
--enable-sna \
--with-default-accel=uxa
make
pushd ../intel-gpu-tools-%{gputoolsdate}
mkdir -p m4
autoreconf -f -i -v
# --disable-dumper: quick_dump is both not recommended for packaging yet,
# and requires python3 to build; i'd like to keep this spec valid for rhel6
# for at least a bit longer
%configure %{!?prime:--disable-nouveau} --disable-dumper
make
popd
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
pushd ../intel-gpu-tools-%{gputoolsdate}
make install DESTDIR=$RPM_BUILD_ROOT
popd
find $RPM_BUILD_ROOT -regex ".*\.la$" | xargs rm -f --
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING
%{driverdir}/intel_drv.so
%ifarch %{ix86}
%if !0%{?rhel7}
%{_libdir}/libI810XvMC.so.1*
%endif
%endif
%{_libdir}/libIntelXvMC.so.1*
%{_mandir}/man4/i*
%files devel
%defattr(-,root,root,-)
%ifarch %{ix86}
%if !0%{?rhel7}
%{_libdir}/libI810XvMC.so
%endif
%endif
%{_libdir}/libIntelXvMC.so
%files -n intel-gpu-tools
%defattr(-,root,root,-)
%doc COPYING
%{_bindir}/intel_*
%{_mandir}/man1/intel_*.1*
%changelog
* Thu Mar 07 2013 Peter Hutterer <peter.hutterer@redhat.com> - 2.21.2-4
- ABI rebuild
* Fri Feb 15 2013 Peter Hutterer <peter.hutterer@redhat.com> - 2.21.2-3
- ABI rebuild
* Fri Feb 15 2013 Peter Hutterer <peter.hutterer@redhat.com> - 2.21.2-2
- ABI rebuild
* Tue Feb 12 2013 Adam Jackson <ajax@redhat.com> 2.21.2-1
- intel 2.21.2
- New i-g-t snapshot
- Pre-F16 changelog trim
* Wed Jan 16 2013 Adam Jackson <ajax@redhat.com> 2.20.18-2
- Compensate for rawhide's aclocal breaking in a newly stupid way
* Wed Jan 16 2013 Adam Jackson <ajax@redhat.com> 2.20.18-1
- intel 2.20.18
* Tue Jan 08 2013 Dave Airlie <airlied@redhat.com> 2.20.17-2
- Fix damage issue for reverse prime work
* Fri Jan 04 2013 Adam Jackson <ajax@redhat.com> 2.20.17-1
- intel 2.20.17
* Wed Jan 02 2013 Dave Airlie <airlied@redhat.com> 2.20.16-2
- Fix uxa bug that trips up ilk on 3.7 kernels
* Mon Dec 17 2012 Adam Jackson <ajax@redhat.com> 2.20.16-1
- intel 2.20.16
* Wed Nov 28 2012 Adam Jackson <ajax@redhat.com> 2.20.14-1
- intel 2.20.14
* Mon Oct 22 2012 Adam Jackson <ajax@redhat.com> 2.20.12-1
- intel 2.20.12
* Fri Oct 19 2012 Adam Jackson <ajax@redhat.com> 2.20.10-2
- Today's i-g-t
- Don't bother building the nouveau bits of i-g-t on OSes without an X
server with prime support.
* Mon Oct 15 2012 Dave Airlie <airlied@redhat.com> 2.20.10-1
- intel 2.20.10
* Fri Oct 05 2012 Adam Jackson <ajax@redhat.com> 2.20.9-1
- intel 2.20.9
- Today's intel-gpu-tools snapshot
* Fri Sep 21 2012 Adam Jackson <ajax@redhat.com> 2.20.8-1
- intel 2.20.8
* Mon Sep 10 2012 Adam Jackson <ajax@redhat.com> 2.20.7-1
- intel 2.20.7
* Fri Sep 07 2012 Dave Airlie <airlied@redhat.com> 2.20.6-2
- latest upstream git snapshot with prime + fixes
* Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 2.20.6-2
- Only bother to build UMS (read: i810) support on 32-bit. If you've
managed to build a machine with an i810 GPU but a 64-bit CPU, please
don't have done that.
* Tue Sep 04 2012 Adam Jackson <ajax@redhat.com> 2.20.6-1
- intel 2.20.6 (#853783)
* Thu Aug 30 2012 Adam Jackson <ajax@redhat.com> 2.20.5-2
- Don't package I810XvMC when not building legacy i810
* Mon Aug 27 2012 Adam Jackson <ajax@redhat.com> 2.20.5-1
- intel 2.20.5
* Mon Aug 20 2012 Adam Jackson <ajax@redhat.com> 2.20.4-3
- Rebuild for new xcb-util soname
* Mon Aug 20 2012 Adam Jackson <ajax@redhat.com> 2.20.4-2
- Backport some patches to avoid binding to non-i915.ko-driven Intel GPUs,
like Cedarview and friends (#849475)
* Mon Aug 20 2012 Adam Jackson <ajax@redhat.com> 2.20.4-1
- intel 2.20.4
* Thu Aug 16 2012 Dave Airlie <airlied@redhat.com> 2.20.3-3
- fix vmap flush to correct upstream version in prime patch
* Thu Aug 16 2012 Dave Airlie <airlied@redhat.com> 2.20.3-2
- snapshot upstream + add prime support for now
* Wed Aug 15 2012 Adam Jackson <ajax@redhat.com> 2.20.3-1
- intel 2.20.3
* Wed Aug 01 2012 Adam Jackson <ajax@redhat.com> 2.20.2-1
- intel 2.20.2
- Only disable UMS in RHEL7, since i810 exists in RHEL6
* Mon Jul 23 2012 Adam Jackson <ajax@redhat.com> 2.20.1-1
- intel 2.20.1
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.20.0-2.20120718
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Wed Jul 18 2012 Dave Airlie <airlied@redhat.com> 2.20.0-1.20120718
- todays git snapshot
* Tue Jun 12 2012 Dave Airlie <airlied@redhat.com> 2.19.0-5.20120612
- today's git snapshot
- resurrect copy-fb
* Tue May 29 2012 Adam Jackson <ajax@redhat.com> 2.19.0-4.20120529
- Today's git snapshot
- Enable SNA (default is still UXA, use Option "AccelMethod" to switch)
- build-fix.patch: Fix build with Fedora's default cflags
* Tue May 29 2012 Adam Jackson <ajax@redhat.com> 2.19.0-3
- Don't autoreconf the driver, fixes build on F16.
* Mon May 21 2012 Adam Jackson <ajax@redhat.com> 2.19.0-2
- Disable UMS support in RHEL.
- Trim some Requires that haven't been needed since F15.
* Thu May 03 2012 Adam Jackson <ajax@redhat.com> 2.19.0-1
- intel 2.19.0
* Tue Apr 24 2012 Adam Jackson <ajax@redhat.com> 2.18.0-2
- intel-2.18-fedora-branch.patch: Backport stuff from post-2.18 git.
* Fri Feb 24 2012 Adam Jackson <ajax@redhat.com> 2.18.0-1
- intel 2.18.0
* Sat Feb 11 2012 Peter Hutterer <peter.hutterer@redhat.com> - 2.17.0-10
- ABI rebuild
* Fri Feb 10 2012 Peter Hutterer <peter.hutterer@redhat.com> - 2.17.0-9
- ABI rebuild
* Wed Jan 25 2012 Bill Nottingham <notting@redhat.com> - 2.17.0-8
- fix crash (fdo #45325)
* Tue Jan 24 2012 Peter Hutterer <peter.hutterer@redhat.com> - 2.17.0-7
- ABI rebuild
* Tue Jan 03 2012 Peter Hutterer <peter.hutterer@redhat.com> - 2.17.0-6
- Rebuild for server 1.12
* Fri Dec 16 2011 Adam Jackson <ajax@redhat.com> - 2.17.0-5
- Drop xinf file
* Tue Dec 13 2011 Adam Jackson <ajax@redhat.com> 2.17.0-4
- 0001-uxa-Fix-clip-processing-for-uxa_fill_spans.patch: Backport clipping
fixes from master.
* Tue Nov 29 2011 Adam Jackson <ajax@redhat.com> 2.17.0-3
- Rebuild for new xcb-util
* Mon Nov 21 2011 Adam Jackson <ajax@redhat.com> 2.17.0-2
- Re-enable DRI1 build for the moment
* Fri Nov 18 2011 Adam Jackson <ajax@redhat.com> 2.17.0-1
- intel 2.17.0
- intel-2.17.0-legacy-dri1.patch: Fix build with DRI1 disabled
* Mon Nov 14 2011 Adam Jackson <ajax@redhat.com> - 2.16.901-2
- ABI rebuild
* Thu Nov 10 2011 Adam Jackson <ajax@redhat.com> 2.16.901-1
- Today's git snapshot (2.16.901 plus a lot)
* Thu Aug 18 2011 Adam Jackson <ajax@redhat.com> - 2.16.0-2
- Rebuild for xserver 1.11 ABI
* Wed Aug 17 2011 Adam Jackson <ajax@redhat.com> 2.16.0-1
- intel 2.16.0
- Today's intel-gpu-tools snapshot