SPECS: xorg-driver-video-fglrx.spec (NEW) - based on X11-driver-fi...

wolf wolf at pld-linux.org
Sun Feb 19 23:50:42 CET 2006


Author: wolf                         Date: Sun Feb 19 22:50:42 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- based on X11-driver-firegl.spec

---- Files affected:
SPECS:
   xorg-driver-video-fglrx.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/xorg-driver-video-fglrx.spec
diff -u /dev/null SPECS/xorg-driver-video-fglrx.spec:1.1
--- /dev/null	Sun Feb 19 23:50:42 2006
+++ SPECS/xorg-driver-video-fglrx.spec	Sun Feb 19 23:50:32 2006
@@ -0,0 +1,279 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	dist_kernel	# without distribution kernel
+%bcond_without	kernel		# don't build kernel modules
+%bcond_without	smp		# don't build SMP module
+%bcond_without	userspace	# don't build userspace tools
+%bcond_with	verbose		# verbose build (V=1)
+%bcond_without	incall		# include all sources in srpm
+
+%define		_min_eq_x11	1:7.0.0
+%define		_max_x11	1:7.0.0
+%define		x11ver		x690
+
+%if %{without kernel}
+%undefine with_dist_kernel
+%endif
+
+%ifarch %{ix86}
+%define		need_x86	1
+%define		need_amd64	0%{?with_incall:1}
+%define		arch_sufix	""
+%define		arch_dir	x86
+%else
+%define		need_x86	0%{?with_incall:1}
+%define		need_amd64	1
+%define		arch_sufix	_64a
+%define		arch_dir	x86_64
+%endif
+
+Summary:	Linux Drivers for ATI graphics accelerators
+Summary(pl):	Sterowniki do akceleratorów graficznych ATI
+Name:		xorg-driver-video-fglrx
+Version:	8.22.5
+%define		_rel	1
+Release:	%{_rel}
+License:	ATI Binary (parts are GPL)
+Group:		X11
+%if %{need_x86}
+Source0:	http://dlmdownloads.ati.com/drivers/linux/ati-driver-installer-%{version}-i386.run
+# Source0-md5:	283eb8b53dbd0887fff3277d4bf0b3f9
+%endif
+%if %{need_amd64}
+Source1:	http://dlmdownloads.ati.com/drivers/linux/64bit/ati-driver-installer-%{version}-x86_64.run
+# Source1-md5:	a24571ecb45b2a26092ef103d8eecefd
+%endif
+Patch0:		firegl-panel.patch
+Patch1:		firegl-panel-ugliness.patch
+Patch2:		%{name}-kh.patch
+Patch3:		%{name}-viak8t.patch
+URL:		http://www.ati.com/support/drivers/linux/radeon-linux.html
+BuildRequires:	cpio
+%{?with_dist_kernel:BuildRequires:	kernel-module-build >= 2.6.14}
+%{?with_userspace:BuildRequires:	qt-devel}
+BuildRequires:	rpmbuild(macros) >= 1.213
+BuildRequires:	xorg-lib-libXxf86vm-devel
+BuildRequires:	xorg-proto-recordproto-devel
+BuildRequires:	xorg-proto-xf86vidmodeproto-devel
+%{?with_kernel:Requires:	xorg-driver-video-fglrx(kernel)}
+Requires:	xorg-xserver-server
+Provides:	OpenGL = 2.0
+Obsoletes:	Mesa
+Obsoletes:	X11-OpenGL-libGL
+Obsoletes:	X11-driver-firegl
+Obsoletes:	XFree86-OpenGL-libGL
+Obsoletes:	XFree86-driver-firegl
+ExclusiveArch:	i586 i686 athlon pentium3 pentium4 %{x8664}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_noautoreqdep	libGL.so.1
+
+%description
+Display driver files for the ATI Radeon 8500, 9700, Mobility M9 and
+the FireGL 8700/8800, E1, Z1/X1 graphics accelerators. This package
+provides 2D display drivers and hardware accelerated OpenGL.
+
+%description -l pl
+Sterowniki do kart graficznych ATI Radeon 8500, 9700, Mobility M9 oraz
+graficznych akceleratorów FireGL 8700/8800, E1, Z1/X1. Pakiet
+dostarcza sterowniki obsługujące wyświetlanie 2D oraz sprzętowo
+akcelerowany OpenGL.
+
+%package -n kernel-video-firegl
+Summary:	ATI kernel module for FireGL support
+Summary(pl):	Moduł jądra oferujący wsparcie dla ATI FireGL
+Release:	%{_rel}@%{_kernel_ver_str}
+License:	ATI
+Group:		Base/Kernel
+%{?with_dist_kernel:%requires_releq_kernel_up}
+Requires(post,postun):	/sbin/depmod
+Provides:	xorg-driver-vide-fglrx(kernel)
+
+%description -n kernel-video-firegl
+ATI kernel module for FireGL support.
+
+%description -n kernel-video-firegl -l pl
+Moduł jądra oferujący wsparcie dla ATI FireGL.
+
+%package -n kernel-smp-video-firegl
+Summary:	ATI kernel module for FireGL support
+Summary(pl):	Moduł jądra oferujący wsparcie dla ATI FireGL
+Release:	%{_rel}@%{_kernel_ver_str}
+License:	ATI
+Group:		Base/Kernel
+%{?with_dist_kernel:%requires_releq_kernel_smp}
+Requires(post,postun):	/sbin/depmod
+Provides:	xorg-driver-video-fglrx(kernel)
+
+%description -n kernel-smp-video-firegl
+ATI kernel module for FireGL support.
+
+%description -n kernel-smp-video-firegl -l pl
+Moduł jądra oferujący wsparcie dla ATI FireGL.
+
+%prep
+%setup -q -c -T
+
+%ifarch %{x8664}
+sh %{SOURCE1} --extract .
+%else
+sh %{SOURCE0} --extract .
+%endif
+
+cp arch/%{arch_dir}/lib/modules/fglrx/build_mod/* common/lib/modules/fglrx/build_mod
+
+install -d panel_src
+tar -xzf common/usr/src/ATI/fglrx_panel_sources.tgz -C panel_src
+%patch0 -p1
+%patch1 -p1
+cd common
+%{?with_dist_kernel:%patch2 -p1}
+%patch3 -p1
+cd -
+
+install -d common%{_prefix}/{%{_lib},bin}
+cp -r %{x11ver}%{arch_sufix}%{_prefix}/X11R6/%{_lib}/* common%{_prefix}/%{_lib}
+cp -r %{x11ver}%{arch_sufix}%{_prefix}/X11R6/bin/* common%{_bindir}
+cp -r arch/%{arch_dir}%{_prefix}/X11R6/%{_lib}/* common%{_prefix}/%{_lib}
+cp -r arch/%{arch_dir}%{_prefix}/X11R6/bin/* common%{_bindir}
+
+%build
+%if %{with kernel}
+cd common/lib/modules/fglrx/build_mod
+cp -f 2.6.x/Makefile .
+for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
+	if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
+		exit 1
+	fi
+        install -d o/include/linux
+        ln -sf %{_kernelsrcdir}/config-$cfg o/.config
+        ln -sf %{_kernelsrcdir}/Module.symvers-$cfg o/Module.symvers
+        ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h o/include/linux/autoconf.h
+        %{__make} -C %{_kernelsrcdir} O=$PWD/o prepare scripts
+	%{__make} -C %{_kernelsrcdir} clean \
+		RCS_FIND_IGNORE="-name '*.ko' -o" \
+		M=$PWD O=$PWD/o \
+		%{?with_verbose:V=1}
+	%{__make} -C %{_kernelsrcdir} modules \
+		M=$PWD O=$PWD/o \
+		%{?with_verbose:V=1}
+	mv fglrx{,-$cfg}.ko
+done
+cd -
+%endif
+
+%if %{with userspace}
+%{__make} -C panel_src \
+	C="%{__cc}" \
+	CC="%{__cxx}" \
+	CCFLAGS="%{rpmcflags} -DFGLRX_USE_XEXTENSIONS" \
+	MK_QTDIR=/usr \
+	LIBQT_DYN=qt-mt
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with kernel}
+cd common/lib/modules/fglrx/build_mod
+install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc
+
+install fglrx-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/fglrx.ko
+%if %{with smp} && %{with dist_kernel}
+install fglrx-smp.ko \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/fglrx.ko
+%endif
+cd -
+%endif
+
+%if %{with userspace}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/xorg/modules,%{_includedir}/{X11/extensions,GL}}
+install -d $RPM_BUILD_ROOT%{_prefix}/X11R6/%{_lib}/modules/dri
+
+install common%{_bindir}/{fgl_glxgears,fglrxinfo,aticonfig} \
+	$RPM_BUILD_ROOT%{_bindir}
+install panel_src/fireglcontrol.qt3.gcc%(gcc -dumpversion) \
+	$RPM_BUILD_ROOT%{_bindir}/fireglcontrol
+cp -r common%{_libdir}/lib* $RPM_BUILD_ROOT%{_libdir}
+cp -r common%{_libdir}/modules/* $RPM_BUILD_ROOT%{_libdir}/xorg/modules
+
+ln -sf libGL.so.1 $RPM_BUILD_ROOT%{_libdir}/libGL.so
+ln -sf libGL.so.1.* $RPM_BUILD_ROOT%{_libdir}/libGL.so.1
+
+ln -sf %{_libdir}/xorg/modules/dri/fglrx_dri.so $RPM_BUILD_ROOT%{_prefix}/X11R6/%{_lib}/modules/dri/
+
+install common%{_includedir}/GL/*.h $RPM_BUILD_ROOT%{_includedir}/GL
+install common%{_prefix}/X11R6/include/X11/extensions/*.h $RPM_BUILD_ROOT%{_includedir}/X11/extensions
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%post	-n kernel-video-firegl
+%depmod %{_kernel_ver}
+
+%postun -n kernel-video-firegl
+%depmod %{_kernel_ver}
+
+%post	-n kernel-smp-video-firegl
+%depmod %{_kernel_ver}smp
+
+%postun -n kernel-smp-video-firegl
+%depmod %{_kernel_ver}smp
+
+%if %{with userspace}
+%files
+%defattr(644,root,root,755)
+%doc ATI_LICENSE.TXT common%{_docdir}/fglrx/*.html common%{_docdir}/fglrx/articles common%{_docdir}/fglrx/release-notes common%{_docdir}/fglrx/user-manual
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/libGL.so.*.*
+%attr(755,root,root) %{_libdir}/libGL.so.1
+%attr(755,root,root) %{_libdir}/libGL.so
+%attr(755,root,root) %{_libdir}/libfglrx_dm.so.*.*
+%attr(755,root,root) %{_libdir}/libfglrx_gamma.so.*.*
+%attr(755,root,root) %{_libdir}/libfglrx_pp.so.*.*
+
+%attr(755,root,root) %{_libdir}/xorg/modules/dri/atiogl_a_dri.so
+%attr(755,root,root) %{_libdir}/xorg/modules/dri/fglrx_dri.so
+%attr(755,root,root) %{_libdir}/xorg/modules/drivers/fglrx_drv.so
+%attr(755,root,root) %{_libdir}/xorg/modules/linux/libfglrxdrm.so
+
+%{_prefix}/X11R6
+
+# -devel
+#%attr(755,root,root) %{_libdir}/libfglrx_gamma.so
+#%{_includedir}/X11/include/libfglrx_gamma.h
+#/usr/include/GL/glATI.h
+#/usr/include/GL/glxATI.h
+
+# -static
+#%{_libdir}/libfglrx_gamma.a
+#%{_libdir}/libfglrx_pp.a
+%endif
+
+%if %{with kernel}
+%files -n kernel-video-firegl
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/misc/*.ko*
+
+%if %{with smp} && %{with dist_kernel}
+%files -n kernel-smp-video-firegl
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}smp/misc/*.ko*
+%endif
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/02/19 22:50:32  wolf
+- based on X11-driver-firegl.spec
+
================================================================


More information about the pld-cvs-commit mailing list