Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 2d2f770c5f5d346e2ae1733df0a8c7dd > files > 12

fglrx-15.302-4.mga5.nonfree.src.rpm


##############################################################################
# This .spec file is dual licensed. It can be distributed either with the    #
# terms of GPL version 2 or newer, or with the MIT license included below.   #
# Removing either GPL or MIT license when distributing this file is allowed. #
##############################################################################
# - start of MIT license -
# Copyright (c) 2007-2009 Anssi Hannula, Luiz Fernando Capitulino, Colin Guthrie, Thomas Backlund
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# - end of MIT license -

%define name		fglrx

# %amdbuild is used to enable the AMD installer --buildpkg mode.
# The macros version, rel, amd_dir, distsuffix need to be manually defined.
# The macro mdkversion can also be overridden.
%define amdbuild	0
%{?_without_amd: %global amdbuild 0}
%{?_with_amd: %global amdbuild 1}

%if !%{amdbuild}
# NOTE: These version definitions are overridden by ati-packager.sh when
# building with the --buildpkg method of the installer.

# When updating, please add new ids to ldetect-lst (merge2pcitable.pl).

# version in installer filename:
%define oversion	15.302
# Advertised version, for description:
%define mversion	15.12
# driver version from ati-packager-helper.sh:
%define iversion	15.302
# release:
%define rel		4
# rpm version (adds 0 in order to not go backwards if iversion is two-decimal)
#define version		%{iversion}%([ $(echo %iversion | wc -c) -le 5 ] && echo 0)
# (tmb) amd keeps playing up/down with the versioning, so lets do manual added 0 "fix" for now
%define version		15.302
%else
# Best-effort if AMD has made late changes (in amdbuild mode)
%define _default_patch_fuzz 2
%endif

%define priority	1000
%define release %mkrel %{rel}

# set to 1 for a prerelease driver with an ubuntu tarball as source
%define ubuntu_prerelease 0

%define driverpkgname	x11-driver-video-fglrx
%define drivername	fglrx
%define xorg_version	pic
# highest supported videodrv abi
%define videodrv_abi	19
%define xorg_libdir	%{_libdir}/xorg
%define xorg_dridir	%{_libdir}/dri
%define xorg_dridir32	%{_prefix}/lib/dri
%define ld_so_conf_file	ati.conf
%define ati_extdir	%{_libdir}/%{drivername}/xorg
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define bundle_qt	0

# ##ldetect_cards_name
# The entry in Cards+ this driver should be associated with in case there is
# no entry in ldetect-lst default pcitable. A ldetect-lst pcitable.d file
# will be generated by this .spec that matches cards supported by this driver
# to the specified ldetect CARD name. If %nil, no file will be generated.

# cooker ldetect-lst should be up-to-date
%define ldetect_cards_name      %nil

%if %{amdbuild}
# AMD/ATI cards not listed in main ldetect-lst pcitable are not likely
# to be supported by radeon which is from the same time period.
# (main pcitable entries override our entries)
%define ldetect_cards_name	ATI Radeon HD 5000 and later without free driver (vesa/fglrx)
%endif

# For manual backports, create pcitable.d:
%if %{mgaversion} <= 2
%define ldetect_cards_name	ATI Radeon HD 2000 and later without free driver (vesa/fglrx)
%endif
%if %{mgaversion} <= 1
%define ldetect_cards_name	ATI Radeon HD 2000 and later (vesa/fglrx)
%endif

%ifarch %ix86
%define xverdir		x%{xorg_version}
%define archdir		arch/x86
%endif
%ifarch x86_64
%define xverdir		x%{xorg_version}_64a
%define archdir		arch/x86_64
%endif

# Other packages should not require any AMD specific proprietary libraries
# (if that is really necessary, we may want to split that specific lib out),
# and this package should not be pulled in when libGL.so.1 is required.
%global __provides_exclude \\.so

%define qt__requires_exclude %nil
%if %{bundle_qt}
# do not require Qt if it is bundled
%global qt__requires_exclude |^libQtCore\\.so|* libQtGui\\.so
%endif

# do not require fglrx stuff, they are all included
%global common__requires_exclude ^libfglrx.+\\.so|^libati.+\\.so|^libOpenCL\\.so%{qt__requires_exclude}

%ifarch x86_64
# (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit fglrx libraries in as well.
%global __requires_exclude %common__requires_exclude|^libX11\\.so\\.6$|^libXext\\.so\\.6$|^libc\\.so\\.6$|^libdl\\.so\\.2$|^libgcc_s\\.so\\.1$|^libm\\.so\\.6$|^libpthread\\.so\\.0$|^librt\\.so\\.1$
%else
%global __requires_exclude %common__requires_exclude
%endif

# (anssi) Do not require qt for amdnotifyui (used as event notifier, as
# of 04/2010 only for DisplayPort failures). installing
# fglrx-control-center will satisfy the dependency.
# It is not moved to fglrx-control-center as due to its small size it may
# be wanted on e.g. KDE Ones, which can't have the full fglrx-control-center,
# and due to it having nothing to do with fglrx-control-center.
%global __provides_exclude_from ^%{_sbindir}/amdnotifyui$
%global __requires_exclude_from ^%{_sbindir}/amdnotifyui$

Summary:	AMD proprietary X.org driver and libraries
Name:		%{name}
Version:	%{version}
Release:	%{release}
%if !%{amdbuild}
%if !%{ubuntu_prerelease}
Source0:	https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/amd-driver-installer-%{oversion}-x86.x86_64.run
%else
Source0:        fglrx-installer_%{iversion}.orig.tar.gz
%endif
%endif
Source1:	ati-packager.sh
Source2:	atieventsd.init
%if !%{amdbuild}
# Generates fglrx.spec from Mageia SVN for use in AMD installer
# archive.
# (for manual use)
Source10:	generate-fglrx-spec-from-svn.sh
%endif
Patch3:		fglrx-authfile-locations.patch
Patch9:		fglrx-make_sh-custom-kernel-dir.patch
# do not probe /proc for kernel info as we may be building for a
# different kernel
Patch10:	fglrx-make_sh-no-proc-probe.patch
# (tmb) fix GL mess
Patch11:	fglrx-fix-GL-redefines.patch
# (ubuntu) kernel 4.2 support
Patch12:	10-4.2.0-build.copy_xregs_to_kernel.patch
# (ubuntu) kernel 4.3 support
Patch13:	12-4.3.0-build.patch
# (ubuntu) kernel 4.4 support
Patch14:	13-4.4.0-build.patch
# (tmb) fix missing __xg define on i586
Patch15:	fglrx-add-missing-__xg-define.patch

License:	Freeware
URL:		http://ati.amd.com/support/driver.html
Group:		System/Kernel and hardware
ExclusiveArch:	%{ix86} x86_64
%if !%{amdbuild}
BuildRequires:	mesagl-devel
BuildRequires:	libxmu-devel
BuildRequires:	libxaw-devel
BuildRequires:	libxp-devel
BuildRequires:	libxtst-devel
BuildRequires:	imake
# Used by atieventsd:
Recommends:	acpid
BuildRequires:	ImageMagick
%endif

%description
Source package of the AMD proprietary driver. Binary packages are
named x11-driver-video-fglrx on %{_vendor}.
%if !%{amdbuild}
This package corresponds to AMD Catalyst version %mversion.
%endif

%package -n %{driverpkgname}
Summary:	AMD proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires(post):	update-alternatives >= 1.9.0
Requires(postun): update-alternatives
Obsoletes:	ati_igp
Recommends:	%{drivername}-control-center = %{version}
Obsoletes:	ati < %{version}-%{release}
Provides:	ati = %{version}-%{release}
Requires:	kmod(fglrx.ko) = %{version}
Requires:	x11-server-common >= 1.9
%if !%{amdbuild}
# Conflict with the next videodrv ABI break.
# The driver may support multiple ABI versions and therefore
# a strict version-specific requirement would not be enough.
# (ahmad) since X Server 1.10 ABI is now 10 (upstream jumped from 8 to 10)
# make it +2 for now
### This is problematic as it can cause removal of xserver instead (Anssi 04/2011)
### Conflicts:	xserver-abi(videodrv-%(echo $((%{videodrv_abi} + 1))))
%endif
Provides:	atieventsd = %{version}-%{release}
Obsoletes:	atieventsd < %{version}-%{release}

%description -n %{driverpkgname}
AMD proprietary X.org graphics driver, related libraries and
configuration tools.

NOTE: You should use XFdrake to configure your AMD card. The
correct packages will be automatically installed and configured.

If you do not want to use XFdrake, see README.manual-setup.

The graphical configuration utility, AMD Catalyst Control Center
Linux Edition, is contained in the package
%{drivername}-control-center.
%if !%{amdbuild}
This package corresponds to AMD Catalyst version %mversion.
%endif

%package -n %{drivername}-control-center
Summary:	AMD Catalyst Control Center Linux Edition
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{version}
Obsoletes:	ati-utils < %{version}-%{release}
Provides:	ati-utils = %{version}-%{release}
Provides:	amdcccle = %{version}-%{release}
Obsoletes:	ati-ccc < %{version}-%{release}
Obsoletes:	ati-control-center < %{version}-%{release}
Provides:	ati-control-center = %{version}-%{release}
%if !%{bundle_qt}
# 2009.0 and 2009.1 have this one in updates only
Requires:	%{_lib}qtcore4 >= 3:4.5.2
%endif

%description -n %{drivername}-control-center
AMD Catalyst Control Center Linux Edition, a graphical configuration
utility for the AMD proprietary X.org driver.
%if !%{amdbuild}
This package corresponds to AMD Catalyst version %mversion.
%endif

%package -n dkms-%{drivername}
Summary:	AMD proprietary kernel module
Group:		System/Kernel and hardware
Provides:	kmod(fglrx.ko) = %{version}
Requires:	dkms
Requires(post):	dkms
Requires(preun): dkms
Obsoletes:	dkms-ati < %{version}-%{release}
Provides:	dkms-ati = %{version}-%{release}

%description -n dkms-%{drivername}
AMD proprietary kernel module. This is to be used with the
%{driverpkgname} package.
%if !%{amdbuild}
This package corresponds to AMD Catalyst version %mversion.
%endif

%package -n %{drivername}-devel
Summary:	AMD proprietary development libraries and headers
Group:		Development/C
Requires:	%{driverpkgname} = %{version}-%{release}
Obsoletes:	ati-devel < %{version}-%{release}
Provides:	ati-devel = %{version}-%{release}

%description -n %{drivername}-devel
AMD proprietary development libraries and headers. This package is
not required for normal use.

The main driver package name is %{driverpkgname}.

%package -n %{drivername}-opencl
Summary:	OpenCL libraries for the AMD proprietary driver
Group: 		System/Kernel and hardware
Requires:	kmod(fglrx.ko) = %{version}
Conflicts:	x11-driver-video-fglrx < 8.911-2

%description -n %{drivername}-opencl
OpenCL libraries for the AMD proprietary driver. This package is not
required for normal use, it provides libraries to use AMD cards for High
Performance Computing (HPC).

%prep
%setup -T -c
%if %{amdbuild}
ln -s %{amd_dir}/%{xverdir} %{amd_dir}/arch .
# patches affects common, so we cannot symlink it:
cp -a %{amd_dir}/common .
%else
%if %ubuntu_prerelease
%setup -q -T -D -a 0
ln -s . common
%else
sh %{SOURCE0} --extract .
%endif

mkdir fglrx_tools
tar -xzf common/usr/src/ati/fglrx_sample_source.tgz -C fglrx_tools
%if %ubuntu_prerelease
[ -d "%xverdir" ] || (echo This driver version does not support your X.org server. Please wait for a new release from AMD. >&2; false)
%else
[ "%iversion" = "$(./ati-packager-helper.sh --version)" ]
%endif
%endif

cd common # ensure patches do not touch outside
%patch3 -p2
%patch9 -p2
%patch10 -p2
%patch11 -p2
%patch12 -p2
%patch13 -p2
%patch14 -p2
%patch15 -p2
cd ..

cat > README.install.urpmi <<EOF
This driver is for ATI Radeon HD 5000 and newer cards.
Reconfiguring is not necessary when upgrading from a previous %{_vendor} AMD
driver package.

Use XFdrake to configure X to use the correct AMD driver. Any needed
packages will be automatically installed if not already present.
1. Run XFdrake as root.
2. Go to the Graphics Card list.
3. Select your card (it is usually already autoselected).
4. Answer any questions asked and then quit.

If you do not want to use XFdrake or it does not work correctly for
you, see README.manual-setup for manual installation instructions.
EOF

cat > README.manual-setup <<EOF
This file describes the procedure for the manual installation of this AMD
driver package. You can find the instructions for the recommended automatic
installation in the file 'README.install.urpmi' in this directory.

- Open %{_sysconfdir}/X11/xorg.conf and make the following changes:
  o Change the Driver to "fglrx" in the Device section
  o Make the line below the only 'glx' related line in the Module section:
      Load "glx"
  o Remove any 'ModulePath' lines from the Files section
- Run "update-alternatives --set gl_conf %{_sysconfdir}/ld.so.conf.d/GL/%{ld_so_conf_file}" as root.
- Run "ldconfig" as root.
EOF

cat > README.8.980.upgrade.urpmi <<EOF
REMOVED GRAPHICS DRIVER SUPPORT NOTIFICATION:
Versions 8.980 and later of AMD Proprietary Graphics driver (fglrx) only
support Radeon HD 5000 or newer cards.

If you have an older Radeon card or are unsure, please reconfigure your
driver:
1. Run XFdrake as root or select Graphical server configuration in
   %{_vendor} Control Center.
2. Go to the Graphics Card list.
3. Select your card (it is usually already autoselected).
4. Answer any questions asked and then quit.
EOF

%build
%if !%{amdbuild}
# %amdbuild is done with minimal buildrequires
cd fglrx_tools/fgl_glxgears
xmkmf
%make RMAN=/bin/true CC="%__cc %optflags -I../../common/usr/include" EXTRA_LDOPTIONS="%{?ldflags}"
cd -
%endif

%install
rm -rf %{buildroot}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}
cp -a common/lib/modules/fglrx/build_mod/* %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}
cp -a %{archdir}/lib/modules/fglrx/build_mod/* %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

#install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}/patches
#install -m644 %{SOURCE3} %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}/patches

cat > %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}/dkms.conf <<EOF
PACKAGE_NAME="%{drivername}"
PACKAGE_VERSION="%{version}-%{release}"
BUILT_MODULE_NAME[0]="fglrx"
DEST_MODULE_LOCATION[0]="/kernel/drivers/char/drm"
# uname_v set to none so that make.sh doesn't try to use "uname -v" to see
# if the target kernel is SMP (we may be compiling for a different kernel)
MAKE[0]="sh make.sh --uname_r=\${kernelver} --uname_v=none --kernel-dir=\${kernel_source_dir} --no-proc-probe --norootcheck"
CLEAN="rm -rf 2.6.x/.tmp_versions; make -C2.6.x clean"
AUTOINSTALL="yes"
EOF

# headers
install -d -m755		%{buildroot}%{_includedir}
cp -a common/usr/include/*	%{buildroot}%{_includedir}
chmod 0644 %{buildroot}%{_includedir}/*/*.h

# install binaries
install -d -m755					%{buildroot}%{_sbindir}
install -m755 %{archdir}/usr/sbin/*			%{buildroot}%{_sbindir}
install -m755 common/usr/sbin/*				%{buildroot}%{_sbindir}
install -d -m755					%{buildroot}%{_bindir}
install -m755 %{archdir}/usr/bin/*			%{buildroot}%{_bindir}
install -m755 %{archdir}/usr/X11R6/bin/*		%{buildroot}%{_bindir}
install -m755 common/usr/X11R6/bin/*			%{buildroot}%{_bindir}
%if !%{amdbuild}
# install self-built binaries
install -m755 fglrx_tools/fgl_glxgears/fgl_glxgears	%{buildroot}%{_bindir}
%endif
# compatibility symlink
ln -s aticonfig %{buildroot}%{_bindir}/amdconfig

# atieventsd initscript
install -d -m755 %{buildroot}%{_initrddir}
install -m755 %{SOURCE2} %{buildroot}%{_initrddir}/atieventsd

# amdcccle data files
install -d -m755 %{buildroot}%{_datadir}/ati/amdcccle
rm -f amdcccle.langs
for fullname in common/usr/share/ati/amdcccle/*.qm; do
	file=$(basename $fullname)
	lang=${file#*_}
	lang=${lang%%.qm}
%if !%{bundle_qt}
	# qt localization not necessary with non-bundled qt
	[ "$file" = "${file#qt}" ] || continue
%endif
	install -m644 $fullname %{buildroot}%{_datadir}/ati/amdcccle
	echo "%%lang($lang) %{_datadir}/ati/amdcccle/$file" >> amdcccle.langs
done

# amdcccle super-user mode
install -d -m755 %{buildroot}%{_sysconfdir}/security/console.apps
install -d -m755 %{buildroot}%{_sysconfdir}/pam.d
install -m644 common/etc/security/console.apps/* %{buildroot}%{_sysconfdir}/security/console.apps
ln -s su %{buildroot}%{_sysconfdir}/pam.d/amdcccle-su

# man pages
install -d -m755 %{buildroot}%{_mandir}/man1 %{buildroot}%{_mandir}/man8
install -m644 common/usr/share/man/man8/* %{buildroot}%{_mandir}/man8

# menu entry
install -d -m755 %{buildroot}%{_datadir}/applications
install -m644 common/usr/share/applications/* %{buildroot}%{_datadir}/applications
sed -i 's,^Icon=.*$,Icon=%{drivername}-amdcccle,' %{buildroot}%{_datadir}/applications/*.desktop
# control center doesn't really use GNOME/KDE libraries:
sed -i 's,GNOME;KDE;,,' %{buildroot}%{_datadir}/applications/*.desktop

# icons
install -d -m755 %{buildroot}%{_miconsdir} %{buildroot}%{_iconsdir} %{buildroot}%{_liconsdir}
%if !%{amdbuild}
convert common/usr/share/icons/ccc_large.xpm -resize 16x16 %{buildroot}%{_miconsdir}/%{drivername}-amdcccle.png
convert common/usr/share/icons/ccc_large.xpm -resize 32x32 %{buildroot}%{_iconsdir}/%{drivername}-amdcccle.png
convert common/usr/share/icons/ccc_large.xpm -resize 48x48 %{buildroot}%{_liconsdir}/%{drivername}-amdcccle.png
%else
install -m644 common/usr/share/icons/ccc_large.xpm %{buildroot}%{_iconsdir}/%{drivername}-amdcccle.xpm
%endif

# install libraries
install -d -m755					%{buildroot}%{_libdir}/%{drivername}
install -m755 %{archdir}/usr/X11R6/%{_lib}/*.*		%{buildroot}%{_libdir}/%{drivername}
install -m755 %{archdir}/usr/X11R6/%{_lib}/fglrx/*	%{buildroot}%{_libdir}/%{drivername}
install -m755 %{archdir}/usr/%{_lib}/*.*		%{buildroot}%{_libdir}/%{drivername}
mv %{buildroot}%{_libdir}/%{drivername}/{fglrx-,}libGL.so.1.2
chmod 0644						%{buildroot}%{_libdir}/%{drivername}/*.a
/sbin/ldconfig -n					%{buildroot}%{_libdir}/%{drivername}
# create devel symlinks
for file in %{buildroot}%{_libdir}/%{drivername}/*.so.*.*; do
	ln -s $(basename $file) ${file%%.so*}.so;
done
%ifarch x86_64
install -d -m755					%{buildroot}%{_prefix}/lib/%{drivername}
install -m755 arch/x86/usr/X11R6/lib/fglrx/*		%{buildroot}%{_prefix}/lib/%{drivername}
install -m755 arch/x86/usr/lib/*.*			%{buildroot}%{_prefix}/lib/%{drivername}
mv %{buildroot}%{_prefix}/lib/%{drivername}/{fglrx-,}libGL.so.1.2
/sbin/ldconfig -n					%{buildroot}%{_prefix}/lib/%{drivername}
# create devel symlinks
for file in %{buildroot}%{_prefix}/lib/%{drivername}/*.so.*.*; do
	ln -s $(basename $file) ${file%%.so*}.so;
done
%endif

%if %{bundle_qt}
# install the bundled Qt4 libs on distros with qt4 < 4.4.2
install -d -m755				%{buildroot}%{_libdir}/%{drivername}-qt4
install -m755 %{archdir}/usr/share/ati/%{_lib}/*	%{buildroot}%{_libdir}/%{drivername}-qt4
# RPATH of amdcccle points to datadir, we create a symlink there:
install -d -m755				%{buildroot}/usr/share/ati
ln -s %{_libdir}/%{drivername}-qt4		%{buildroot}/usr/share/ati/%{_lib}
%endif

# install X.org files
install -d -m755						%{buildroot}%{xorg_libdir}/modules/drivers
install -m755 %{xverdir}/usr/X11R6/%{_lib}/modules/drivers/*.so* %{buildroot}%{xorg_libdir}/modules/drivers
install -d -m755						%{buildroot}%{xorg_libdir}/modules/linux
install -m755 %{xverdir}/usr/X11R6/%{_lib}/modules/linux/*.so*	%{buildroot}%{xorg_libdir}/modules/linux
install -m644 %{xverdir}/usr/X11R6/%{_lib}/modules/*.*o		%{buildroot}%{xorg_libdir}/modules
install -d -m755						%{buildroot}%{ati_extdir}
install -m755 %{xverdir}/usr/X11R6/%{_lib}/modules/extensions/fglrx/*.so* %{buildroot}%{ati_extdir}
mv %{buildroot}%{ati_extdir}/{fglrx-,}libglx.so

# etc files
install -d -m755		%{buildroot}%{_sysconfdir}/ati
install -m644 common/etc/ati/*	%{buildroot}%{_sysconfdir}/ati
chmod 0755			%{buildroot}%{_sysconfdir}/ati/*.sh
# Ghost file created as suggested by AMD.
touch %{buildroot}%{_sysconfdir}/ati/atiapfuser.blb

# dri libraries
install -d -m755						%{buildroot}%{xorg_dridir}
install -m755 %{archdir}/usr/X11R6/%{_lib}/modules/dri/*	%{buildroot}%{xorg_dridir}
%ifarch x86_64
install -d -m755						%{buildroot}%{xorg_dridir32}
install -m755 arch/x86/usr/X11R6/lib/modules/dri/*		%{buildroot}%{xorg_dridir32}
%endif

# ld.so.conf
install -d -m755			%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL
echo "%{_libdir}/%{drivername}" >	%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL/%{ld_so_conf_file}
%ifarch x86_64
echo "%{_prefix}/lib/%{drivername}" >>	%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL/%{ld_so_conf_file}
%endif
touch					%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# XvMCConfig
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
echo "libAMDXvBA.so.1" > %{buildroot}%{_sysconfdir}/%{drivername}/XvMCConfig

# OpenCL icd
install -d -m755				%{buildroot}%{_sysconfdir}/OpenCL/vendors
install -m644 %{archdir}/etc/OpenCL/vendors/*	%{buildroot}%{_sysconfdir}/OpenCL/vendors
%ifarch x86_64
install -m644 arch/x86/etc/OpenCL/vendors/*	%{buildroot}%{_sysconfdir}/OpenCL/vendors
%endif

# PowerXpress intel - use Mesa libGL but still keep AMD specific libs in search path
echo "%{_libdir}/mesa" > %{buildroot}%{_sysconfdir}/%{drivername}/pxpress-free.ld.so.conf
%ifarch x86_64
echo "%{_prefix}/lib/mesa" >> %{buildroot}%{_sysconfdir}/%{drivername}/pxpress-free.ld.so.conf
%endif
cat %{buildroot}%{_sysconfdir}/ld.so.conf.d/GL/%{ld_so_conf_file} >> %{buildroot}%{_sysconfdir}/%{drivername}/pxpress-free.ld.so.conf

# install ldetect-lst pcitable files for backports
sed -ne 's|^\s*FGL_ASIC_ID(\(0x....\)).*|\1|gp' common/lib/modules/fglrx/build_mod/fglrxko_pci_ids.h | tr '[:upper:]' '[:lower:]' | sort -u | sed 's,^.*$,0x1002\t\0\t"%{ldetect_cards_name}",' > pcitable.fglrx.lst
[ $(stat -c%s pcitable.fglrx.lst) -gt 500 ]
%if "%{ldetect_cards_name}" != ""
install -d -m755 %{buildroot}%{_datadir}/ldetect-lst/pcitable.d
gzip -c pcitable.fglrx.lst > %{buildroot}%{_datadir}/ldetect-lst/pcitable.d/40%{drivername}.lst.gz
%endif

install -d -m755 %{buildroot}%{_datadir}/ati
cat > %{buildroot}%{_datadir}/ati/amd-uninstall.sh <<EOF
#!/bin/bash
# parameters as per AMD: [--force | --dry-run]
dryrun=
while [ -n "\$*" ]; do
	case "\$1" in
	--dryrun)	dryrun="--test" ;;
	--force)	;;
	--preserve)	;;
	--quick)	;;
	--getUninstallVersion) exit 2 ;;
	*)		echo "Unknown option for \$0." >&2 ;;
	esac
	shift
done

# AMD documentation suggests doing rpm -V and use --force to override it,
# but it doesn't make sense with the update-alternatives setup, so we just
# check package presence.
pkgs=
rpm -q --quiet %{driverpkgname}             && pkgs="\$pkgs %{driverpkgname}"
rpm -q --quiet dkms-%{drivername}           && pkgs="\$pkgs dkms-%{drivername}"
rpm -q --quiet %{drivername}-control-center && pkgs="\$pkgs %{drivername}-control-center"
rpm -q --quiet %{drivername}-devel          && pkgs="\$pkgs %{drivername}-devel"
[ -n "\$pkgs" ] || { echo "The AMD proprietary driver is not installed." >&2; exit 1; }
urpme --auto \$dryrun \$pkgs || { echo "Failed to uninstall the AMD proprietary driver." >&2; exit 1; }
[ -n "\$dryrun" ] || echo "The AMD proprietary driver has been uninstalled."
EOF
chmod 0755 %{buildroot}%{_datadir}/ati/amd-uninstall.sh

# PowerXpress (switchable graphics)
# - path hardcoded into driver
install -d -m755 %{buildroot}%{_libdir}/fglrx
cat > %{buildroot}%{_libdir}/fglrx/switchlibGL <<EOF
#!/bin/sh

amd_target="%{_sysconfdir}/ld.so.conf.d/GL/%{ld_so_conf_file}"
intel_target="%{_sysconfdir}/%{drivername}/pxpress-free.ld.so.conf"

case \$1 in
amd)
	update-alternatives --set gl_conf "\$amd_target" >/dev/null
	ldconfig -X
	;;
intel)
	update-alternatives --set gl_conf "\$intel_target" >/dev/null
	ldconfig -X
	;;
query)
	case \$(readlink -f "%{_sysconfdir}/ld.so.conf.d/GL.conf") in
	\$amd_target)
		echo "amd"
		;;
	\$intel_target)
		echo "intel"
		;;
	*)
		echo "unknown"
		;;
	esac
	;;
esac
EOF
chmod 0755 %{buildroot}%{_libdir}/fglrx/switchlibGL

# It is not feasible to configure these separately with the alternatives
# system, so use the same script for both.
# Note: using a symlink here fails as the driver checks go+w without
# dereferencing the symlink.
cp -a %{buildroot}%{_libdir}/fglrx/switchlibGL %{buildroot}%{_libdir}/fglrx/switchlibglx

# unneeded to-be-removed files as per AMD
find %{buildroot} \( -name libSlotMaximizerAg.so -o -name libSlotMaximizerBe.so \) -print -delete
# not installed by AMD and not referenced elsewhere:
find %{buildroot} \( -name libamdsc64.so -o -name libamdsc32.so \) -print -delete

%pre -n %{driverpkgname}
# Handle alternatives-era /etc/ati directory
# It may confuse rpm due to it containing %config files
if [ -L %{_sysconfdir}/ati ]; then
	rm %{_sysconfdir}/ati
fi

%post -n %{driverpkgname}
# Migrate from pre-alternatives files
if [ ! -L %{_datadir}/applications/mandriva-amdcccle.desktop -a -e %{_datadir}/applications/mandriva-amdcccle.desktop ]; then
	rm -f %{_datadir}/applications/mandriva-amdcccle.desktop
fi

%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/ld.so.conf.d/GL/%{ld_so_conf_file} %{priority} \
	--slave %{_sysconfdir}/X11/XvMCConfig xvmcconfig %{_sysconfdir}/%{drivername}/XvMCConfig \
	--slave %{_libdir}/libAMDXvBA.cap %{_lib}AMDXvBA_cap %{_libdir}/%{drivername}/libAMDXvBA.cap \
%ifarch x86_64
	--slave %{_prefix}/lib/libAMDXvBA.cap libAMDXvBA_cap %{_libdir}/%{drivername}/libAMDXvBA.cap \
%endif
	--slave %{xorg_extra_modules} xorg_extra_modules %{ati_extdir}

# Alternative for PowerXpress intel (switchable graphics)
# This is a separate alternative so that this situation can be differentiated
# from standard intel configuration by tools (e.g. so that radeon driver won't
# be loaded despite fglrx not being configured anymore).
%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/pxpress-free.ld.so.conf 50

if [ "$(readlink -e %{_sysconfdir}/ld.so.conf.d/GL.conf)" = "%{_sysconfdir}/ld.so.conf.d/GL/ati-hd2000.conf" ]; then
	# Switch from the obsolete hd2000 branch:
	%{_sbindir}/update-alternatives --set gl_conf %{_sysconfdir}/ld.so.conf.d/GL/%{ld_so_conf_file}
fi
# When upgrading from alternatives setup, rpm may consider /etc/ati/atiogl.xml
# to exist due to the symlink, even when we remove it in %pre:
if [ -e %{_sysconfdir}/ati/atiogl.xml.rpmnew -a ! -e %{_sysconfdir}/ati/atiogl.xml ]; then
	mv %{_sysconfdir}/ati/atiogl.xml.rpmnew %{_sysconfdir}/ati/atiogl.xml
	echo "Moved %{_sysconfdir}/ati/atiogl.xml.rpmnew back to %{_sysconfdir}/ati/atiogl.xml."
fi

# Call /sbin/ldconfig explicitely due to alternatives
/sbin/ldconfig -X
%_post_service atieventsd
%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

# Ghost file created as suggested by AMD.
touch %{_sysconfdir}/ati/atiapfuser.blb

# Clear driver version numbers from amdpcsdb as suggested by AMD.
# (fixes version display in amdcccle after upgrade)
amdconfig --del-pcs-key=LDC,ReleaseVersion &>/dev/null || :
amdconfig --del-pcs-key=LDC,Catalyst_Version &>/dev/null || :

%posttrans -n %{driverpkgname}
# RPM seems to leave out the active /etc/fglrx* directory, likely due to
# it being confused with the /etc/ati symlink. We have to clean up ourself:
for dir in %{_sysconfdir}/fglrx %{_sysconfdir}/fglrx-hd2000; do
	if [ -d $dir ]; then
		for file in $dir/*; do
			case "$(basename $file)" in
			control | signature | logo_mask.xbm.example | logo.xbm.example)
				# non-config files, rpm would normally remove
				rm $file;;
			authatieventsd.sh | fglrxprofiles.csv | fglrxrc | atiogl.xml)
				# config files, check for modifications
				case "$(stat -c%s $file)" in
				545 | 838 | 2769 | 10224 | 11018)
					rm $file;;
				*)
					echo "Saving $file as %{_sysconfdir}/ati/$(basename $file).rpmsave."
					mv $file %{_sysconfdir}/ati/$(basename $file).rpmsave;;
				esac
				;;
			esac
		done
		[ $(ls -c $dir | wc -l) -eq 0 ] && rm -r $dir
	fi
done
true

%preun -n %{driverpkgname}
%_preun_service atieventsd

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/ld.so.conf.d/GL/%{ld_so_conf_file} ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/ld.so.conf.d/GL/%{ld_so_conf_file}
fi
if [ ! -f %{_sysconfdir}/%{drivername}/pxpress-free.ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/pxpress-free.ld.so.conf
fi
# Call /sbin/ldconfig explicitely due to alternatives
/sbin/ldconfig -X
%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%pre -n %{drivername}-control-center
# Handle alternatives-era directory,
# it may confuse rpm.
if [ -L %{_datadir}/ati ]; then
	rm %{_datadir}/ati
fi

%post -n %{drivername}-control-center
[ -d %{_datadir}/fglrx ] && rm -r %{_datadir}/fglrx
[ -d %{_datadir}/fglrx-hd2000 ] && rm -r %{_datadir}/fglrx-hd2000
true

%post -n %{drivername}-opencl
# explicit /sbin/ldconfig due to a non-standard library directory
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release} &&
/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} &&
/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} --force

# rmmod any old driver if present and not in use (e.g. by X)
rmmod fglrx > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all

# rmmod any old driver if present and not in use (e.g. by X)
rmmod fglrx > /dev/null 2>&1 || true

%clean
rm -rf %{buildroot}

%files -n %{driverpkgname}
%defattr(-,root,root)
%doc README.install.urpmi README.manual-setup
%doc README.8.980.upgrade.urpmi
# the documentation files are grossly out of date; the configuration options
# described in configure.html seem to be used by the driver, though, so it is
# packaged, while the other html files are not:
%doc common/usr/share/doc/fglrx/configure.html
%doc common/usr/share/doc/fglrx/LICENSE.TXT

%if "%{ldetect_cards_name}" != ""
%{_datadir}/ldetect-lst/pcitable.d/40%{drivername}.lst.gz
%endif

%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%dir %{_sysconfdir}/ld.so.conf.d/GL
%{_sysconfdir}/ld.so.conf.d/GL/ati.conf

%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/%{drivername}/XvMCConfig
%{_sysconfdir}/%{drivername}/pxpress-free.ld.so.conf

%dir %{_sysconfdir}/ati
%{_sysconfdir}/ati/control
%{_sysconfdir}/ati/signature
#config(noreplace) %{_sysconfdir}/ati/atiogl.xml
%{_sysconfdir}/ati/atiapfxx
%{_sysconfdir}/ati/atiapfxx.blb
%{_sysconfdir}/ati/atiapfxx.log
%{_sysconfdir}/ati/logo.xbm.example
%{_sysconfdir}/ati/logo_mask.xbm.example
%config %{_sysconfdir}/ati/authatieventsd.sh
%{_sysconfdir}/ati/amdpcsdb.default
%ghost %{_sysconfdir}/ati/atiapfuser.blb


%{_initrddir}/atieventsd

%{_sbindir}/atieventsd
%{_sbindir}/amdnotifyui
%{_sbindir}/atigetsysteminfo.sh

%{_bindir}/amdconfig
%{_bindir}/amdupdaterandrconfig
%{_bindir}/amdxdg-su
%{_bindir}/aticonfig
%{_bindir}/atiodcli
%{_bindir}/atiode
%{_bindir}/fgl_glxgears
%{_bindir}/fglrxinfo

%{xorg_libdir}/modules/drivers/fglrx_drv.so
%{xorg_libdir}/modules/linux/libfglrxdrm.so
%{xorg_libdir}/modules/amdxmm.*o
%{xorg_libdir}/modules/glesx.*o

%dir %{ati_extdir}
%{ati_extdir}/libglx.so

%{xorg_dridir}/fglrx_dri.so
%ifarch x86_64
%{xorg_dridir32}/fglrx_dri.so
%endif

%dir %{_libdir}/%{drivername}
%{_libdir}/%{drivername}/libGL.so.1
%{_libdir}/%{drivername}/libGL.so.1.*
%{_libdir}/%{drivername}/libaticalcl.so
%{_libdir}/%{drivername}/libaticaldd.so
%{_libdir}/%{drivername}/libaticalrt.so
%{_libdir}/%{drivername}/libatiuki.so.1*
%ifarch x86_64
%dir %{_prefix}/lib/%{drivername}
%{_prefix}/lib/%{drivername}/libGL.so.1
%{_prefix}/lib/%{drivername}/libGL.so.1.*
%{_prefix}/lib/%{drivername}/libaticalcl.so
%{_prefix}/lib/%{drivername}/libaticaldd.so
%{_prefix}/lib/%{drivername}/libaticalrt.so
%{_prefix}/lib/%{drivername}/libatiuki.so.1*
%endif

%{_libdir}/%{drivername}/libfglrx_dm.so.1*
%{_libdir}/%{drivername}/libatiadlxx.so
%{_libdir}/%{drivername}/libAMDXvBA.cap
%{_libdir}/%{drivername}/libAMDXvBA.so.1*
%{_libdir}/%{drivername}/libXvBAW.so.1*

# PowerXpress
%{_libdir}/fglrx/switchlibGL
%{_libdir}/fglrx/switchlibglx

%dir %{_datadir}/ati
%{_datadir}/ati/amd-uninstall.sh

%{_mandir}/man8/atieventsd.8*

%files -n %{drivername}-control-center -f amdcccle.langs
%defattr(-,root,root)
%doc common/usr/share/doc/amdcccle/*
%{_sysconfdir}/security/console.apps/amdcccle-su
%{_sysconfdir}/pam.d/amdcccle-su
%{_bindir}/amdcccle
%{_bindir}/amd-console-helper
%dir %{_datadir}/ati
%dir %{_datadir}/ati/amdcccle
%if %{amdbuild}
%{_iconsdir}/%{drivername}-amdcccle.xpm
%else
%{_miconsdir}/%{drivername}-amdcccle.png
%{_iconsdir}/%{drivername}-amdcccle.png
%{_liconsdir}/%{drivername}-amdcccle.png
%endif
%{_datadir}/applications/amdcccle.desktop
%{_datadir}/applications/amdccclesu.desktop
%if %{bundle_qt}
%dir %{_libdir}/%{drivername}-qt4
%{_libdir}/%{drivername}-qt4/libQtCore.so.4
%{_libdir}/%{drivername}-qt4/libQtGui.so.4
%{_datadir}/ati/%{_lib}
%endif

%files -n %{drivername}-devel
%defattr(-,root,root)
%{_libdir}/%{drivername}/libfglrx_dm.a
%{_libdir}/%{drivername}/libfglrx_dm.so
%{_libdir}/%{drivername}/libAMDXvBA.so
%{_libdir}/%{drivername}/libXvBAW.so
%dir %{_includedir}/GL
%{_includedir}/GL/*ATI.h
%dir %{_includedir}/ATI
%dir %{_includedir}/ATI/GL
%{_includedir}/ATI/GL/*.h
%{_libdir}/%{drivername}/libGL.so
%{_libdir}/%{drivername}/libatiuki.so
%ifarch x86_64
%{_prefix}/lib/%{drivername}/libGL.so
%{_prefix}/lib/%{drivername}/libatiuki.so
%endif

%files -n %{drivername}-opencl
%defattr(-,root,root)
%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%{_sysconfdir}/OpenCL/vendors/amdocl*.icd
%{_bindir}/clinfo
%{_libdir}/%{drivername}/libamdocl*.so
%{_libdir}/%{drivername}/libOpenCL.so.1
%ifarch x86_64
%{_prefix}/lib/%{drivername}/libamdocl*.so
%{_prefix}/lib/%{drivername}/libOpenCL.so.1
%endif

%files -n dkms-%{drivername}
%defattr(-,root,root)
%{_usrsrc}/%{drivername}-%{version}-%{release}


%changelog
* Mon Mar 07 2016 tmb <tmb> 15.302-4.mga5
+ Revision: 987232
- add missing __xg define on 32bit builds
- add buildfix for kernel 4.2 (ubuntu)
- add kernel 4.3 and 4.4 buildfixes (ubuntu)
- fix 'error: void value not ignored as it ought to be'
- update to Catalyst 15.12
- fix build with 4.1.3
- update to 15.20.1046 (Catatlyst 15.7, new hw support, official kernel 3.19 support)

* Tue Feb 03 2015 tmb <tmb> 14.501.1003-3.mga5.nonfree
+ Revision: 813118
- GPL-only symbol issue is now fixed
- fix build with kernel 3.19 (p13)

* Wed Dec 10 2014 tmb <tmb> 14.501.1003-1.mga5.nonfree
+ Revision: 802644
- fix filelist
- Catalyst 14.12 Omega (official xorg 1.16 support)

* Fri Oct 31 2014 tmb <tmb> 14.201-2.mga5.nonfree
+ Revision: 795040
- filter out 32bit requires

* Thu Oct 02 2014 tmb <tmb> 14.201-1.mga5.nonfree
+ Revision: 736243
- roll back to prerelease that actually supports x11-server 1.16

* Thu Sep 25 2014 tmb <tmb> 14.410-1.mga5.nonfree
+ Revision: 724703
- official 14.41 driver (opencl 2.0 support)

* Wed Sep 24 2014 tmb <tmb> 14.201-0.9.mga5.nonfree
+ Revision: 723622
- adapt to new kmod provides

* Tue Sep 23 2014 tmb <tmb> 14.201-0.8.mga5.nonfree
+ Revision: 722833
- fix build with kernel-3.17-rc6

* Sun Sep 21 2014 tmb <tmb> 14.201-0.4.mga5.nonfree
+ Revision: 701238
- fix up spec conversion mess

* Fri Sep 19 2014 tv <tv> 14.201-0.3.mga5.nonfree
+ Revision: 697354
- fix excludes (mga#14124)

* Tue Sep 16 2014 umeabot <umeabot> 14.201-0.2.mga5.nonfree
+ Revision: 679176
- Mageia 5 Mass Rebuild

  + tv <tv>
    - auto convert _exclude_files_from_autoreq
    - use %%global for req/prov exclude
    - autoconvert to new prov/req excludes
    - s/uggests:/Recommends:/

* Thu Sep 11 2014 tmb <tmb> 14.201-0.1.mga5.nonfree
+ Revision: 674739
- 14.201 (ubuntu prerelease, supports x11-server 1.16 and kernel 3.17)

* Mon Jun 09 2014 tv <tv> 14.010.1006-4.mga5.nonfree
+ Revision: 635267
- try rebuilding for xorg-1.16 (in case of hidden support...)

* Tue May 13 2014 tmb <tmb> 14.010.1006-3.mga5.nonfree
+ Revision: 622568
- rebuild with gcc 4.9

* Sun Apr 27 2014 tmb <tmb> 14.010.1006-2.mga5.nonfree
+ Revision: 618424
- fix build with kernel-3.14 (P12, AUR)

* Sun Apr 27 2014 tmb <tmb> 14.010.1006-1.mga5.nonfree
+ Revision: 618408
- update to 14.10.1006 (Catalyst 14.4)

* Tue Apr 15 2014 tv <tv> 13.350.1005-2.mga5.nonfree
+ Revision: 614325
- rebuild for new xserver

* Tue Feb 04 2014 tmb <tmb> 13.350.1005-1.mga5.nonfree
+ Revision: 582515
- drop merged patches
- update to Catalyst 14.1 beta (xorg 1.15 support)

* Thu Dec 19 2013 tmb <tmb> 13.251-1.mga4.nonfree
+ Revision: 558928
- update to 13.251 (Catalyst 13.12)

* Sun Dec 08 2013 tmb <tmb> 13.250.18-4.mga4.nonfree
+ Revision: 555881
- restore old install path as its hardcoded in service_harddrake, making it break installs (#11932)

* Fri Dec 06 2013 tmb <tmb> 13.250.18-3.mga4.nonfree
+ Revision: 555659
- fix build with new mesa
- rebuild for new mesa
- install dkms module in kernel/drivers/gpu/drm

* Sat Nov 23 2013 tmb <tmb> 13.250.18-2.mga4.nonfree
+ Revision: 552514
- update to Catalyst 13.11 beta 9.4

* Sat Oct 26 2013 tmb <tmb> 13.250.18-1.mga4.nonfree
+ Revision: 547144
- update to 13.25.18 (Catalyst 13.11-beta6)

* Mon Oct 14 2013 tmb <tmb> 13.200.16-1.mga4.nonfree
+ Revision: 496726
- update to 13.11-beta1
- fix build with kernel-3.12

* Wed Aug 21 2013 tmb <tmb> 13.200.11-0.1.mga4.nonfree
+ Revision: 469036
- update to 13.8 beta2

* Sun Aug 11 2013 tmb <tmb> 13.200.5-0.6.mga4.nonfree
+ Revision: 465460
- rebuild with new gcc

* Thu Aug 08 2013 tmb <tmb> 13.200.5-0.5.mga4.nonfree
+ Revision: 464786
- gcc-4.8.2 build

* Thu Aug 08 2013 tmb <tmb> 13.200.5-0.4.mga4.nonfree
+ Revision: 464781
- really apply the /proc/ati fix

* Thu Aug 08 2013 tmb <tmb> 13.200.5-0.3.mga4.nonfree
+ Revision: 464772
- fix /proc/ati permissions (mga #10944)

* Thu Aug 01 2013 tmb <tmb> 13.200.5-0.2.mga4.nonfree
+ Revision: 462366
- new gcc-4.8.2 build

* Thu Aug 01 2013 tmb <tmb> 13.200.5-0.1.mga4.nonfree
+ Revision: 462356
- update to Catalyst 13.8-beta1 (official kernel-3.10 support)

* Thu Aug 01 2013 tmb <tmb> 13.101-0.5.mga4.nonfree
+ Revision: 462264
- force gcc 4.8.2 build

* Thu Aug 01 2013 tmb <tmb> 13.101-0.4.mga4.nonfree
+ Revision: 462232
- test build with gcc-4.8.2

* Mon Jul 15 2013 tmb <tmb> 13.101-0.3.mga4.nonfree
+ Revision: 454774
- fix build with 3.10 series kernels (P11, gentoo)

* Sun Jun 02 2013 tmb <tmb> 13.101-0.2.mga4.nonfree
+ Revision: 434769
- bump videodrv_abi to 14

* Thu May 30 2013 tv <tv> 13.101-0.1.mga4.nonfree
+ Revision: 433345
- new release

* Thu May 30 2013 tv <tv> 12.104-4.mga4.nonfree
+ Revision: 433132
- submit to nonfree/release

* Fri May 24 2013 tv <tv> 12.104-3.mga4.nonfree
+ Revision: 426106
- rebuild with xserver-1.14

* Wed May 15 2013 tmb <tmb> 12.104-2.mga3.nonfree
+ Revision: 413288
- fix atieventsd service so it actually starts
- adapt for kernel efi_enabled interface change
 (ati #741, fixes atleast mga #9887, #10033)

* Wed Apr 24 2013 tmb <tmb> 12.104-1.mga3.nonfree
+ Revision: 411112
- update to 12.104 (catalyst 13.4, official kernel 3.8 support)
- drop obsolete patches (P11-P13)
- update filelists

  + anssi <anssi>
    - Fix mdv reference in .spec comment
    - Add ldetect card name for mga2 backports

* Sun Jan 20 2013 tmb <tmb> 9.012-1.mga3.nonfree
+ Revision: 390158
- update to 9.012 (Catalyst 13.1, official x11-server 1.13 support)

* Thu Jan 10 2013 tmb <tmb> 9.010.8-5.mga3.nonfree
+ Revision: 344786
- fix build with kernel-3.8 (P13, ubuntu)

* Fri Dec 07 2012 tmb <tmb> 9.010.8-4.mga3.nonfree
+ Revision: 327692
- fix build with 3.7 series kernels (P12)

* Fri Dec 07 2012 tmb <tmb> 9.010.8-3.mga3.nonfree
+ Revision: 327677
- fix kernel 3.7 version check (P11)

* Fri Dec 07 2012 tmb <tmb> 9.010.8-2.mga3.nonfree
+ Revision: 327652
- update to 12.11-beta11

* Mon Nov 19 2012 tmb <tmb> 9.010.8-1.mga3.nonfree
+ Revision: 319557
- update to 12.11-beta8

* Wed Oct 31 2012 tmb <tmb> 9.010-1.mga3.nonfree
+ Revision: 311759
- update to 9.01 (catalyst 12.11 beta) for proper x11-server 1.13 support

* Thu Oct 25 2012 tmb <tmb> 9.002-1.mga3.nonfree
+ Revision: 309911
- update to 9.002 (catalyst 12.10)

* Sat Oct 06 2012 tmb <tmb> 9.000-3.mga3.nonfree
+ Revision: 303076
- swith to ubuntu fglrx-9.000 pre-release tarball that actually supports xorg-server 1.13

* Sun Sep 30 2012 tmb <tmb> 9.000-2.mga3.nonfree
+ Revision: 300688
- update to new 9.00 beta released 2012-09-26
- fix ldetect_cards_name to match current ldetect-lst

* Fri Sep 14 2012 tmb <tmb> 9.000-1.mga3.nonfree
+ Revision: 293922
- drop P15 (kernel-3.5 buildfix, merged)
- update to 9.00 (Catalyst 12.9)

* Fri Sep 07 2012 tv <tv> 8.982-2.mga3.nonfree
+ Revision: 289362
- rebuild for new xserver

* Sun Aug 19 2012 tmb <tmb> 8.982-1.mga3.nonfree
+ Revision: 282081
- update to 8.982 (Catalyst 12.8)
- drop merged patches (P13, P14)

* Sat Jul 28 2012 tmb <tmb> 8.980-3.mga3.nonfree
+ Revision: 275085
- fix build with 3.5 series kernels (P15, from Ubuntu)

* Sun Jul 01 2012 tmb <tmb> 8.980-2.mga3.nonfree
+ Revision: 266190
- update to Catalyst 12-6 final

* Wed Jun 06 2012 tmb <tmb> 8.980-1.mga3.nonfree
+ Revision: 256554
- fix filelist
- fix version in readme.upgrade.urpmi
- update README.upgrade.urpmi with changed hw support info
- update to 8.98 (Catalyst 12.6beta)
  * supports x11-server 1.12
  * NOTE! supports only HD5xxx and newer cards
- drop P11, P12 (merged)

  + anssi <anssi>
    - add empty /etc/ati/atiapfuser.blb as per AMD suggestion

* Mon Jun 04 2012 tv <tv> 8.961-6.mga3.nonfree
+ Revision: 253931
- bump release
- bump X11 ABI require

* Sat Jun 02 2012 tmb <tmb> 8.961-5.mga3.nonfree
+ Revision: 253475
- change usage from cpu_possible_map() to for_each_possible_cpu() so it really works with kernel-3.4

* Wed May 30 2012 tv <tv> 8.961-4.mga3.nonfree
+ Revision: 250057
- rebuild for new X.org server

* Mon May 28 2012 tmb <tmb> 8.961-3.mga3.nonfree
+ Revision: 248541
- fix build on i586 (P14)

* Sun May 27 2012 tmb <tmb> 8.961-2.mga3.nonfree
+ Revision: 247581
- fix build with 3.4 series kernels (P13)

* Sat Apr 28 2012 tmb <tmb> 8.961-1.mga2.nonfree
+ Revision: 233865
- update to 8.961 (Catalyst 12-4)

  + anssi <anssi>
    - adapt for mga2 ldetect-lst in amdbuild mode

* Tue Apr 03 2012 tmb <tmb> 8.951-1.mga2.nonfree
+ Revision: 228069
- update to 8.951 (12-3), adds support for Southern Islands (HD7xxx)

* Fri Mar 09 2012 fwang <fwang> 8.950-1.mga2.nonfree
+ Revision: 221873
- new version 12-2

* Thu Mar 01 2012 tmb <tmb> 8.930-2.mga2.nonfree
+ Revision: 216537
- fix build on i586 due to fpu bugfix changes introduced in 3.2.8 (P11)

* Thu Mar 01 2012 tmb <tmb> 8.930-1.mga2.nonfree
+ Revision: 216519
- update to 8.93 (Catalyst 12.1)

* Thu Dec 15 2011 fwang <fwang> 8.920-1.mga2.nonfree
+ Revision: 181998
- new version 8.92

  + anssi <anssi>
    - fix ATI reference in generate-fglrx-spec-from-svn.sh

* Wed Nov 30 2011 anssi <anssi> 8.911-2.mga2.nonfree
+ Revision: 174610
- add fglrx-opencl package for the new OpenCL libraries
- replace ATI references with AMD where appropriate
- add amdconfig symlink for aticonfig as requested by AMD

* Sun Nov 27 2011 tmb <tmb> 8.911-1.mga2.nonfree
+ Revision: 173020
- fix filelists

  + fwang <fwang>
    - new version 8.911

* Fri Nov 04 2011 fwang <fwang> 8.902-1.mga2.nonfree
+ Revision: 162621
- new version 11.10 (8.902)

* Wed Nov 02 2011 fwang <fwang> 8.892-1.mga2.nonfree
+ Revision: 161248
- new version 8.892
- new version 8.881
- fix init script
- new version 8.872

* Sun Jul 17 2011 anssi <anssi> 8.861-2.mga2.nonfree
+ Revision: 125426
- fix DKMS build with kernel 2.6.39+ (fglrx-2.6.39.patch)

* Tue Jun 28 2011 ahmad <ahmad> 8.861-1.mga2.nonfree
+ Revision: 114974
- Update to 11.6 aka 8.861

* Tue May 24 2011 anssi <anssi> 8.850-3.mga1
+ Revision: 100287
- do not use a symlink for PowerXpress ld.so.conf, it causes an error in
  switchlibfoo scripts (reported by Wiliam Souza)
- do not use a symlink for switchlibglx, it causes an error in fglrx driver
  when trying to do a PowerXpress switch (reported by Wiliam Souza)
- provide ATI libraries also in PowerXpress Intel mode, while using Mesa
  libs for libGL
- clear version numbers from configuration database on installation as
  suggested by AMD (fixes incorrect version in amdcccle after upgrade)
- use -X on postun ldconfig call
- remove old comment
- update amd-uninstall.sh script with new options

* Sun May 22 2011 anssi <anssi> 8.850-2.mga1
+ Revision: 100206
- run ldconfig after alternatives call in PowerXpress switcher script

* Fri May 13 2011 anssi <anssi> 8.850-1.mga1
+ Revision: 97724
- new version 11.5 aka 8.85
  o fixes intel/fglrx switching on PowerXpress
  o fixes some cases of suspend not working

* Sat Apr 30 2011 anssi <anssi> 8.841-1.mga1
+ Revision: 93515
- final 8.841 aka 11.4

* Sun Apr 17 2011 anssi <anssi> 8.840-3.mga1
+ Revision: 87413
- disable conflicts on videodrv ABI, as it may cause X server to be
  uninstalled instead
- remove references to removed xgamma
- remove now unneeded modprobe.preload.d and modprobe.d entries
- add simple uninstaller script used by the ati binaries

* Sun Apr 17 2011 anssi <anssi> 8.840-2.mga1
+ Revision: 87386
- remove extra alternatives slave mistakenly left after mga cleanup

* Sun Apr 03 2011 ahmad <ahmad> 8.840-1.mga1
+ Revision: 79916
- update to 8.840 (using an Ubuntu orig.gz)
- drop kernel-2.6.38 patch, not needed

* Sat Apr 02 2011 ahmad <ahmad> 8.831.2-2.mga1
+ Revision: 79802
- add patch to fix building the module with kernel-2.6.38 series

* Sat Apr 02 2011 ahmad <ahmad> 8.831.2-1.mga1
+ Revision: 79744
- update to 8.831.2 aka 11.3
- fglrx_gamma isn't available, so comment out its bits in the spec
- bump videodrv_abi to 10
- change the xserver-abi conflicts back to '+ 1'

* Tue Mar 08 2011 ahmad <ahmad> 8.821-3.mga1
+ Revision: 66360
- since X Server 1.10 ABI is now 10 (upstream jumped from 8 to 10), adapt the
  x11-server ABI conflicts to that case

* Thu Feb 24 2011 ahmad <ahmad> 8.821-2.mga1
+ Revision: 58195
- drop old/unneded scriptlest, obsoletes and conflicts
- imported package fglrx


* Sat Feb 19 2011 Anssi Hannula <anssi@mandriva.org> 8.821-1mdv2011.0
+ Revision: 638706
- new version 8.821 aka 11.2

* Thu Jan 27 2011 Anssi Hannula <anssi@mandriva.org> 8.812-1
+ Revision: 633433
- new version 8.812 aka 11.1
- drop patches for issues fixed upstream
- rediff custom-kernel-dir.patch

* Sun Dec 19 2010 Anssi Hannula <anssi@mandriva.org> 8.801-3mdv2011.0
+ Revision: 623167
- fix name of the 2.6.37 support patch

* Sun Dec 19 2010 Anssi Hannula <anssi@mandriva.org> 8.801-2mdv2011.0
+ Revision: 623150
- add patch to fix dkms build on 2.6.37 (mdvbz #61823)
- adapt for 2010.2

* Fri Dec 17 2010 Oden Eriksson <oeriksson@mandriva.com> 8.801-1mdv2011.0
+ Revision: 622548
- 10.12, 8.801

* Thu Nov 18 2010 Anssi Hannula <anssi@mandriva.org> 8.791-1mdv2011.0
+ Revision: 598736
- new version 8.791 aka 10.11
- clarify atibuild conditional statement
- hardcode videodrv abi as the driver is precompiled

* Thu Nov 11 2010 Thierry Vignaud <tv@mandriva.org> 8.783-2mdv2011.0
+ Revision: 595848
- require xorg server with proper ABI

* Fri Oct 22 2010 Anssi Hannula <anssi@mandriva.org> 8.783-1mdv2011.0
+ Revision: 587534
- new version 8.783 aka 10.10
- rediff make_sh-custom-kernel-dir.patch

* Tue Oct 12 2010 Anssi Hannula <anssi@mandriva.org> 8.780-1mdv2011.0
+ Revision: 585045
- new 10.10 prerelease with X.org server 1.9 support (from Ubuntu)
- remove CVE-2010-3081 patch, fixed upstream
- rediff affected patches

* Sat Oct 02 2010 Thomas Backlund <tmb@mandriva.org> 8.771-3mdv2011.0
+ Revision: 582570
- Add compatibility with 2.6.36 kernels (P11, from Ubuntu)
- Use CFLAGS_MODULE together with MODFLAGS in make.sh (P12, from Ubuntu)

* Tue Sep 21 2010 Anssi Hannula <anssi@mandriva.org> 8.771-2mdv2011.0
+ Revision: 580368
- apply CVE-2010-3081 64bit security fix from the kernel commit c41d68a5
  locally (also fixes build on kernels with c41d68a5 applied)
- rediff custom-kernel-dir.patch

* Fri Sep 17 2010 Anssi Hannula <anssi@mandriva.org> 8.771-1mdv2011.0
+ Revision: 579247
- new version 10.9 aka 8.771
- switch to the upstream amdxdg-su wrapper for the superuser control
  center mode as it now works well

* Sat Sep 04 2010 Anssi Hannula <anssi@mandriva.org> 8.762-3mdv2011.0
+ Revision: 575801
- new version 8.762 aka 10.8

* Thu Aug 12 2010 Anssi Hannula <anssi@mandriva.org> 8.753-2mdv2011.0
+ Revision: 569320
- fix XvBA on x86_64 (.cap file was being loaded from a wrong place, so
  compatibility symlink was added; reported by Balcaen John)
- provide pcitable.d files on 2010.1 as well, marking cards as vesa/fglrx

* Thu Aug 12 2010 Anssi Hannula <anssi@mandriva.org> 8.753-1mdv2011.0
+ Revision: 569194
- new version 8.753 aka 10.7
- drop 2.6.34.patch, fixed upstream

* Fri Jul 09 2010 Anssi Hannula <anssi@mandriva.org> 8.741-1mdv2011.0
+ Revision: 549894
- new version 8.741 aka 10.6
- remove fglrx-2.6.33.patch, fixed upstream

* Fri Jun 11 2010 Anssi Hannula <anssi@mandriva.org> 8.732-1mdv2010.1
+ Revision: 547892
- new version 8.732 aka 10.5
- allow specifying repository url for generate-fglrx-spec-from-svn.sh
- version 8.723 aka 10.4
  o this is older than the previous version, but contains support for
    older X.org servers and is therefore suitable for backporting
- fix incorrect categories in menu entry files (issue reported by St?\195?\169phane)

* Wed May 05 2010 Anssi Hannula <anssi@mandriva.org> 8.723.1-6mdv2010.1
+ Revision: 542231
- add a modprobe.preload.d entry loading the module before X server
- blacklist radeon module in modprobe.d entry as udev will now otherwise
  load it

* Sat May 01 2010 Thomas Backlund <tmb@mandriva.org> 8.723.1-5mdv2010.1
+ Revision: 541442
- fix build with 2.6.34 series kernels (from Charles A Edwards)

* Wed Apr 28 2010 Anssi Hannula <anssi@mandriva.org> 8.723.1-4mdv2010.1
+ Revision: 540653
- add alternatives slave for libAMDXvBA.cap (fixes load of XvBA)
- update version info in description (this driver is actually newer than
  10.4, i.e. not a prerelease after all)

* Tue Apr 27 2010 Anssi Hannula <anssi@mandriva.org> 8.723.1-3mdv2010.1
+ Revision: 539736
- do not require qt4 libs in the main package (reported by Christophe
  Fergeau)
  o this allows installing the driver without installing qt4 libraries
  o without qt4 libraries DisplayLink failure notifications won't be shown
  o to get the notifications, users can install fglrx-control-center package

* Tue Apr 27 2010 Christophe Fergeau <cfergeau@mandriva.com> 8.723.1-2mdv2010.1
+ Revision: 539576
- rebuild so that shared libraries are properly stripped again

* Wed Apr 21 2010 Anssi Hannula <anssi@mandriva.org> 8.723.1-1mdv2010.1
+ Revision: 537743
- new 10.4 prerelease 8.723.1 from ubuntu
- fix module load on 32-bit 2.6.33+ systems (modified 2.6.33.patch)

* Tue Mar 30 2010 Anssi Hannula <anssi@mandriva.org> 8.721-1mdv2010.1
+ Revision: 528938
- new version 8.721 (10.4 prerelease from Ubuntu)
  o includes X.org server 1.7 support
- call ldconfig with -X parameter
- adapt file lists
- rediff fglrx-2.6.33.patch

* Tue Mar 30 2010 Anssi Hannula <anssi@mandriva.org> 8.712-1mdv2010.1
+ Revision: 528935
- new version 8.712 aka 10.3
- fix dkms build as non-root user
- fix false smp detection when running on smp kernel
- remove /tmp/AtiXUEvent* before starting atieventsd (fixes bug #57291)

* Thu Feb 25 2010 Anssi Hannula <anssi@mandriva.org> 8.702-1mdv2010.1
+ Revision: 511385
- new version 10.2 aka 8.702
- generalize requires_exceptions on libati*.so.* to avoid future surprises

* Fri Jan 29 2010 Anssi Hannula <anssi@mandriva.org> 8.690-3mdv2010.1
+ Revision: 498068
- call __cmpxchg with constant size argument on 2.6.33+ (2.6.33.patch
  modified, reported by Charles A Edwards)

* Thu Jan 28 2010 Anssi Hannula <anssi@mandriva.org> 8.690-2mdv2010.1
+ Revision: 497792
- add requires_exceptions on libatiuki.so.1 (Charles A Edwards)

* Thu Jan 28 2010 Anssi Hannula <anssi@mandriva.org> 8.690-1mdv2010.1
+ Revision: 497689
- new version 8.69 aka 10.1
- drop 2.6.32.patch, applied upstream
- add 2.6.33+ support (2.6.33.patch, fixes #57259)
- custom libdri.so has been dropped upstream
- do not package most of the very obsolete documentation (bug #57139)

* Fri Jan 08 2010 Anssi Hannula <anssi@mandriva.org> 8.681-3mdv2010.1
+ Revision: 487448
- fix dkms build on 2.6.32+ (fixes #56693, 2.6.32.patch from Ubuntu)

* Sat Dec 19 2009 Anssi Hannula <anssi@mandriva.org> 8.681-1mdv2010.1
+ Revision: 480058
- remove Mandriva 2006.0 support (this can be readded if still actually
  needed, please contact us in such a case)
- new version 8.681 aka 9.12
- use now-bundled QT4 libraries on old distributions as needed

* Sat Nov 21 2009 Anssi Hannula <anssi@mandriva.org> 8.671-1mdv2010.1
+ Revision: 468576
- add libxtst-devel as buildrequires (now needed on cooker due to headers
  having been moved away from x11 proto packages)
- use the new upstream desktop files instead of providing our own
- generate pcitable files on cooker as well in order to catch errors
  (they are still not really installed on cooker, just when backporting)
- new version 8.671 aka 9.11
- add a comment in .spec reminding to update ldetect-lst

* Fri Nov 06 2009 Anssi Hannula <anssi@mandriva.org> 8.661-2mdv2010.1
+ Revision: 461590
- rebuild due to a missing changelog entry for the previous release

* Fri Nov 06 2009 Anssi Hannula <anssi@mandriva.org> 8.661-1mdv2010.1
+ Revision: 461252
- provide a pcitable.d file in backported packages, so that XFdrake sees
  the installed fglrx driver as able to drive the graphics card even if
  ldetect-lst package does not know it
- new version 9.10 aka 8.661
- adapt for upstream changes in xorg targets
- drop rt-compat.patch, affected code has been removed
- rediff make_sh-custom-kernel-dir.patch
- add missing atibuild conditionals into package descriptions

* Sat Sep 19 2009 Anssi Hannula <anssi@mandriva.org> 8.650-1mdv2010.0
+ Revision: 444730
- new version 9.9 aka 8.65
- drop fglrx-reenable-acpi-2.6.29.patch, now unneeded
- replace fgl_glxgears-includes.patch with an include flag

* Wed Aug 19 2009 Anssi Hannula <anssi@mandriva.org> 8.640-1mdv2010.0
+ Revision: 418160
- new version 8.64 aka 9.8
- automatically append 0 to two-decimal upstream version numbers
- drop 2.6.29 and 2.6.30 patches, fixed upstream
- re-enable ACPI notifications on 2.6.29+ (reenable-acpi-2.6.29.patch;
  ATI "fixed" the ACPI headers issue by removing the notification support
  on 2.6.29+; however, our kernel-devel packages contain the necessary
  headers, so reimplement our previous 2.6.29-fixes.patch on top of
  current fglrx)
- fix unexpanded macros in descriptions in atibuild mode

* Wed Aug 05 2009 Anssi Hannula <anssi@mandriva.org> 8.632-2mdv2010.0
+ Revision: 410235
- do not use /proc for probing kernel info to avoid running kernel
  affecting the build (make_sh-no-proc-probe.patch and changes to the
  make command)
- define target uname_a to "none" to prevent make.sh using "uname -a" to
  determine whether target kernel is SMP, instead using the target kernel
  configuration to determine it
- support custom kernel build directories again
  (make_sh-custom-kernel-dir.patch) and use that feature with dkms
- fix failing module load on 2.6.30+ 32-bit SMP kernels due to missing
  symbol flush_tlb_page (2.6.30-smp.patch, reported by Shlomi Fish)

* Tue Jul 28 2009 Anssi Hannula <anssi@mandriva.org> 8.632-1mdv2010.0
+ Revision: 402383
- new version 8.632 aka 9.7
- show advertised version (9.7) in descriptions

* Fri Jul 17 2009 Anssi Hannula <anssi@mandriva.org> 8.620-2mdv2010.0
+ Revision: 396704
- allow redistributing .spec file with MIT license as per AMD request
  (Colin Guthrie, Luiz Fernando Capitulino, and Thomas Backlund agreed)
- clean spec
- fix license tag
- fix missing dot from description
- remove executable permission from headers
- tag language files of fglrx-control-center
- use more wildcards in %%install
- move everything except extensions out from /usr/lib/fglrx/xorg
- fix extraneous ghost files on 2009.1+
- fix backportability
- add copyright doc to fglrx-control-center
- drop compatibility symlinks from /usr/X11R6, it seems the code finally
  supports /usr/lib/dri
- clean up old buildrequires

* Wed Jul 01 2009 Thomas Backlund <tmb@mandriva.org> 8.620-1mdv2010.0
+ Revision: 391139
- add patch7 to better support realtime preempt (Gentoo)
- update patch6 based on Gentoo fixes, and fix it to apply cleanly (2.6.30 buildfix)
- fix patch5 to apply cleanly (2.6.29 buildfix)
- update to Catalyst 9.6 (8.620)

* Tue Jun 30 2009 Thomas Backlund <tmb@mandriva.org> 8.600-3mdv2010.0
+ Revision: 390981
- rediff patch5 to apply cleanly
- fix build with 2.6.30 series kernels

* Mon Apr 13 2009 Anssi Hannula <anssi@mandriva.org> 8.600-2mdv2009.1
+ Revision: 366537
- adapt for dropped alternatives on /usr/bin/Xorg

* Wed Apr 01 2009 Anssi Hannula <anssi@mandriva.org> 8.600-1mdv2009.1
+ Revision: 363380
- add notification of dropped support, shown during upgrade of the package
- new version (8.600)
  o this is the special version AMD provided for Ubuntu Jaunty which
  includes X.org server 1.6 support (the license allows repackaging)
  o this version only supports r600 and newer chipsets (HD2000 onwards)

* Sat Mar 21 2009 Anssi Hannula <anssi@mandriva.org> 8.582-6mdv2009.1
+ Revision: 359879
- remove unneeded hack

* Thu Mar 19 2009 Ander Conselvan de Oliveira <ander@mandriva.com> 8.582-5mdv2009.1
+ Revision: 357792
- ensure the alternatives links are created if its current state is manual

* Mon Mar 16 2009 Ander Conselvan de Oliveira <ander@mandriva.com> 8.582-4mdv2009.1
+ Revision: 356061
- Use alternative X server Xorg 1.5

* Mon Feb 23 2009 Thomas Backlund <tmb@mandriva.org> 8.582-3mdv2009.1
+ Revision: 344323
- fix location of acpica headers so it will build with 2.6.29 series kernels

  + Anssi Hannula <anssi@mandriva.org>
    - use patch fuzz 2 in ati installer mode
    - additional comments in .spec
    - fix build on 2008.1 and earlier

* Sun Feb 22 2009 Anssi Hannula <anssi@mandriva.org> 8.582-2mdv2009.1
+ Revision: 343808
- hack around an error in 2.6.29-fixes.patch that caused build failure
  on earlier kernels

* Sat Feb 21 2009 Anssi Hannula <anssi@mandriva.org> 8.582-1mdv2009.1
+ Revision: 343732
- br libxp-devel
- new version 8.582 aka 9.2

  + Luiz Fernando Capitulino <lcapitulino@mandriva.com>
    - Quick-and-dirty fix to make fglrx compile on 2.6.29-rc

* Mon Feb 02 2009 Anssi Hannula <anssi@mandriva.org> 8.573-1mdv2009.1
+ Revision: 336504
- new version 8.573 aka 9.1

* Sat Dec 20 2008 Anssi Hannula <anssi@mandriva.org> 8.561-1mdv2009.1
+ Revision: 316488
- new version 8.561 aka 8.12
- drop uname_r patch, use the new upstream solution

* Sat Nov 29 2008 Colin Guthrie <cguthrie@mandriva.org> 8.552-2mdv2009.1
+ Revision: 308110
- Hopefully fix xserver 1.5 libglx.so inclusion

  + Anssi Hannula <anssi@mandriva.org>
    - use X.org server 1.5 compatible driver variant on cooker

* Sat Nov 15 2008 Anssi Hannula <anssi@mandriva.org> 8.552-1mdv2009.1
+ Revision: 303545
- new version 8.552 aka 8.11
- drop 2.6.27 support patch, applied upstream

* Sun Nov 02 2008 Anssi Hannula <anssi@mandriva.org> 8.542-2mdv2009.1
+ Revision: 299202
- provide XvMCConfig file so that MPEG/2 acceleration (UVD2) is enabled
  automatically on programs using libXvMCW

* Sun Oct 19 2008 Anssi Hannula <anssi@mandriva.org> 8.542-1mdv2009.1
+ Revision: 295257
- new version 8.542 aka 8.10
- rediff uname_r patch

* Sun Oct 12 2008 Anssi Hannula <anssi@mandriva.org> 8.532-1mdv2009.1
+ Revision: 292944
- 8.532 aka 8.9
  o Driver now includes its own libdri.so; therefore added additional
    manual configuration instructions for 2008.1 and older releases due
    to libdri.so only being handled by alternatives since 2009.0.
    Providing this package in general-purpose pre-2009.0 repositories is
    not recommended.
- rediff 2.6.27 support patch

* Sun Aug 31 2008 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 8.522-3mdv2009.0
+ Revision: 277752
- Really fix fglrx build for Linux 2.6.27

* Thu Aug 28 2008 Luiz Fernando Capitulino <lcapitulino@mandriva.com> 8.522-2mdv2009.0
+ Revision: 277040
- Fix fglrx build for 2.6.27-rc

* Mon Aug 25 2008 Anssi Hannula <anssi@mandriva.org> 8.522-1mdv2009.0
+ Revision: 275718
- new version 8.8 aka 8.522
- drop now unneeded 2.6.26 support patch
- update file list
- add super-user mode menu entry for amdcccle, using more robust
  consolehelper instead of amdxdg-su which upstream created for the
  purpose

* Sun Aug 10 2008 Anssi Hannula <anssi@mandriva.org> 8.512-2mdv2009.0
+ Revision: 270241
- adapt for libdri.so handled by alternatives

* Thu Aug 07 2008 Ander Conselvan de Oliveira <ander@mandriva.com> 8.512-1mdv2009.0
+ Revision: 267038
- Update to version 8.512 (aka Catalyst 8.7)
  Included Gentoo patch to compile against 2.6.26 (Gentoo bug #232609)

* Thu Jul 10 2008 Olivier Blin <oblin@mandriva.com> 8.501-3mdv2009.0
+ Revision: 233211
- conditionally fix build on 2.6.26 (patch from Ubuntu #239967, with some space cleaning)

* Fri Jun 20 2008 Anssi Hannula <anssi@mandriva.org> 8.501-2mdv2009.0
+ Revision: 227323
- restore calls to /sbin/ldconfig, they are there due to alternatives and
  filetriggers do not handle them

* Thu Jun 19 2008 Anssi Hannula <anssi@mandriva.org> 8.501-1mdv2009.0
+ Revision: 226978
- add a custom CLEAN command for dkms to stop it from complaining about
  bad exit status
- adapt to reverted /usr/X11R6 changes on cooker
- 8.501 aka 8.6
- update filelist
- fglrx_gamma: fix underlinking (fix-underlinking.patch)
- use %%ldflags on cooker for fglrx_tools
- import generate-fglrx-spec-from-svn.sh for generating fglrx.spec for
  use within AMD installer archive

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Thu May 29 2008 Anssi Hannula <anssi@mandriva.org> 8.493.1-1mdv2009.0
+ Revision: 212852
- 8.493.1 aka 8.5
- adapt to X11 directory changes of cooker

* Wed May 07 2008 Anssi Hannula <anssi@mandriva.org> 8.476-3mdv2009.0
+ Revision: 202692
- readd 32-bit dri compatibility directories and symlink on x86_64

* Tue May 06 2008 Anssi Hannula <anssi@mandriva.org> 8.476-2mdv2009.0
+ Revision: 201797
- drop /usr/X11R6/ dri symlink from cooker, now handled in
  x11-server-common

* Fri Apr 18 2008 Anssi Hannula <anssi@mandriva.org> 8.476-1mdv2009.0
+ Revision: 195718
- new version (8.476 aka 8.4)
- ensure correct version with ati-packager-helper.sh on non-atibuild
  builds
- suggests acpid for atieventsd
- fix authfile locations in authatieventsd.sh for Mandriva XDM and KDM,
  preventing atieventsd from working properly (partially fixes #33095)
- longer timeout for fglrx driver check in atieventsd initscript
  (see #33095)
- better timeout handling in fglrx check of atieventsd initscript

* Tue Apr 01 2008 Anssi Hannula <anssi@mandriva.org> 8.471-3mdv2008.1
+ Revision: 191501
- add versioned requires on kernel module on 2008.1

* Wed Mar 26 2008 Anssi Hannula <anssi@mandriva.org> 8.471-2mdv2008.1
+ Revision: 190341
- do not use alternatives for amdcccle desktop file (fixes #39200)
- amdpcsdb.default is not a config file
- control-center subpackage requires the main package

* Sat Mar 08 2008 Anssi Hannula <anssi@mandriva.org> 8.471-1mdv2008.1
+ Revision: 182051
- new version 8.3 aka 8.471 aka 8.47.3
- now using the ati-packager-helper.sh versioning
- update comments

* Thu Feb 14 2008 Anssi Hannula <anssi@mandriva.org> 8.45.5-1mdv2008.1
+ Revision: 168540
- new version
- drop empty fields from initscript
- exclude unused patches from ati-packager.sh build
- use ati reported version in ati-packager.sh builds
- change distsuffix of ati-packager.sh builds to amd.mdv

* Sun Jan 20 2008 Anssi Hannula <anssi@mandriva.org> 8.45.2-1mdv2008.1
+ Revision: 155387
- new version
- fix ati-packager.sh build
- use automatic detection when no distroversion is selected in
  ati-packager.sh
- restore menu on 2006.0 builds

  + Thierry Vignaud <tv@mandriva.org>
    - drop old menu

* Sun Dec 30 2007 Anssi Hannula <anssi@mandriva.org> 8.44.3-4mdv2008.1
+ Revision: 139573
- obsolete ati-control-center on 2008.0 and newer

* Tue Dec 25 2007 Anssi Hannula <anssi@mandriva.org> 8.44.3-3mdv2008.1
+ Revision: 137792
- fix exit status of %%posttrans in cases where unhandled files exist
  in /etc/fglrx or /etc/fglrx-hd2000

* Tue Dec 25 2007 Anssi Hannula <anssi@mandriva.org> 8.44.3-2mdv2008.1
+ Revision: 137767
- handle more upgrade scenarios
- require kmod(fglrx) in driver package

* Tue Dec 25 2007 Anssi Hannula <anssi@mandriva.org> 8.44.3-1mdv2008.1
+ Revision: 137625
- new version (internally 8.44.3/8.443.1, announced as 7.12)
- drop 2.6.23 support patch, applied upstream

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Sun Oct 28 2007 Anssi Hannula <anssi@mandriva.org> 8.40.4-8mdv2008.1
+ Revision: 102854
- use alternatives for fglrx_dri.so to allow 8.42.3 cohabitation

* Fri Sep 21 2007 Anssi Hannula <anssi@mandriva.org> 8.40.4-7mdv2008.0
+ Revision: 91892
- apply a workaround patch for kernel 2.6.23

* Thu Sep 20 2007 Anssi Hannula <anssi@mandriva.org> 8.40.4-6mdv2008.0
+ Revision: 91578
- change %%post to %%posttrans to prevent more problems with rpm removing files

* Thu Sep 20 2007 Anssi Hannula <anssi@mandriva.org> 8.40.4-5mdv2008.0
+ Revision: 91420
- provide ghosts for directories as well (fixes #33809)
- disable parallel make of fglrx_gamma lib

* Sun Sep 16 2007 Anssi Hannula <anssi@mandriva.org> 8.40.4-4mdv2008.0
+ Revision: 87594
- add conflict with old drakx-kbd-mouse-x11
- fix suggests
- check for driver before printing anything in atieventsd initscript
- use alternatives for more files to allow co-existence with fglrx-hd2000

* Sat Sep 15 2007 Anssi Hannula <anssi@mandriva.org> 8.40.4-3mdv2008.0
+ Revision: 85915
- start atieventsd on runlevel 5 only
- fix versioned provides/obsoletes in control center subpkg
- no need to own /usr/X11R6, it is owned by x11-server-common
- drop useless fgl_glxgears man page, it was an old upstream one
  without all the correct options
- fix menu entry

* Fri Aug 31 2007 Anssi Hannula <anssi@mandriva.org> 8.40.4-2mdv2008.0
+ Revision: 76979
- drop executable perm of fglrx.spec (Charles A Edwards)
- add a note into README.install.urpmi about reconfiguring being
  unnecessary when upgrading

  + Thierry Vignaud <tv@mandriva.org>
    - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated'

* Sun Aug 26 2007 Anssi Hannula <anssi@mandriva.org> 8.40.4-1mdv2008.0
+ Revision: 71697
- use alternatives for libglx.so
- update documentation
- 8.40.4
- rewrite spec
- preapply uname_r patch
- can now be built as standard rpm as well, i.e. outside ati installer
- build some tools from sources when built outside ati installer
- add patches that fix includes in some tools
- use %%{version}-%%{release} for dkms PACKAGE_VERSION
- now has a source package, named fglrx
- rename to x11-driver-video-fglrx and dkms-fglrx on cooker
- move tools to main driver package, except for amdcccle
- introduce control-center subpackage for amdcccle
- require fixed update-alternatives instead of workarounding bugs
- use generic license tag
- remove hardcoded vendor, packager, prefix tags
- adapt and simplify ati-packager.sh for new spec layout
- clean libGL.so.1 from provides (bug #28216)
- first Mandriva build with the tools enabled (bug #28094)
- better URL
- exclusivearch ix86 x86_64
- add post and preun script requires on dkms
- re-enable devel package
- do not call the next dkms step if previous fails
- own the old X11R6 directories where we are creating the compatibility
  symlink for now
- move atieventsd to the main package; the separation was not useful as it
  was required by main package
- provide png icon
- change distsuffix of the ati installer build
- do not leave temp directory behind in installer mode when rpm-build is not
  installed