projects / fglrx-packaging.git / commitdiff
Build Results
 
Summary

Description: Unnamed repository; edit this file 'description' to name the repository.
Last Change: Wed 8/20/14 10:41

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Wed 8/20/14 7:30
Alberto Milone  
Ubuntu: don't complain... 
Wed 8/20/14 7:23
Alberto Milone  
Ubuntu: add support for... 
Wed 8/20/14 7:16
Alberto Milone  
Ubuntu: add support for... 
Tue 8/19/14 4:48
Alberto Milone  
Ubuntu/ati-packager.sh:... 
Tue 8/19/14 10:12
Alberto Milone  
Ubuntu: move the core... 
Thu 8/14/14 17:34
Sebastian Siebert  
SUSE: Switch to use of... 
 
> --git a/SuSE/CHANGELOG b/SuSE/CHANGELOG
new file mode 100644
index 0000000..0acbfea
--- /dev/null
+++ b/SuSE/CHANGELOG
@@ -0,+1,19 @@
+-------------------------------------------------------------------
+
Mon Dec 13 07:42:31 CET 2010 Sebastian Siebert <freespacer@gmx.de>
+
+- 
packaging script and spec file were completely rewritten
+- add a verbose mode (what are you doingtell me everything)
+  
Usage:
+  
# VERBOSE="1" ./ati-driver-installer-(version)-(arch).sh --buildpkg ...
+  # VERBOSE="2" ./ati-driver-installer-(version)-(arch).sh --buildpkg ...
+- add an auto detection of openSUSE and SLE version and architecture
+  Usage:
+  
# ./ati-driver-installer-(version)-(arch).sh --buildpkg SuSE/SUSE-autodetection
+- add a switch to unlock unsupported openSUSE version
+  Usage:
+  
# UNSUPPORTED="yes" ./ati-driver-installer-(version)-(arch).sh --buildpkg ...
+- add a rebuild script boot.fglrxrebuild at boot time (initwith a
+  logging function to /var/log/fglrx-build.log
+- add a renew fglrx-kernel-build.sh with a support to rebuild of all
+  available installed kernel flavors and versions
+- renew the patches
diff 
--git a/SuSE/Makefile b/SuSE/Makefile
deleted file mode 100644
index 63f2afe
..0000000
--- a/SuSE/Makefile
+++ /dev/null
@@ -1,31 +0,@@
-
# Makefile
-
-
specfiles101=x690.SLE10-IA32.spec x690_64a.SLE10-AMD64.spec
-specfiles103=x690.SUSE103-IA32.spec x690_64a.SUSE103-AMD64.spec
-specfiles110=x690.SUSE110-IA32.spec x690_64a.SUSE110-AMD64.spec
-specfiles111=x740.SUSE111-IA32.spec x740_64a.SUSE111-AMD64.spec x740.SLE11-IA32.spec x740_64a.SLE11-AMD64.spec
-specfiles112=x740.SUSE112-IA32.spec x740_64a.SUSE112-AMD64.spec
-specfiles113=x750.SUSE113-IA32.spec x750_64a.SUSE113-AMD64.spec
-specfiles=$(specfiles101) $(specfiles103) $(specfiles110) $(specfiles111) $(specfiles112) $(specfiles113)
-
-
tarball=suse.tar.bz2
-
-
all:
-    for 
i in $(specfiles); do \
-          
arch=""; \
-          echo $
$i grep -q AMD64 && arch="64"; \
-          
xver=6_9_0; \
-          echo $
$i grep -q x740 && xver=7_4_0; \
-          echo $
$i grep -q x750 && xver=7_5_0; \
-      
suse=`echo $$i | cut -d "." -f 2 | cut -d "-" -f 1`; \
-      
sed s/Name:\ fglrx/Name:\ fglrx$${arch}_$${xver}_$${suse}/g fglrx.spec > $$i; \
-    
done
-
-
diff:    all
-    for i in $(specfiles); do diff -u fglrx.spec $$idone
-
-
dist:    all
-    tar cjf $(tarball) *
-
-
clean:
-    
rm -$(tarball) *~
diff --git a/SuSE/TODO b/SuSE/TODO
new file mode 100644
index 0000000..88ab6ae
--- /dev/null
+++ b/SuSE/TODO
@@ -0,+1,@@
+
TODO:
+- 
write a logrotate config file for /var/log/fglrx-build.log
+- write own ati report for more implementing outputs (ati-report.sh)
diff --git a/SuSE/ati-2.6.27-build-fix-1.diff b/SuSE/ati-2.6.27-build-fix-1.diff
deleted file mode 100644
index 33c9959
..0000000
--- a/SuSE/ati-2.6.27-build-fix-1.diff
+++ /dev/null
@@ -1,11 +0,@@
---- 
build_mod/firegl_public.h    2008-08-18 13:45:42.000000000 +0200
-+++ build_mod.new/firegl_public.h    2008-09-01 17:31:50.467661000 +0200
-@@ -63,+63,@@
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
#define PAGING_FAULT_SIGBUS_INT (unsigned long)NOPAGE_SIGBUS
#else /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) */
--#define PAGING_FAULT_SIGBUS_INT VM_FAULT_SIGBUS
-+#define PAGING_FAULT_SIGBUS_INT (void*)(unsigned long)VM_FAULT_SIGBUS
#endif
-
#define PGD_OFFSET(mm, pgd_p, pte_linear)    \
diff --git a/SuSE/ati-2.6.27-build-fix-1.patch b/SuSE/ati-2.6.27-build-fix-1.patch
new file mode 100644
index 0000000..0336b5f
--- /dev/null
+++ b/SuSE/ati-2.6.27-build-fix-1.patch
@@ -0,+1,11 @@
+--- 
firegl_public.h.orig    2010-11-25 20:53:35.000000000 +0100
++++ firegl_public.h    2010-11-26 04:45:46.507992307 +0100
+@@ -56,+56,@@
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
#define PAGING_FAULT_SIGBUS_INT (unsigned long)NOPAGE_SIGBUS
#else /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) */
+-#define PAGING_FAULT_SIGBUS_INT VM_FAULT_SIGBUS
++#define PAGING_FAULT_SIGBUS_INT (void*)(unsigned long)VM_FAULT_SIGBUS
#endif
+
#define PGD_OFFSET(mm, pgd_p, pte_linear)    \
diff --git a/SuSE/ati-CONFIG_SMP.diff b/SuSE/ati-CONFIG_SMP.diff
deleted file mode 100644
index 9fcfab4
..0000000
--- a/SuSE/ati-CONFIG_SMP.diff
+++ /dev/null
@@ -1,56 +0,@@
---- 
firegl_public.c.orig    2009-02-04 17:57:01.000000000 +1100
-+++ firegl_public.c    2009-02-11 11:50:07.000000000 +1100
-@@ -245,+245,@@
- const 
char BUILD_KERNEL_HAS_MODVERSIONS_CLEARED;
#endif
-
--
#ifdef __SMP__
-+#if CONFIG_SMP
- const unsigned long KCL_SYSINFO_SmpSupport 1;
- const 
char BUILD_KERNEL_HAS_SMP_SET;
#else
-@@ -2503,+2503,@@
-
/*****************************************************************************/
-
--
#ifdef __SMP__
-+#if CONFIG_SMP
- static atomic_t cpus_waiting;
-
- static 
void deferred_flush(voidcontextp)
-@@ -
2519,+2519,@@
-     while (
atomic_read(&cpus_waiting) > 0)
-         
barrier();
- }
--
#endif /* __SMP__ */
-+#endif /* CONFIG_SMP */
-
/** \brief Run a function on all other CPUs.
-  * \param func The function to run.
-@@ -2535,7 +2535,7 @@
-
- int ATI_API_CALL KCL_MEM_FlushCpuCaches(void)
- {
--#ifdef __SMP__
-+#if CONFIG_SMP
-     /* write back invalidate all other CPUs (exported by kernel) */
-     if (KCL_SmpCallFunction(deferred_flushNULL10) != 0)
-         
panic("timed out waiting for the other CPUs!\n");
-@@ -
2551,+2551,@@
-
-     while (
atomic_read(&cpus_waiting) > 0)
-         
barrier();
--
#else /* !__SMP__ */
-+#else /* !CONFIG_SMP */
#if defined(__i386__) || defined(__x86_64__)
-     asm volatile ("wbinvd":::"memory");
#elif defined(__alpha__) || defined(__sparc__)
-@@ -2559,+2559,@@
#else
#error "Please define flush_cache for your architecture."
#endif
--#endif /* !__SMP__ */
-+#endif /* !CONFIG_SMP */
-
-     
//for kernel 2.6.25, tlb_flush has been included when calling set_pages_*.
-     #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)
diff --git a/SuSE/ati-CONFIG_SMP.patch b/SuSE/ati-CONFIG_SMP.patch
new file mode 100644
index 0000000..21a14a0
--- /dev/null
+++ b/SuSE/ati-CONFIG_SMP.patch
@@ -0,+1,56 @@
+--- 
firegl_public.c.orig    2010-11-25 20:53:35.000000000 +0100
++++ firegl_public.c    2010-11-26 04:48:31.804117079 +0100
+@@ -265,+265,@@ const unsigned long KCL_SYSINFO_BinaryMo
+ const char BUILD_KERNEL_HAS_MODVERSIONS_CLEARED;
#endif
+
+-
#ifdef __SMP__
++#if CONFIG_SMP
+ const unsigned long KCL_SYSINFO_SmpSupport 1;
+ const 
char BUILD_KERNEL_HAS_SMP_SET;
#else
+@@ -2736,+2736,@@ int ATI_API_CALL KCL_AtomicTestAndToggle
+
/*****************************************************************************/
+
+-
#ifdef __SMP__
++#if CONFIG_SMP
+ static atomic_t cpus_waiting;
+
+ static 
void deferred_flush(voidcontextp)
+@@ -
2752,+2752,@@ static void deferred_flush(voidcontext
+     while (atomic_read(&cpus_waiting) > 0)
+         
barrier();
+ }
+-
#endif /* __SMP__ */
++#endif /* CONFIG_SMP */
+
/** \brief Run a function on all other CPUs.
+  * \param func The function to run.
+@@ -2768,7 +2768,7 @@ static void deferred_flush(void* context
+
+ int ATI_API_CALL KCL_MEM_FlushCpuCaches(void)
+ {
+-#ifdef __SMP__
++#if CONFIG_SMP
+     /* write back invalidate all other CPUs (exported by kernel) */
+     if (KCL_SmpCallFunction(deferred_flushNULL10) != 0)
+         
panic("timed out waiting for the other CPUs!\n");
+@@ -
2784,+2784,@@ int ATI_API_CALL KCL_MEM_FlushCpuCaches(
+
+     while (
atomic_read(&cpus_waiting) > 0)
+         
barrier();
+-
#else /* !__SMP__ */
++#else /* !CONFIG_SMP */
#if defined(__i386__) || defined(__x86_64__)
+     asm volatile ("wbinvd":::"memory");
#elif defined(__alpha__) || defined(__sparc__)
+@@ -2792,+2792,@@ int ATI_API_CALL KCL_MEM_FlushCpuCaches(
#else
#error "Please define flush_cache for your architecture."
#endif
+-#endif /* !__SMP__ */
++#endif /* !CONFIG_SMP */
+
+     return 
0;
+ }
diff --git a/SuSE/ati-opensuse-11.4.patch b/SuSE/ati-opensuse-11.4.patch
new file mode 100644
index 0000000.
.a93364b
--- /dev/null
+++ b/SuSE/ati-opensuse-11.4.patch
@@ -0,+1,11 @@
+--- 
kcl_ioctl.c.orig    2010-12-01 23:35:09.000000000 +0100
++++ kcl_ioctl.c    2010-12-04 01:25:32.989178694 +0100
+@@ -193,+193,@@ void ATI_API_CALL KCL_IOCTL_UnregisterCo
+  */
voidATI_API_CALL KCL_IOCTL_AllocUserSpace32(long size)
+ {
+-    
void __user *ret COMPAT_ALLOC_USER_SPACE(size);
++    
void __user *ret arch_compat_alloc_user_space(size);
+
+     
/* prevent stack overflow */
+     if (!access_ok(VERIFY_WRITEretsize))
diff --git a/SuSE/ati-packager-functions.sh b/SuSE/ati-packager-functions.sh
new file mode 100755
index 0000000..0f725e4
--- /dev/null
+++ b/SuSE/ati-packager-functions.sh
@@ -0,+1,96 @@
+
#!/bin/sh
+#
+# Copyright (c) 2010, Sebastian Siebert (freespacer@gmx.de)
+# All rights reserved.
+#
+# 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.
+
+
# Check the size of the console
+SIZE=`stty size 2> /dev/null || echo 0 0`
+
LINES=`echo "${SIZE}" | cut -f1 -d" "`
+
COLUMNS=`echo "${SIZE}" | cut -f2 -d" "`
+if [ ${
LINES} -eq 0 ]; then
+    LINES=24
+fi
+if [ ${COLUMNS} -eq 0 ]; then
+    COLUMNS=80
+fi
+
+
VERBOSE_LEVEL="1"
+if [ "${VERBOSE}"2" ]; then
+    VERBOSE_LEVEL="2"
+    VERBOSE="yes"
+fi
+
+
print_okay()
+{
+    if [ 
"${VERBOSE}"yes" -"${VERBOSE}"true" -"${VERBOSE}"1" ]; then
+        echo -"\033[${COLUMNS}C\033[15D[\e[1;32m OK \e[0m]"
+    fi
+}
+
+
print_failure()
+{
+    if [ 
"${VERBOSE}"yes" -"${VERBOSE}"true" -"${VERBOSE}"1" ]; then
+        echo -"\033[${COLUMNS}C\033[15D[\e[1;31m FAILURE \e[0m]"
+    fi
+}
+
+
print_missing()
+{
+    if [ 
"${VERBOSE}"yes" -"${VERBOSE}"true" -"${VERBOSE}"1" ]; then
+        echo -"\033[${COLUMNS}C\033[15D[\e[1;33m MISSING \e[0m]"
+    fi
+}
+
+
print_aborted()
+{
+    if [ 
"${VERBOSE}"yes" -"${VERBOSE}"true" -"${VERBOSE}"1" ]; then
+        echo -"\033[${COLUMNS}C\033[15D[\e[1;33m ABORTED \e[0]"
+    fi
+}
+
+
debugMsg()
+{
+    if [ 
"${VERBOSE}"yes" -"${VERBOSE}"true" -"${VERBOSE}"1" ]; then
+        echo --"$@"
+    fi
+}
+
+
checkReturnOutput()
+{
+    if [ 
"${VERBOSE}"yes" -"${VERBOSE}"true" -"${VERBOSE}"1" ]; then
+        if [ "${VERBOSE_LEVEL}"2" ]; then
+            if [ -"$2" ]; then
+                if [ "$1" -ne 0 ]; then
+                    echo --"ERROR: "
+                fi
+                echo --"$2"
+            fi
+        fi
+        if [ "$1" -ne 0 ]; then
+            print_failure
+            exit 1
+        fi
+        print_okay
+    fi
+}
diff --git a/SuSE/ati-packager.sh b/SuSE/ati-packager.sh
index 557f2e2
..13acdb4 100755
--- a/SuSE/ati-packager.sh
+++ b/SuSE/ati-packager.sh
@@ -1,32 +1,56 @@
 
#!/bin/sh
 #
-# Purpose
-#   Sample packaging script
+# Copyright (c) 2010, Sebastian Siebert (freespacer@gmx.de)
+# All rights reserved.
 #
-# Usage
-#   See README.distro document
+# 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.

 
export LC_ALL=C
 export LANG
=C

+. `dirname $0`/ati-packager-functions.sh
+. `dirname $0`/supportedOS.sh
+
 
#Function: getSupportedPackages()
 #Purpose: lists distribution supported packages
 
getSupportedPackages()
 {
-    
#Determine absolute path of <installer root>/<distro>
-    RelDistroDir=`dirname $0`
-    
AbsDistroDir=`cd ${RelDistroDir} 2>/dev/null && pwd`
-
-    
#List all spec files in the <installer root>/<distro> directory
-    for SpecFile in `ls ${AbsDistroDir}/*.spec 2>/dev/null`; do
-        
SpecFile=`basename ${SpecFile}`
-        
X_DIR=${SpecFile%.*.spec}    # Name of the x* directory corresponding the requested package
-        X_NAME=${SpecFile#x*.}
-        X_NAME=${X_NAME%.spec}        # Well known X or distro name
-
-        if [ 
"${X_DIR}-"${X_NAME}--${AbsDistroDir}/../../${X_DIR} ]; then
-            echo ${X_NAME}
+    for 
POSITION in $(seq 0 32)
+    do
+        
# break if the value is empty
+        if [ -"${SUSE[$POSITION]}]; then
+            break;
         
fi
+
+        
# get the SUSE-Version
+        SUSE_VERSION=`echo "${SUSE[$POSITION]}" | cut -f1 -d" "`
+        
ARCH_XORG_LIST=`echo "${SUSE[$POSITION]}" | cut -f2- -d" "`
+
+        
# list all available version of openSUSE and SLE
+        for ARCH_XORG in ${ARCH_XORG_LIST}
+        do
+            
ARCH=`echo ${ARCH_XORG} | cut -f1 -d"-"`
+            echo 
"${SUSE_VERSION}-${ARCH}"
+        done
     done
 
}

@@ -
34,129 +58,396 @@ getSupportedPackages()
 
#Purpose: build the requested package if it is supported
 
buildPackage()
 {
-    
X_NAME=$1                            # Well known X or distro name
-    RelDistroDir=`dirname $0`            # Relative path to the distro directory
-    AbsDistroDir=`cd ${RelDistroDir} 2>/dev/null && pwd`     # Absolute path to the distro directory
-    InstallerRootDir=`pwd`                # Absolute path of the <installer root> directory
-    # Temporary file to output diagnostics of the package build utility
-    TmpPkgBuildOut="$(mktemp /tmp/pkg_build.out.XXXXXX)" || exit 1
-    # Temporary directory to merge files from the common and x* directories
-    TmpDrvFilesDir="$(mktemp -d /tmp/ati.XXXXXX)" || exit 1
-    # Final spec file as a result of the original spec file after variables substituted
-    TmpPkgSpec="$(mktemp /tmp/fglrx.spec.XXXXXX)" || exit 1
-    EXIT_CODE=0                            # Script exit code
-
-    
#Detect x* dir name corresponding to X_NAME
-    X_DIR=`ls ${AbsDistroDir}/x*.${X_NAME}.spec`
-    
X_DIR=`basename ${X_DIR}`
-    
X_DIR=${X_DIR%.*.spec}
-
-    
#Detect target architechture
-    echo ${X_DIR} | grep _64 > /dev/null;
-    if [ $? -
eq 1 ]; then
-        ARCH=i386
-        ARCHDIR=x86
-    else
-    
ARCH=x86_64
-    ARCHDIR=x86_64
+    PACKAGE_NAME=$1
+
+    
debugMsg "Verbose mode:  on" && print_okay
+    debugMsg "Verbose level: ${VERBOSE_LEVEL}&& print_okay
+
+    if [ 
"${VERBOSE_LEVEL}"2" ]; then
+        VERBOSE_2_LINE_BREAK='\n'
     
fi
-
-    
PKG_SPEC="${AbsDistroDir}/${X_DIR}.${X_NAME}.spec"    # Package specification file for the requested package
-
-    
#[Re]create the merging directory, or clean it up
-    rm -rf ${TmpDrvFilesDir} > /dev/null
-    mkdir ${TmpDrvFilesDir}
-
-    
#Merge files from different source directories
-    cp -${InstallerRootDir}/common/* ${TmpDrvFilesDir}
-    cp -R ${InstallerRootDir}/arch/${ARCHDIR}/* ${TmpDrvFilesDir}
-    cp -R ${InstallerRootDir}/${X_DIR}/* ${TmpDrvFilesDir}
-    if [ "${ARCH}" = "x86_64" ]; then
-        cp -R ${InstallerRootDir}/arch/x86/usr/X11R6/lib ${TmpDrvFilesDir}/usr/X11R6
-        cp -R ${InstallerRootDir}/arch/x86/usr/lib ${TmpDrvFilesDir}/usr/lib
+
+    debugMsg "Get information about the machine architecture and the version of SUSE and XOrg ...\n"
+    for POSITION in $(seq 0 32)
+    do
+        # break if the value is empty
+        if [ -z "${SUSE[$POSITION]}" ]; then
+            break;
+        fi
+
+        # get the SUSE-Version
+        SUSE_VERSION=`echo "${SUSE[$POSITION]}" | cut -f1 -d" "`
+        ARCH_XORG_LIST=`echo "${SUSE[$POSITION]}" | cut -f2- -d" "`
+
+        # list all available version of openSUSE and SLE
+        for ARCH_XORG in ${ARCH_XORG_LIST}
+        do
+            ARCH=`echo ${ARCH_XORG} | cut -f1 -d"-"`
+            XORG=`echo ${ARCH_XORG} | cut -f2 -d"-"`
+            if [ "${PACKAGE_NAME}" = "${SUSE_VERSION}-${ARCH}" ]; then
+                debugMsg "   Package name: ${PACKAGE_NAME}\n"
+                debugMsg "   Distribution: ${SUSE_VERSION}\n"
+                debugMsg "   Architecture: ${ARCH}\n"
+                debugMsg "   XOrg version: ${XORG}"
+                print_okay
+                break 2
+            fi
+        done
+    done
+
+    debugMsg "Assemble the package name for rpm build ...\n"
+    if [ "${ARCH}" = "IA32" ]; then
+        PACKAGE_NAME="fglrx_${XORG:1:1}_${XORG:2:1}_${XORG:3:1}_${SUSE_VERSION}"
+    elif [ "${ARCH}" = "AMD64" ]; then
+        PACKAGE_NAME="fglrx64_${XORG:1:1}_${XORG:2:1}_${XORG:3:1}_${SUSE_VERSION}"
     fi
-    mkdir ${TmpDrvFilesDir}/suse
-    cp ${AbsDistroDir}/* ${TmpDrvFilesDir}/suse
-    echo ${TmpDrvFilesDir}
-
-    #Substitute variables in the specfile
-    sed -f - ${PKG_SPEC} > ${TmpPkgSpec} <<END_SED_SCRIPT
+    debugMsg "   Package name: ${PACKAGE_NAME}" && print_okay
+
+    # set needed variables
+    DISTRO_PATH=`cd $(dirname $0) 2>/dev/null && pwd` \
+        || checkReturnOutput $? "Could not get the path of distro packaging!"
+    debugMsg "Path to the distro packaging:\n   ${DISTRO_PATH}" && print_okay
+    INSTALLER_PATH=`pwd` \
+        || checkReturnOutput $? "Could not get the path of installer!"
+    debugMsg "Path to the installer:\n   ${INSTALLER_PATH}" && print_okay
+    TMP_BUILD_OUTPUT="$(mktemp /tmp/ati_pkg_build.out.XXXXXX)" \
+        || checkReturnOutput $? "Could not create a temp file in /tmp for the build output!"
+    debugMsg "Temporary path to the output from the build:\n   ${TMP_BUILD_OUTPUT}" && print_okay
+    TMP_BUILD_PATH="$(mktemp -d /tmp/ati_fglrx.XXXXXX)" \
+        || checkReturnOutput $? "Could not create a temp directory in /tmp for the build of rpm file!"
+    debugMsg "Temporary path to the build:\n   ${TMP_BUILD_PATH}" && print_okay
+    TMP_SPEC_FILE="$(mktemp /tmp/ati_fglrx.spec.XXXXXX)" \
+        || checkReturnOutput $? "Could not create a temp file in /tmp for the spec file!"
+    debugMsg "Temporary path to the spec file:\n   ${TMP_SPEC_FILE}" && print_okay
+
+    debugMsg "Get the architecture for the ATI arch path: "
+    if [ "${ARCH}" = "IA32" ]; then
+        ATI_ARCH="x86"
+    elif [ "${ARCH}" = "AMD64" ]; then
+        ATI_ARCH="x86_64"
+    fi
+    debugMsg "${ATI_ARCH}" && print_okay
+
+    SPEC_FILE="${DISTRO_PATH}/fglrx.spec"
+    debugMsg "Path to the spec file: ${SPEC_FILE}" && print_okay
+
+    VERBOSE_OPTION=""
+    if [ "${VERBOSE_LEVEL}" = "2" ]; then
+        if [ "${VERBOSE}" = "yes" -o "${VERBOSE}" = "true" -o "${VERBOSE}" = "1" ]; then
+            VERBOSE_OPTION="-v"
+        fi
+    fi
+
+    # create needed directory
+    debugMsg "Create needed directory ...${VERBOSE_2_LINE_BREAK}"
+    mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/etc/{init.d,modprobe.d,pam.d} \
+        || checkReturnOutput $?
+    mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/{bin,include,sbin} \
+        || checkReturnOutput $?
+    mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/lib/dri \
+        || checkReturnOutput $?
+    mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/src/kernel-modules/fglrx \
+        || checkReturnOutput $?
+    mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/share/{applications,ati,man,pixmaps} \
+        || checkReturnOutput $?
+    mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/share/doc/packages/fglrx/patches \
+        || checkReturnOutput $?
+    mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/X11R6/lib \
+        || checkReturnOutput $?
+    if [ "${ARCH}" = "IA32" ]; then
+        mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/lib/xorg/modules/{drivers,linux,updates} \
+            || checkReturnOutput $?
+#        mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/lib/xorg/modules/updates/extensions \
+#            || checkReturnOutput $?
+        if [ "${SUSE_VERSION}" != "SLE10" ]; then
+            mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/lib/pm-utils/power.d \
+                || checkReturnOutput $?
+        else
+            mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/lib/powersave/scripts \
+                || checkReturnOutput $?
+        fi
+    elif [ "${ARCH}" = "AMD64" ]; then
+        mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/lib64/dri \
+            || checkReturnOutput $?
+        mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/X11R6/lib64 \
+            || checkReturnOutput $?
+        mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/lib64/xorg/modules/{drivers,linux,updates} \
+            || checkReturnOutput $?
+#        mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/lib64/xorg/modules/updates/extensions \
+#            || checkReturnOutput $?
+        if [ "${SUSE_VERSION}" != "SLE10" ]; then
+            mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/lib64/pm-utils/power.d \
+                || checkReturnOutput $?
+        else
+            mkdir ${VERBOSE_OPTION} -p ${TMP_BUILD_PATH}/usr/lib64/powersave/scripts \
+                || checkReturnOutput $?
+        fi
+    fi
+    print_okay
+
+    # copy all needed files into $TMP_BUILD_PATH
+    debugMsg "Copy all needed files into temporary build path ...${VERBOSE_2_LINE_BREAK}"
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/etc ${TMP_BUILD_PATH} \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/lib/modules/fglrx/build_mod/* ${TMP_BUILD_PATH}/usr/src/kernel-modules/fglrx \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/usr/X11R6/bin/* ${TMP_BUILD_PATH}/usr/bin \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/usr/X11R6/include/* ${TMP_BUILD_PATH}/usr/include \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/usr/include/* ${TMP_BUILD_PATH}/usr/include \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/usr/sbin/* ${TMP_BUILD_PATH}/usr/sbin \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/usr/share/applications/* ${TMP_BUILD_PATH}/usr/share/applications \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/usr/share/ati/* ${TMP_BUILD_PATH}/usr/share/ati \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/usr/share/doc/amdcccle/* ${TMP_BUILD_PATH}/usr/share/doc/packages/fglrx \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/usr/share/doc/fglrx/* ${TMP_BUILD_PATH}/usr/share/doc/packages/fglrx \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/usr/share/icons/* ${TMP_BUILD_PATH}/usr/share/pixmaps \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/usr/share/man/* ${TMP_BUILD_PATH}/usr/share/man \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/common/usr/src/ati/* ${TMP_BUILD_PATH}/usr/share/doc/packages/fglrx \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/${ATI_ARCH}/lib/modules/fglrx/build_mod/* ${TMP_BUILD_PATH}/usr/src/kernel-modules/fglrx \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/${ATI_ARCH}/usr/X11R6/bin/* ${TMP_BUILD_PATH}/usr/bin \
+        || checkReturnOutput $?
+    if [ "${ARCH}" = "IA32" ]; then
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/${ATI_ARCH}/usr/X11R6/lib/{libAMD*,libXvBAW*,libati*} ${TMP_BUILD_PATH}/usr/lib \
+            || checkReturnOutput $?
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/${ATI_ARCH}/usr/X11R6/lib/modules/dri/* ${TMP_BUILD_PATH}/usr/lib/dri \
+            || checkReturnOutput $?
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/${ATI_ARCH}/usr/X11R6/lib/{libGL*,libfglrx*} ${TMP_BUILD_PATH}/usr/X11R6/lib \
+            || checkReturnOutput $?
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/${ATI_ARCH}/usr/lib/* ${TMP_BUILD_PATH}/usr/lib \
+            || checkReturnOutput $?
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/${XORG}/usr/X11R6/lib/modules/* ${TMP_BUILD_PATH}/usr/lib/xorg/modules \
+            || checkReturnOutput $?
+        mv ${VERBOSE_OPTION} ${TMP_BUILD_PATH}/usr/lib/xorg/modules/extensions ${TMP_BUILD_PATH}/usr/lib/xorg/modules/updates/ \
+            || checkReturnOutput $?
+        if [ "${SUSE_VERSION}" != "SLE10" ]; then
+            cp ${VERBOSE_OPTION} ${DISTRO_PATH}/ati-powermode.sh ${TMP_BUILD_PATH}/usr/lib/pm-utils/power.d/ \
+                || checkReturnOutput $?
+        else
+            cp ${VERBOSE_OPTION} ${DISTRO_PATH}/{ati-powermode.sh,toggle-lvds.sh} ${TMP_BUILD_PATH}/usr/lib/powersave/scripts/ \
+                || checkReturnOutput $?
+        fi
+    elif [ "${ARCH}" = "AMD64" ]; then
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/${ATI_ARCH}/usr/X11R6/lib64/{libAMD*,libXvBAW*,libati*} ${TMP_BUILD_PATH}/usr/lib64 \
+            || checkReturnOutput $?
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/${ATI_ARCH}/usr/X11R6/lib64/modules/dri/* ${TMP_BUILD_PATH}/usr/lib64/dri \
+            || checkReturnOutput $?
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/${ATI_ARCH}/usr/X11R6/lib64/{libGL*,libfglrx*} ${TMP_BUILD_PATH}/usr/X11R6/lib64 \
+            || checkReturnOutput $?
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/${ATI_ARCH}/usr/lib64/* ${TMP_BUILD_PATH}/usr/lib64 \
+            || checkReturnOutput $?
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/x86/usr/X11R6/lib/{libAMD*,libXvBAW*,libati*} ${TMP_BUILD_PATH}/usr/lib \
+            || checkReturnOutput $?
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/x86/usr/X11R6/lib/modules/dri/* ${TMP_BUILD_PATH}/usr/lib/dri \
+            || checkReturnOutput $?
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/x86/usr/X11R6/lib/{libGL*,libfglrx*} ${TMP_BUILD_PATH}/usr/X11R6/lib \
+            || checkReturnOutput $?
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/x86/usr/lib/* ${TMP_BUILD_PATH}/usr/lib \
+            || checkReturnOutput $?
+        cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/${XORG}/usr/X11R6/lib64/modules/* ${TMP_BUILD_PATH}/usr/lib64/xorg/modules \
+            || checkReturnOutput $?
+        mv ${VERBOSE_OPTION} ${TMP_BUILD_PATH}/usr/lib64/xorg/modules/extensions ${TMP_BUILD_PATH}/usr/lib64/xorg/modules/updates/ \
+            || checkReturnOutput $?
+        if [ "${SUSE_VERSION}" != "SLE10" ]; then
+            cp ${VERBOSE_OPTION} ${DISTRO_PATH}/ati-powermode.sh ${TMP_BUILD_PATH}/usr/lib64/pm-utils/power.d/ \
+                || checkReturnOutput $?
+        else
+            cp ${VERBOSE_OPTION} ${DISTRO_PATH}/{ati-powermode.sh,toggle-lvds.sh} ${TMP_BUILD_PATH}/usr/lib64/powersave/scripts/ \
+                || checkReturnOutput $?
+        fi
+    fi
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/${ATI_ARCH}/usr/sbin/* ${TMP_BUILD_PATH}/usr/sbin \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} -R ${INSTALLER_PATH}/arch/${ATI_ARCH}/usr/share/ati/* ${TMP_BUILD_PATH}/usr/share/ati \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} ${DISTRO_PATH}/atieventsd.sh ${TMP_BUILD_PATH}/etc/init.d/atieventsd \
+        || checkReturnOutput $?
+    # replace authatieventsd.sh
+    rm ${VERBOSE_OPTION} -f ${TMP_BUILD_PATH}/etc/ati/authatieventsd.sh \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} ${DISTRO_PATH}/authatieventsd.sh ${TMP_BUILD_PATH}/etc/ati/authatieventsd.sh \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} ${DISTRO_PATH}/fglrx-kernel-build.sh ${TMP_BUILD_PATH}/usr/bin \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} ${DISTRO_PATH}/boot.fglrxrebuild ${TMP_BUILD_PATH}/etc/init.d \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} ${DISTRO_PATH}/README.SuSE ${TMP_BUILD_PATH}/usr/share/doc/packages/fglrx \
+        || checkReturnOutput $?
+    cp ${VERBOSE_OPTION} ${DISTRO_PATH}/fglrx.png ${TMP_BUILD_PATH}/usr/share/pixmaps \
+        || checkReturnOutput $?
+    echo "blacklist radeon" >${TMP_BUILD_PATH}/etc/modprobe.d/fglrx.conf \
+        || checkReturnOutput $?
+    print_okay
+
+    # copy patch files to the $TMP_BUILD_PATH
+    debugMsg "Copy patch files to the temporary build path ...${VERBOSE_2_LINE_BREAK}"
+    cp ${VERBOSE_OPTION} -R ${DISTRO_PATH}/*.patch ${TMP_BUILD_PATH}/usr/share/doc/packages/fglrx/patches
+    checkReturnOutput $?
+
+    # clean up temp dir
+    debugMsg "Remove unneeded files in the temporary build path ...${VERBOSE_2_LINE_BREAK}"
+    rm ${VERBOSE_OPTION} ${TMP_BUILD_PATH}/usr/src/kernel-modules/fglrx/make.sh \
+        || checkReturnOutput $?
+    rm ${VERBOSE_OPTION} -r ${TMP_BUILD_PATH}/usr/share/doc/packages/fglrx/examples \
+        || checkReturnOutput $?
+    print_okay
+
+    # substitute variables in the specfile
+    debugMsg "Substitute variables in the temporary spec file ...${VERBOSE_2_LINE_BREAK}"
+    sed -f - ${DISTRO_PATH}/fglrx.spec > ${TMP_SPEC_FILE} <<END_SED_SCRIPT
+s!%PACKAGE_NAME!${PACKAGE_NAME}!
 s!%ATI_DRIVER_VERSION!`./ati-packager-helper.sh --version`!
 s!%ATI_DRIVER_RELEASE!`./ati-packager-helper.sh --release`!
 s!%ATI_DRIVER_DESCRIPTION!`./ati-packager-helper.sh --description`!
 s!%ATI_DRIVER_URL!`./ati-packager-helper.sh --url`!
 s!%ATI_DRIVER_VENDOR!`./ati-packager-helper.sh --vendor`!
 s!%ATI_DRIVER_SUMMARY!`./ati-packager-helper.sh --summary`!
-s!%ATI_DRIVER_BUILD_ROOT!${TmpDrvFilesDir}!
+s!%ATI_DRIVER_BUILD_ROOT!${TMP_BUILD_PATH}!
 END_SED_SCRIPT
+    if [ $? -ne 0 ]; then
+        print_failure
+        exit 1
+    fi
+    print_okay
+
+    # build the package
+    debugMsg "Build the rpm package now ..."

-    #Build the package
-    rpmbuild -bb --target ${ARCH} ${TmpPkgSpec} > ${TmpPkgBuildOut} 2>&1

-    #Retrieve the absolute path to the built package
-    if [ $? -eq 0 ]; then
-        PACKAGE_STR=`grep "Wrote: .*\.rpm" ${TmpPkgBuildOut}`     #String containing info where the package was created
-        PACKAGE_FILE=`expr "${PACKAGE_STR}" : 'Wrote: \(.*\)'`    #Absolute path to the create package file
-    else
-        EXIT_CODE=1
+
+    if [ "${ARCH}" = "IA32" ]; then
+        if [ "${VERBOSE_LEVEL}" = "2" ]; then
+            rpmbuild -bb --target i586 ${TMP_SPEC_FILE} 2>&1 | tee ${TMP_BUILD_OUTPUT}
+        else
+            rpmbuild -bb --target i586 ${TMP_SPEC_FILE} > ${TMP_BUILD_OUTPUT} 2>&1
+        fi
+    elif [ "${ARCH}" = "AMD64" ]; then
+        if [ "${VERBOSE_LEVEL}" = "2" ]; then
+            rpmbuild -bb --target x86_64 ${TMP_SPEC_FILE} 2>&1 | tee ${TMP_BUILD_OUTPUT}
+        else
+            rpmbuild -bb --target x86_64 ${TMP_SPEC_FILE} > ${TMP_BUILD_OUTPUT} 2>&1
+        fi
     fi
-
-    #After-build diagnostics and processing
-    if [ ${EXIT_CODE} -eq 0 ]; then
-        AbsInstallerParentDir=`cd ${InstallerRootDir}/.. 2>/dev/null && pwd`     # Absolute path to the installer parent directory
-        cp ${PACKAGE_FILE} ${AbsInstallerParentDir}    # Copy the created package to the directory where the self-extracting driver archive is located
-        echo "Package ${AbsInstallerParentDir}/`basename ${PACKAGE_FILE}` has been successfully generated"
-    else
+    if [ -n "`grep 'RPM build errors' ${TMP_BUILD_OUTPUT}`" ]; then
+        echo -n -e "\n"
+        tail -n 20 ${TMP_BUILD_OUTPUT}
         echo "Package build failed!"
-        EXIT_CODE=1
+        print_failure
+        rm -f ${TMP_SPEC_FILE} > /dev/null
+        rm -f ${TMP_BUILD_OUTPUT} > /dev/null
+        rm -rf ${TMP_BUILD_PATH} > /dev/null
+        rm -f ${PACKAGE_FILE}
+        exit 1
     fi
-
-    #Clean-up
-    rm -f ${TmpPkgSpec} > /dev/null
-    rm -f ${TmpPkgBuildOut} > /dev/null
-    rm -rf ${TmpDrvFilesDir} > /dev/null
-    rm -f /usr/src/packages/BUILD/files.fglrx \
-          ${PACKAGE_FILE}
-
-    exit ${EXIT_CODE}
+    print_okay
+
+    # retrieve the absolute path to the built package
+    debugMsg "Retrieve the absolute path to the built package ..."
+    PACKAGE_STR=`grep "Wrote: .*\.rpm" ${TMP_BUILD_OUTPUT}`             # String containing info where the package was created
+    PACKAGE_FILE_WITH_PATH=`expr "${PACKAGE_STR}" : 'Wrote: \(.*\)'`    # Absolute path to the create package file
+    PACKAGE_FILE=`basename ${PACKAGE_FILE_WITH_PATH}`
+    print_okay
+
+    # after-build diagnostics and processing
+    debugMsg "After-build diagnostics and processing ...\n"
+    INSTALLER_PARENT_PATH=`cd ${INSTALLER_PATH}/.. 2>/dev/null && pwd`  # Absolute path to the installer parent directory
+    cp ${PACKAGE_FILE_WITH_PATH} ${INSTALLER_PARENT_PATH}               # Copy the created package to the directory where the self-extracting driver archive is located
+    echo -n -e "\nPackage ${INSTALLER_PARENT_PATH}/${PACKAGE_FILE} has been successfully generated\n"
+    echo -n -e "\nInstall or update the RPM package as follows:\n\n   zypper install ${PACKAGE_FILE}\n\n"
+    print_okay
+
+    # clean-up
+    debugMsg "Remove unneeded paths and files ...${VERBOSE_2_LINE_BREAK}"
+    rm ${VERBOSE_OPTION} -f ${TMP_SPEC_FILE} \
+        || checkReturnOutput $?
+    rm ${VERBOSE_OPTION} -f ${TMP_BUILD_OUTPUT} \
+        || checkReturnOutput $?
+    rm ${VERBOSE_OPTION} -rf ${TMP_BUILD_PATH} \
+        || checkReturnOutput $?
+    rm ${VERBOSE_OPTION} -f ${PACKAGE_FILE_WITH_PATH} \
+        || checkReturnOutput $?
+    print_okay
+
+    debugMsg "Finished!" && print_okay
+
+    exit 0
 }

 #Starting point of this script, process the {action} argument

 #Requested action
-action=$1
+ACTION=$1

-case "${action}" in
+case "${ACTION}" in
 --get-supported)
-    getSupportedPackages
+    getSupportedPackages
     ;;
 --buildpkg)
-    package=$2
-    if [ "${package}" != "" ]
-    then
-        support_flag=false
-        for supported_list in `getSupportedPackages`
+    PACKAGE=$2
+    if [ "${PACKAGE}" = "SUSE-autodetection" ]; then
+        echo "Auto detection mode:"
+        if [ -f "/etc/SuSE-release" ]; then
+            SUSE_NAME=`head -n 1 /etc/SuSE-release | cut -f1 -d" "`
+            SUSE_VERSION=`grep VERSION /etc/SuSE-release | sed -e 's/VERSION\s=\s//g'`
+
+            if [ "${SUSE_NAME}" = "openSUSE" ]; then
+                ATI_SUSE_NAME="SUSE"
+            else
+                ATI_SUSE_NAME="SLE"
+            fi
+
+            ATI_SUSE_VERSION=`echo "${SUSE_VERSION}" | sed -e 's/\.//g'`
+
+            ARCH="$(uname -m)"
+            case "${ARCH}" in
+                i?86)
+                    ATI_ARCH="IA32"
+                    ;;
+                x86_64)
+                    ATI_ARCH="AMD64"
+                    ;;
+            esac
+
+            PACKAGE="${ATI_SUSE_NAME}${ATI_SUSE_VERSION}-${ATI_ARCH}"
+
+            echo "   Distribution: ${SUSE_NAME}"
+            echo "   Version:      ${SUSE_VERSION}"
+            echo "   Architecture: ${ARCH}"
+            echo "   Package name: ${ATI_SUSE_NAME}${ATI_SUSE_VERSION}-${ATI_ARCH}"
+        fi
+    fi
+
+    if [ "${PACKAGE}" != "" ]; then
+        SUPPORT_FLAG="false"
+        for SUPPORTED_LIST in `getSupportedPackages`
         do
-            if [ "${supported_list}" = "${package}" ]
-            then
-                support_flag=true
+            if [ "${SUPPORTED_LIST}" = "${PACKAGE}" ]; then
+                SUPPORT_FLAG="true"
                 break
             fi
         done
-        if [ "${support_flag}" = "true" ]
-        then
-            buildPackage ${package}
+        if [ "${SUPPORT_FLAG}" = "true" ]; then
+            buildPackage ${PACKAGE}
         else
             echo "Requested package is not supported."
         fi
     else
-        echo "Please provide package name"
-    fi
+        echo "Please provide package name"
+    fi
     exit 0
     ;;
 *|--*)
-    echo ${action}: unsupported option passed by ati-installer.sh
+    echo "${ACTION}: unsupported option passed by ati-installer.sh"
     exit 0
     ;;
 esac
-
diff --git a/SuSE/boot.fglrxrebuild b/SuSE/boot.fglrxrebuild
new file mode 100755
index 0000000..d67888d
--- /dev/null
+++ b/SuSE/boot.fglrxrebuild
@@ -0,0 +1,135 @@
+#!/bin/sh
+#
+# Copyright (c) 2010, Sebastian Siebert (freespacer@gmx.de)
+# All rights reserved.
+#
+# 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.
+#
+# Changelog:
+#
+# Version 1.0 - inital development
+#
+# /etc/init.d/fglrxrebuild
+#
+### BEGIN INIT INFO
+# Provides:          boot.fglrxrebuild
+# Required-Start:    $local_fs
+# Should-Start:
+# Required-Stop:     $null
+# Should-Stop:
+# Default-Start:     B
+# Default-Stop:
+# Short-Description: Automatically rebuild the fglrx kernel module
+# Description:       A service to build a fglrx kernel module for new kernels
+### END INIT INFO
+
+# Shell functions sourced from /etc/rc.status:
+#      rc_check         check and set local and overall rc status
+#      rc_status        check and set local and overall rc status
+#      rc_status -v     be verbose in local rc status and clear it afterwards
+#      rc_status -v -r  ditto and clear both the local and overall rc status
+#      rc_status -s     display "skipped" and exit with status 3
+#      rc_status -u     display "unused" and exit with status 3
+#      rc_failed        set local and overall rc status to failed
+#      rc_failed <num>  set local and overall rc status to <num>
+#      rc_reset         clear both the local and overall rc status
+#      rc_exit          exit appropriate to overall rc status
+#      rc_active        checks whether a service is activated by symlinks
+. /etc/rc.status
+
+# Reset status of this service
+rc_reset
+
+# Return values acc. to LSB for all commands but status:
+# 0      - success
+# 1       - generic or unspecified error
+# 2       - invalid or excess argument(s)
+# 3       - unimplemented feature (e.g. "reload")
+# 4       - user had insufficient privileges
+# 5       - program is not installed
+# 6       - program is not configured
+# 7       - program is not running
+# 8--199  - reserved (8--99 LSB, 100--149 distrib, 150--199 appl)
+#
+# Note that starting an already running service, stopping
+# or restarting a not-running service as well as the restart
+# with force-reload (in case signaling is not supported) are
+# considered a success.
+
+case "$1" in
+    start)
+        echo "Check for rebuild the fglrx kernel module if necessary ..."
+        FGLRX_KERNEL_MODULE="/lib/modules/`uname -r`/extra/fglrx.ko"
+
+        if [ ! -f "${FGLRX_KERNEL_MODULE}" ]; then
+            echo "   ${FGLRX_KERNEL_MODULE} does not exist. I build it NOW. Please wait ..."
+            /usr/bin/fglrx-kernel-build.sh >/var/log/fglrx-build.log 2>&1
+        else
+            echo "   The fglrx kernel module was already builded."
+        fi
+
+        echo "Check for the fglrx kernel module is running..."
+        if [ -z "`lsmod | grep fglrx`" ]; then
+            echo "   The fglrx kernel module is not loaded! Try it to modeprobe now ..."
+            modprobe --first-time fglrx
+            if [ -n "`lsmod | grep fglrx`" ]; then
+                echo "   The fglrx kernel module was successfully loaded."
+                rc_failed 0
+            else
+                echo "   FATAL: The fglrx kernel module could not loaded!"
+                rc_failed 1
+            fi
+        else
+            echo "   The fglrx kernel module is loaded."
+            rc_failed 0
+        fi
+
+
+        # Remember status and be verbose
+        rc_status -v
+        ;;
+    stop)
+        # we ignored this commands
+        ;;
+    status)
+        echo "Checking for the fglrx kernel module is running ..."
+        FGLRX_KERNEL_MODULE="/lib/modules/`uname -r`/extra/fglrx.ko"
+
+        if [ ! -f "${FGLRX_KERNEL_MODULE}" ]; then
+            echo "   FATAL: The fglrx kernel module was not builded."
+            rc_failed 1
+        else
+            if [ -z "`lsmod | grep fglrx`" ]; then
+                echo "   FATAL: The fglrx kernel module is not loaded!"
+                rc_failed 1
+            else
+                rc_failed 0
+            fi
+        fi
+        rc_status -v
+        ;;
+    *)
+        echo "Usage: $0 {start|stop|status}"
+        exit 1
+        ;;
+esac
+rc_exit
diff --git a/SuSE/fglrx-kernel-build.sh b/SuSE/fglrx-kernel-build.sh
index 8f9a35f..a55be20 100755
--- a/SuSE/fglrx-kernel-build.sh
+++ b/SuSE/fglrx-kernel-build.sh
@@ -1,80 +1,87 @@
 #!/bin/sh
+#
+# Copyright (c) 2010 Sebastian Siebert (freespacer@gmx.de)
+# All rights reserved.
+#
+# 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.

-linuxsrc=/lib/modules/$(uname -r)/build
-linuxinclude=/lib/modules/$(uname -r)/source/include
+# compile only supported kernels

-if [ ! -d "$linuxsrc" ]; then
-  echo
-  echo "*************************************************************"
-  echo "Package \"kernel-source\" needs to be installed by YaST2 first!"
-  echo "*************************************************************"
-  echo
-  exit 1
-fi
+KERNEL_LIST="`rpm -q kernel kernel-desktop kernel-default kernel-pae | grep -v 'not installed' | sort`"

-if [ ! -x /usr/bin/make ]; then
-  echo
-  echo "****************************************************"
-  echo "Package \"make\" needs to be installed by YaST2 first!"
-  echo "****************************************************"
-  echo
-  exit 1
-fi
+for KERNEL in ${KERNEL_LIST}
+do
+    KERNEL_LIBRARY="`rpm --list -q ${KERNEL} | sort | grep -m 1 '/lib/modules/'`"
+    LINUX_SOURCE="${KERNEL_LIBRARY}/build"
+    LINUX_INCLUDE="${KERNEL_LIBRARY}/source/include"
+    echo -e "\n\n"
+    printf '*%.0s' $(seq 1 80) && echo -n -e "\n"
+    echo "*   Kernel:  ${KERNEL}`printf ' %.0s' $(seq 1 $[66-${#KERNEL}])`*"
+    echo "*   Source:  ${LINUX_SOURCE}`printf ' %.0s' $(seq 1 $[66-${#LINUX_SOURCE}])`*"
+    echo "*   Include: ${LINUX_INCLUDE}`printf ' %.0s' $(seq 1 $[66-${#LINUX_INCLUDE}])`*"
+    printf '*%.0s' $(seq 1 80) && echo -n -e "\n"
+    echo -e "\n\n"

-if [ ! -x /usr/bin/gcc ]; then
-  echo
-  echo "**************************************************"
-  echo "Package \"gcc\" needs to be installed by YaST2 first!"
-  echo "**************************************************"
-  echo
-  exit 1
-fi
+    # resolve if we are building for a kernel with a fix for CVE-2010-3081
+    # On kernels with the fix, use arch_compat_alloc_user_space instead
+    # of compat_alloc_user_space since the latter is GPL-only
+    COMPAT_ALLOC_USER_SPACE=compat_alloc_user_space

-# resolve if we are building for a kernel with a fix for CVE-2010-3081
-# On kernels with the fix, use arch_compat_alloc_user_space instead
-# of compat_alloc_user_space since the latter is GPL-only
-COMPAT_ALLOC_USER_SPACE=compat_alloc_user_space
-
-src_file=$linuxinclude/../arch/x86/include/asm/compat.h
-if [ ! -e $src_file ];
-then
-  src_file=$linuxinclude/asm-x86_64/compat.h
-fi
-if [ ! -e $src_file ];
-then
-  echo "Warning:"
-  echo "kernel includes at $linuxincludes not found or incomplete"
-  echo "file: $src_file"
-  echo ""
-else
-  if [ `cat $src_file | grep -c arch_compat_alloc_user_space` -gt 0 ]
-  then
-    COMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space
-  fi
-  echo "file $src_file says: COMPAT_ALLOC_USER_SPACE=$COMPAT_ALLOC_USER_SPACE"
-fi
-
-pushd /usr/src/kernel-modules/fglrx
-  make -C $linuxsrc M=$PWD MODFLAGS="-DMODULE -DATI -DFGL -DCOMPAT_ALLOC_USER_SPACE=$COMPAT_ALLOC_USER_SPACE"
-  if [ $? -ne 0 ]; then
-    echo
-    echo "******************************"
-    echo "Build of kernel module failed!"
-    echo "******************************"
-    echo
-    exit 1
-  fi
-  make -C $linuxsrc M=$PWD modules_install
-  if [ $? -ne 0 ]; then
-    echo
-    echo "*************************************"
-    echo "Installation of kernel module failed!"
-    echo "*************************************"
-    echo
-    exit 1
-  fi
-  make -C $linuxsrc M=$PWD clean
-  depmod -a
-popd
+    SOURCE_FILE=${LINUX_INCLUDE}/../arch/x86/include/asm/compat.h
+    if [ ! -e ${SOURCE_FILE} ]; then
+        SOURCE_FILE=${LINUX_INCLUDE}/asm-x86_64/compat.h
+    fi
+    if [ ! -e ${SOURCE_FILE} ]; then
+        echo "Warning:"
+        echo "kernel includes at ${LINUX_INCLUDE} not found or incomplete"
+        echo "file: ${SOURCE_FILE}"
+        echo  -n -e "\n"
+    else
+        if [ `cat ${SOURCE_FILE} | grep -c arch_compat_alloc_user_space` -gt 0 ]; then
+            COMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space
+        fi
+        echo "file ${SOURCE_FILE} says: COMPAT_ALLOC_USER_SPACE=${COMPAT_ALLOC_USER_SPACE}"
+    fi
+    pushd /usr/src/kernel-modules/fglrx
+        make -C ${LINUX_SOURCE} M=${PWD} MODFLAGS="-DMODULE -DATI -DFGL -DCOMPAT_ALLOC_USER_SPACE=${COMPAT_ALLOC_USER_SPACE}"
+        if [ $? -ne 0 ]; then
+            echo -n -e "\n"
+            echo "******************************"
+            echo "Build of kernel module failed!"
+            echo "******************************"
+            echo -n -e "\n"
+            exit 1
+        fi
+        make -C ${LINUX_SOURCE} M=${PWD} modules_install
+        if [ $? -ne 0 ]; then
+            echo -n -e "\n"
+            echo "*************************************"
+            echo "Installation of kernel module failed!"
+            echo "*************************************"
+            echo -n -e "\n"
+        fi
+        make -C ${LINUX_SOURCE} M=${PWD} clean
+    popd
+done

+depmod -a
 exit 0
diff --git a/SuSE/fglrx.spec b/SuSE/fglrx.spec
index aa42583..13744c3 100644
--- a/SuSE/fglrx.spec
+++ b/SuSE/fglrx.spec
@@ -2,18 +2,24 @@
 # spec file header                                                          #
 #############################################################################

-Name: fglrx
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
+Name:           %PACKAGE_NAME
+Summary:        %ATI_DRIVER_SUMMARY
+Version:        %ATI_DRIVER_VERSION
+Release:        %ATI_DRIVER_RELEASE
+License:        %ATI_DRIVER_VENDOR
+URL:            %ATI_DRIVER_URL
+Group:          Servers
+PreReq:         %insserv_prereq %fillup_prereq
+Requires:       gcc make patch kernel-source kernel-syms
+%if %suse_version < 1130
+Requires:       linux-kernel-headers
+%else
+Requires:       kernel-devel kernel-default-devel kernel-desktop-devel
+%endif
+Provides:       fglrx km_fglrx
+Obsoletes:      fglrx km_fglrx ati-fglrxG02 x11-video-fglrxG02
+ExclusiveArch:  %ix86 x86_64
+BuildRoot:      %ATI_DRIVER_BUILD_ROOT

 %if %suse_version > 1010
 %define MODULES_DIR       /usr/%{_lib}/xorg/modules
@@ -42,321 +48,237 @@ rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT
 cp -a %ATI_DRIVER_BUILD_ROOT/* $RPM_BUILD_ROOT
 %endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
+tmpdir=$(mktemp -d /tmp/ati_fglrx.XXXXXX)
 mkdir $tmpdir/fglrx
 mv $RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv $tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
 #
-mkdir -p $RPM_BUILD_ROOT/usr/bin \
-         $RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
+mkdir -p $RPM_BUILD_ROOT/etc/ati \
+         $RPM_BUILD_ROOT/etc/init.d \
+         $RPM_BUILD_ROOT/etc/modprobe.d \
+         $RPM_BUILD_ROOT/etc/pam.d \
+         $RPM_BUILD_ROOT/etc/security/console.apps \
+         $RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
 %ifarch x86_64
-         $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
+         $RPM_BUILD_ROOT/usr/X11R6/lib \
 %endif
-         $RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
+         $RPM_BUILD_ROOT/usr/bin \
+         $RPM_BUILD_ROOT/usr/include/ATI/GL \
          $RPM_BUILD_ROOT/usr/include/GL \
-         $RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
+         $RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
+         $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
 %ifarch x86_64
-         $RPM_BUILD_ROOT/usr/X11R6/lib \
+         $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
          $RPM_BUILD_ROOT/usr/lib \
 %endif
-         $RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         $RPM_BUILD_ROOT/usr/share/pixmaps \
+%if %suse_version > 1020
+         $RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d \
+%else
+         $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts \
+%endif
+         $RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers} \
+         $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
          $RPM_BUILD_ROOT/usr/sbin \
+         $RPM_BUILD_ROOT/usr/share/applications \
+         $RPM_BUILD_ROOT/usr/share/ati/{amdcccle,%{_lib}} \
+         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,patches,user-manual} \
          $RPM_BUILD_ROOT/usr/share/man/man8 \
-         $RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         $RPM_BUILD_ROOT/etc/ati
+         $RPM_BUILD_ROOT/usr/share/pixmaps \
+         $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
+#         $RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
 pushd $tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* $RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    $RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p $RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su $RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati $RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* $RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* $RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
+    install -m 644 etc/ati/* \
+                   $RPM_BUILD_ROOT/etc/ati
+    install -m 755 etc/ati/authatieventsd.sh \
+                   $RPM_BUILD_ROOT/etc/ati
+    install -m 755 etc/init.d/* \
+                   $RPM_BUILD_ROOT/etc/init.d
+    ln -s /etc/init.d/atieventsd $RPM_BUILD_ROOT/usr/sbin/rcatieventsd
+    install -m 644 etc/modprobe.d/* \
+                   $RPM_BUILD_ROOT/etc/modprobe.d
+    ln -s su $RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
+    install -m 755 etc/security/console.apps/amdcccle-su \
+                   $RPM_BUILD_ROOT/etc/security/console.apps
+    install -m 755 usr/X11R6/%{_lib}/* \
+                   $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
+    ln -s libGL.so.1.2 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
+    ln -s libGL.so.1 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
+    ln -s libfglrx_dm.so.1.0 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_dm.so.1
+    ln -s libfglrx_dm.so.1 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_dm.so
+    ln -s libfglrx_gamma.so.1.0 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
+    ln -s libfglrx_gamma.so.1 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so
 %ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/$file ]; then
-      mv usr/X11R6/lib/$file .
-      install -m 755 $file                 $RPM_BUILD_ROOT/usr/lib
-      rm $file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/$file .
-    install -m 755 $file                   $RPM_BUILD_ROOT/usr/lib
-    rm $file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       $RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup $i .; done
-  # make sure we don't overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    install -m 644 LICENSE.xmlconfig     $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 $RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            $RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  install -m 444 fglrx_drv.*             $RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           $RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            $RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               $RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle | grep -q libexpat.so.0 || \
-      install -m 755 amdcccle  $RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                $RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  install -m 755 libfglrx_gamma.so*      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libfglrx_gamma.so.1.0          $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           $RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               $RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 $RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  install -m 755 atigetsysteminfo.sh     $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  install -m 755 atieventsd              $RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  install -m 644 atieventsd.8.gz         $RPM_BUILD_ROOT/usr/share/man/man8
-  test -f $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    install -m 755 $RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.a && \
-    install -m 644 libfglrx_tvout.a      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f libfglrx_tvout.so.1.0 && \
-    install -m 644 libfglrx_tvout.so.1.0 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f esut.a && \
-    install -m 444 esut.a                $RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f glesx.so && \
-    install -m 444 glesx.so              $RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f amdxmm.so && \
-    install -m 444 amdxmm.so             $RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f atiodcli && \
-    install -m 755 atiodcli              $RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    install -m 755 atiode                $RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    install -m 755 amdxdg-su             $RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    install -m 755 amdupdaterandrconfig  $RPM_BUILD_ROOT/usr/bin
-  mkdir -p $RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  install -m 644 amdccclesu.desktop      $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/%{_lib}
-%ifarch %ix86
-  install -m 755 libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-%endif
-  install -m 755 libaticaldd.so libaticalrt.so libaticalcl.so $RPM_BUILD_ROOT/usr/%{_lib}
-  install -m 755 libatiuki.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-  test -f libglx.so && \
-    install -m 755 libglx.so            $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
-popd
-pushd $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  # add kernel patches here
-%if %suse_version > 1030
-  patch -p0 -s < $RPM_SOURCE_DIR/ati-CONFIG_SMP.diff
-%endif
-%if %suse_version > 1100
-  patch -p1 -s < $RPM_SOURCE_DIR/ati-2.6.27-build-fix-1.diff
+    install -m 755 usr/X11R6/lib/* \
+                   $RPM_BUILD_ROOT/usr/X11R6/lib
+    ln -s libGL.so.1.2 $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
+    ln -s libGL.so.1 $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
+    ln -s libfglrx_dm.so.1.0 $RPM_BUILD_ROOT/usr/X11R6/lib/libfglrx_dm.so.1
+    ln -s libfglrx_dm.so.1 $RPM_BUILD_ROOT/usr/X11R6/lib/libfglrx_dm.so
+    ln -s libfglrx_gamma.so.1.0 $RPM_BUILD_ROOT/usr/X11R6/lib/libfglrx_gamma.so.1
+    ln -s libfglrx_gamma.so.1 $RPM_BUILD_ROOT/usr/X11R6/lib/libfglrx_gamma.so
 %endif
-  rm -f *.orig
-popd
-install -m 755 $RPM_SOURCE_DIR/fglrx-kernel-build.sh \
-  $RPM_BUILD_ROOT/usr/bin
-cp $RPM_SOURCE_DIR/fglrx.png $RPM_BUILD_ROOT/usr/share/pixmaps
+    install -m 755 usr/bin/* \
+                   $RPM_BUILD_ROOT/usr/bin
+    install -m 644 usr/include/ATI/GL/* \
+                   $RPM_BUILD_ROOT/usr/include/ATI/GL
+    install -m 644 usr/include/GL/* \
+                   $RPM_BUILD_ROOT/usr/include/GL
+    install -m 644 usr/include/X11/extensions/* \
+                   $RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions
+    install -m 755 usr/%{_lib}/dri/* \
+                   $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
+    rm -rf usr/%{_lib}/dri
 %if %suse_version > 1020
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d/
-install -m 755 $RPM_SOURCE_DIR/ati-powermode.sh \
-  $RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
-%if %suse_version < 1110
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-install -m 755 $RPM_SOURCE_DIR/toggle-lvds.sh \
-  $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
+    install -m 755 usr/%{_lib}/pm-utils/power.d/* \
+                   $RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
+    rm -rf usr/%{_lib}/pm-utils
 %else
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-install -m 755 $RPM_SOURCE_DIR/{ati-powermode.sh,toggle-lvds.sh} \
-  $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
+    install -m 755 usr/%{_lib}/powersave/scripts/* \
+                   $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts
+    rm -rf usr/%{_lib}/powersave
 %endif
-mkdir -p $RPM_BUILD_ROOT/etc/init.d
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  install -m 755 $RPM_SOURCE_DIR/atieventsd.sh \
-    $RPM_BUILD_ROOT/etc/init.d/atieventsd
-  ln -snf /etc/init.d/atieventsd $RPM_BUILD_ROOT/usr/sbin/rcatieventsd
-fi
-rm -rf $tmpdir
-rm -rf $RPM_SOURCE_DIR
-echo > files.fglrx
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  cat > files.fglrx << EOF
-/etc/init.d/atieventsd
-/usr/sbin/atieventsd
-/usr/sbin/rcatieventsd
-EOF
-if [ -f $RPM_BUILD_ROOT/usr/share/man/man8/atieventsd.8.gz ]; then
-  echo "/usr/share/man/man8/atieventsd.8.gz" >> files.fglrx
-fi
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdcccle ]; then
-  echo "/usr/bin/amdcccle" >> files.fglrx
-  echo "/usr/share/ati/amdcccle/" >> files.fglrx
-  echo "/usr/share/pixmaps/ccc_large.xpm" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiodcli ]; then
-  echo "/usr/bin/atiodcli" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiode ]; then
-  echo "/usr/bin/atiode" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdxdg-su ]; then
-  echo "/usr/bin/amdxdg-su" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdupdaterandrconfig ]; then
-  echo "/usr/bin/amdupdaterandrconfig" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop ]; then
-  echo  "/usr/share/applications/amdccclesu.desktop" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop ]; then
-  echo  "/usr/share/applications/amdcccle.desktop" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.a ]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0 ]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/sbin/atigetsysteminfo.sh ]; then
-  echo "/usr/sbin/atigetsysteminfo.sh" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/esut.a ]; then
-  echo "%{MODULES_DIR}/esut.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/glesx.so ]; then
-  echo "%{MODULES_DIR}/glesx.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/amdxmm.so ]; then
-  echo "%{MODULES_DIR}/amdxmm.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/updates/extensions/libglx.so ]; then
-  echo "%{MODULES_DIR}/updates/extensions/libglx.so" >> files.fglrx
-fi
+    install -m 755 usr/%{_lib}/xorg/modules/drivers/* \
+                   $RPM_BUILD_ROOT%{MODULES_DIR}/drivers
+    install -m 755 usr/%{_lib}/xorg/modules/linux/* \
+                   $RPM_BUILD_ROOT%{MODULES_DIR}/linux
+    install -m 755 usr/%{_lib}/xorg/modules/updates/extensions/* \
+                   $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
+    rm -rf usr/%{_lib}/xorg/modules/{drivers,linux,updates}
+    install -m 755 usr/%{_lib}/xorg/modules/* \
+                   $RPM_BUILD_ROOT%{MODULES_DIR}
+    rm -rf usr/%{_lib}/xorg
+    install -m 755 usr/%{_lib}/* \
+                   $RPM_BUILD_ROOT/usr/%{_lib}
+    ln -s libAMDXvBA.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}/libAMDXvBA.so.1
+    ln -s libAMDXvBA.so.1 $RPM_BUILD_ROOT/usr/%{_lib}/libAMDXvBA.so
+    ln -s libXvBAW.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}/libXvBAW.so.1
+    ln -s libXvBAW.so.1 $RPM_BUILD_ROOT/usr/%{_lib}/libXvBAW.so
+    ln -s libatiuki.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}/libatiuki.so.1
+    ln -s libatiuki.so.1 $RPM_BUILD_ROOT/usr/%{_lib}/libatiuki.so
 %ifarch x86_64
-if [ -f $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS32_DIR}/fglrx_dri.so" >> files.fglrx
-fi
+    install -m 755 usr/lib/dri/* \
+                   $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
+    rm -rf usr/lib/dri
+    install -m 644 usr/lib/* \
+                   $RPM_BUILD_ROOT/usr/lib
+    ln -s libAMDXvBA.so.1.0 $RPM_BUILD_ROOT/usr/lib/libAMDXvBA.so.1
+    ln -s libAMDXvBA.so.1 $RPM_BUILD_ROOT/usr/lib/libAMDXvBA.so
+    ln -s libXvBAW.so.1.0 $RPM_BUILD_ROOT/usr/lib/libXvBAW.so.1
+    ln -s libXvBAW.so.1 $RPM_BUILD_ROOT/usr/lib/libXvBAW.so
+    ln -s libatiuki.so.1.0 $RPM_BUILD_ROOT/usr/lib/libatiuki.so.1
+    ln -s libatiuki.so.1 $RPM_BUILD_ROOT/usr/lib/libatiuki.so
 %endif
-if [ -f $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-find $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx -type f | xargs chmod 644
-mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
-echo "blacklist radeon" > $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf
+    install -m 755 usr/sbin/* \
+                   $RPM_BUILD_ROOT/usr/sbin
+    install -m 644 usr/share/applications/* \
+                   $RPM_BUILD_ROOT/usr/share/applications
+    echo "GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
+    echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
+    echo "GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
+    echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
+    install -m 755 usr/share/ati/amdcccle/* \
+                   $RPM_BUILD_ROOT/usr/share/ati/amdcccle
+    install -m 755 usr/share/ati/%{_lib}/* \
+                   $RPM_BUILD_ROOT/usr/share/ati/%{_lib}
+    install -m 644 usr/share/doc/packages/fglrx/articles/* \
+                   $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/articles
+    install -m 644 usr/share/doc/packages/fglrx/patches/* \
+                   $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/patches
+    install -m 644 usr/share/doc/packages/fglrx/user-manual/* \
+                   $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/user-manual
+    rm -rf usr/share/doc/packages/fglrx/{articles,patches,user-manual}
+    install -m 644 usr/share/doc/packages/fglrx/* \
+                   $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
+    test -f usr/share/man/man8/atieventsd.8 && \
+        gzip usr/share/man/man8/atieventsd.8 && \
+        test -f usr/share/man/man8/atieventsd.8.gz && \
+        install -m 644 usr/share/man/man8/atieventsd.8.gz \
+                       $RPM_BUILD_ROOT/usr/share/man/man8
+    install -m 644 usr/share/pixmaps/* \
+                   $RPM_BUILD_ROOT/usr/share/pixmaps
+    install -m 644 usr/src/kernel-modules/fglrx/2.6.x/* \
+                   $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
+    rm -rf usr/src/kernel-modules/fglrx/2.6.x
+    install -m 644 usr/src/kernel-modules/fglrx/* \
+                   $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
+    ln -s 2.6.x/Makefile $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
+popd
+rm -rf $tmpdir
 export NO_BRP_CHECK_RPATH=true

 %post
 %run_ldconfig
+CURRENT_PATH=`pwd`
+pushd /usr/src/kernel-modules/fglrx
+# add kernel patches here
+echo "Apply some patches ..."
+%if %suse_version > 1030
+    patch -p0 -s < /usr/share/doc/packages/fglrx/patches/ati-CONFIG_SMP.patch
+    if [ $? -eq 0 ]; then
+        echo "ati-CONFIG_SMP.patch applied successfully."
+    else
+        echo "ati-CONFIG_SMP.patch could not applied! Please report this bug to Sebastian Siebert <freespacer@gmx.de>. Thank you."
+    fi
+%endif
+%if %suse_version > 1100
+    patch -p0 -s < /usr/share/doc/packages/fglrx/patches/ati-2.6.27-build-fix-1.patch
+    if [ $? -eq 0 ]; then
+        echo "ati-2.6.27-build-fix-1.patch applied successfully."
+    else
+        echo "ati-2.6.27-build-fix-1.patch could not applied! Please report this bug to Sebastian Siebert <freespacer@gmx.de>. Thank you."
+    fi
+%endif
+%if %suse_version > 1130
+    patch -p0 -s < /usr/share/doc/packages/fglrx/patches/ati-opensuse-11.4.patch
+    if [ $? -eq 0 ]; then
+        echo "ati-opensuse-11.4.patch applied successfully."
+    else
+        echo "ati-opensuse-11.4.patch could not applied! Please report this bug to Sebastian Siebert <freespacer@gmx.de>. Thank you."
+    fi
+%endif
+# placeholder_for_additional_patches_for_fglrx_sources
+rm -f *.orig
+popd
 if [ -x etc/init.d/atieventsd ]; then
-  # Create symbolic run level links for atieventsd start script:
-  %{fillup_and_insserv -y atieventsd}
+    # Create symbolic run level links for atieventsd start script:
+    %{fillup_and_insserv -y atieventsd}
 fi
 %if %suse_version < 1110
-  if [ -r /etc/powersave/events ]; then
-    grep -q "EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
-     sed -e 's/\(EVENT_DAEMON_SCHEME_CHANGE="\)\(.*\)/\1ati-powermode.sh \2/g' -i /etc/powersave/events
-  fi
+    if [ -r /etc/powersave/events ]; then
+        grep -q "EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
+            sed -e 's/\(EVENT_DAEMON_SCHEME_CHANGE="\)\(.*\)/\1ati-powermode.sh \2/g' -i /etc/powersave/events
+    fi
 %endif
+if [ -x etc/init.d/boot.fglrxrebuild ]; then
+    # Create symbolic run level links for boot.fglrxrebuild start script:
+    %{fillup_and_insserv -y boot.fglrxrebuild}
+fi
 if [ -f etc/X11/xorg.conf ]; then
-  test -f etc/X11/xorg.conf.fglrx-post || \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
+    test -f etc/X11/xorg.conf.fglrx-post || \
+        cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
 fi
 test -f %{MODULES_DIR}/drivers/fglrx_drv.so && \
-  touch %{MODULES_DIR}/drivers/fglrx_drv.so
+    touch %{MODULES_DIR}/drivers/fglrx_drv.so
 %if %suse_version > 1010
 # ATI libGL still uses the old X11R6 path :-(
 mkdir -p usr/X11R6/%{_lib}/modules
 test -d usr/X11R6/%{_lib}/modules/dri && \
-  mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
-ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri
+    mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
+ln -snf %{DRI_DRIVERS_DIR} usr/X11R6/%{_lib}/modules/dri
 %ifarch x86_64
 mkdir -p usr/X11R6/lib/modules
 test -d usr/X11R6/lib/modules/dri && \
-  mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
-ln -snf /usr/lib/dri usr/X11R6/lib/modules/dri
+    mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
+ln -snf %{DRI_DRIVERS32_DIR} usr/X11R6/lib/modules/dri
 %endif
 %endif
 usr/bin/fglrx-kernel-build.sh
 if [ $? -ne 0 ]; then
-  echo
-  echo "**************************************************************"
-  echo "Building/installation of fglrx kernel module failed! Try again"
-  echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
-  echo "**************************************************************"
-  echo
+    echo
+    echo "**************************************************************"
+    echo "Building/installation of fglrx kernel module failed! Try again"
+    echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
+    echo "**************************************************************"
+    echo
 fi
 echo
 echo "*************************************************************"
@@ -366,96 +288,91 @@ echo "*************************************************************"
 echo
 # recreate initrd without KMS, if the use of KMS is enabled in initrd
 if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
-  sed -i 's/NO_KMS_IN_INITRD.*/
NO_KMS_IN_INITRD="yes"/g' /etc/sysconfig/kernel
-  mkinitrd
+    sed -i '
s/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="yes"/g' /etc/sysconfig/kernel
+    mkinitrd
 fi
 exit 0

 %preun
 if [ -x etc/init.d/atieventsd ]; then
-  %stop_on_removal atieventsd
+    %stop_on_removal atieventsd
+fi
+if [ -x etc/init.d/boot.fglrxrebuild ]; then
+    %stop_on_removal boot.fglrxrebuild
 fi
 exit 0

 %postun
 if [ -x etc/init.d/atieventsd ]; then
-  # Rearrange run level symlinks after removing the atieventsd init script
-  %{insserv_cleanup}
+    # Rearrange run level symlinks after removing the atieventsd init script
+    %{insserv_cleanup}
 fi
 if [ "$1" -eq 0 ]; then
-  test -f etc/X11/xorg.conf && \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
-  if [ -r etc/X11/xorg.conf.fglrx-post ]; then
-    mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
-  fi
-  # cleanup
-  rm -rf usr/src/kernel-modules/fglrx/
-  # try to unload the kernel module, which fails if it is still in use
-  rmmod fglrx &> /dev/null
-  # now remove it
-  if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
-    modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
-    rm $modfile
-  fi
+    test -f etc/X11/xorg.conf && \
+        cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
+    if [ -r etc/X11/xorg.conf.fglrx-post ]; then
+        mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
+    fi
+    # cleanup
+    rm -rf usr/src/kernel-modules/fglrx/
+    # try to unload the kernel module, which fails if it is still in use
+    rmmod fglrx &> /dev/null
+    # now remove it
+    if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
+        modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
+        rm $modfile
+    fi
 fi
 exit 0

-%files -f files.fglrx
+%files
 %defattr(-, root, root)
-%dir /usr/include/GL
+#%dir /usr/include/GL
+#%ifarch x86_64
+#%dir %{DRI_DRIVERS_DIR}
+#%endif
+#%dir /etc/security/console.apps/
+/etc/ati/*
+/etc/init.d/*
+/etc/modprobe.d/*
+/etc/pam.d/*
+/etc/security/console.apps/*
+/usr/X11R6/%{_lib}/*
 %ifarch x86_64
-%dir %{DRI_DRIVERS_DIR}
+/usr/X11R6/lib/*
 %endif
-%dir /etc/security/console.apps/
-/etc/ati/
-/etc/modprobe.d/fglrx.conf
-/etc/pam.d/amdcccle-su
-/etc/security/console.apps/amdcccle-su
-/usr/include/GL/glxATI.h
-/usr/include/GL/glATI.h
+/usr/bin/*
+/usr/include/ATI/GL/*
+/usr/include/GL/*
+%{X11_INCLUDE_DIR}/extensions/*
+/usr/%{_lib}/*
+%{DRI_DRIVERS_DIR}/*
 %ifarch x86_64
 /usr/lib/*
-/usr/X11R6/lib/libGL.so
-/usr/X11R6/lib/libGL.so.1
-/usr/X11R6/lib/libGL.so.1.2
+%{DRI_DRIVERS32_DIR}/*
 %endif
-/usr/%{_lib}/libatiadlxx.so
-/usr/%{_lib}/libatiuki.so.1.0
-%ifarch %ix86
-/usr/%{_lib}/libAMDXvBA.cap
-/usr/%{_lib}/libAMDXvBA.so.1.0
-/usr/%{_lib}/libXvBAW.so.1.0
+%if %suse_version > 1020
+/usr/%{_lib}/pm-utils/*
 %endif
-/usr/%{_lib}/libaticaldd.so
-/usr/%{_lib}/libaticalrt.so
-/usr/%{_lib}/libaticalcl.so
-/usr/X11R6/%{_lib}/libGL.so
-/usr/X11R6/%{_lib}/libGL.so.1
-/usr/X11R6/%{_lib}/libGL.so.1.2
-/usr/sbin/amdnotifyui
-/usr/share/ati/%{_lib}/libQt*
-/usr/share/pixmaps/fglrx.png
-/usr/share/doc/packages/fglrx
-/usr/bin/fgl_glxgears
-/usr/bin/fglrx_xgamma
-/usr/bin/fglrxinfo
-/usr/bin/fglrx-kernel-build.sh
-/usr/bin/aticonfig
-%{X11_INCLUDE_DIR}/extensions/fglrx_gamma.h
-/usr/X11R6/%{_lib}/libfglrx_gamma.a
-/usr/X11R6/%{_lib}/libfglrx_gamma.so*
+%{MODULES_DIR}/*
+%{MODULES_DIR}/drivers/*
+%{MODULES_DIR}/linux/*
+%{MODULES_DIR}/updates/extensions/*
+/usr/sbin/*
+/usr/share/applications/*
+/usr/share/ati/amdcccle/*
+/usr/share/ati/%{_lib}/*
+/usr/share/doc/packages/fglrx/*
+/usr/share/doc/packages/fglrx/articles/*
+/usr/share/doc/packages/fglrx/user-manual/*
+/usr/share/man/man8/*
+/usr/share/pixmaps/*
+/usr/src/kernel-modules/fglrx/*
+/usr/src/kernel-modules/fglrx/2.6.x/*
 %verify(not mtime) %{MODULES_DIR}/drivers/fglrx_drv.*
-%{MODULES_DIR}/linux/libfglrxdrm.*
-# km_fglrx
-%dir /usr/src/kernel-modules
-/usr/src/kernel-modules/fglrx/
 # powersave script
 %if %suse_version > 1020
-/usr/%{_lib}/pm-utils/power.d/ati-powermode.sh
+/usr/%{_lib}/pm-utils/power.d/*
 %else
-/usr/%{_lib}/powersave/scripts/ati-powermode.sh
-%endif
-%if %suse_version < 1110
-# Thinkpad Hotkey script
-/usr/%{_lib}/powersave/scripts/toggle-lvds.sh
+/usr/%{_lib}/powersave/scripts/*
 %endif
diff --git a/SuSE/supportedOS.sh b/SuSE/supportedOS.sh
new file mode 100755
index 0000000..e661bc4
--- /dev/null
+++ b/SuSE/supportedOS.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+#
+# Copyright (c) 2010 Sebastian Siebert (freespacer@gmx.de)
+# All rights reserved.
+#
+# 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.
+
+# The pattern of this array is
+# for openSUSE: SUSE[(number+1)]="SUSE(version) (arch)-(xorg version) ..."
+# for SLE:      SUSE[(number+1)]="SLE(version) (arch)-(xorg version) ..."
+#
+# Important: The array should have a consecutive numbers!
+
+# supported os
+SUSE[0]="SLE10 IA32-x690 AMD64-x690_64a"
+SUSE[1]="SLE11 IA32-x740 AMD64-x740_64a"
+SUSE[2]="SUSE111 IA32-x740 AMD64-x740_64a"
+SUSE[3]="SUSE112 IA32-x740 AMD64-x740_64a"
+SUSE[4]="SUSE113 IA32-x750 AMD64-x750_64a"
+SUSE[5]="SUSE autodetection"
+
+# unsupported os (unofficial package list)
+# unlock this list with, for example:
+# UNSUPPORTED="yes" ./ati-driver-installer-<version>-<architecture>.run --buildpkg SuSE/SUSE114-AMD64
+if [ "${UNSUPPORTED}" = "yes" -o "${UNSUPPORTED}" = "true" -o "${UNSUPPORTED}" = "1"  ]; then
+    SUSE[6]="SUSE114 IA32-x760 AMD64-x760_64a"
+fi
diff --git a/SuSE/x690.SLE10-IA32.spec b/SuSE/x690.SLE10-IA32.spec
deleted file mode 100644
index 3f11b66..0000000
--- a/SuSE/x690.SLE10-IA32.spec
+++ /dev/null
@@ -1,461 +0,0 @@
-#############################################################################
-# spec file header                                                          #
-#############################################################################
-
-Name: fglrx_6_9_0_SLE10
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
-
-%if %suse_version > 1010
-%define MODULES_DIR       /usr/%{_lib}/xorg/modules
-%define DRI_DRIVERS_DIR   /usr/%{_lib}/dri
-%define DRI_DRIVERS32_DIR /usr/lib/dri
-%define X11_INCLUDE_DIR   /usr/include/X11
-%else
-%define MODULES_DIR       /usr/X11R6/%{_lib}/modules
-%define DRI_DRIVERS_DIR   /usr/X11R6/%{_lib}/modules/dri
-%define DRI_DRIVERS32_DIR /usr/X11R6/lib/modules/dri
-%define X11_INCLUDE_DIR   /usr/X11R6/include/X11
-%endif
-
-# local rpm options
-%define __check_files   %{nil}
-
-#############################################################################
-# spec file description                                                     #
-#############################################################################
-%description
-%ATI_DRIVER_DESCRIPTION
-
-%install
-%if %suse_version > 1110
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT
-cp -a %ATI_DRIVER_BUILD_ROOT/* $RPM_BUILD_ROOT
-%endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
-mkdir $tmpdir/fglrx
-mv $RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv $tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
-#
-mkdir -p $RPM_BUILD_ROOT/usr/bin \
-         $RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
-%ifarch x86_64
-         $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
-%endif
-         $RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
-         $RPM_BUILD_ROOT/usr/include/GL \
-         $RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
-%ifarch x86_64
-         $RPM_BUILD_ROOT/usr/X11R6/lib \
-         $RPM_BUILD_ROOT/usr/lib \
-%endif
-         $RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         $RPM_BUILD_ROOT/usr/share/pixmaps \
-         $RPM_BUILD_ROOT/usr/sbin \
-         $RPM_BUILD_ROOT/usr/share/man/man8 \
-         $RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         $RPM_BUILD_ROOT/etc/ati
-pushd $tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* $RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    $RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p $RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su $RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati $RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* $RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* $RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
-%ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/$file ]; then
-      mv usr/X11R6/lib/$file .
-      install -m 755 $file                 $RPM_BUILD_ROOT/usr/lib
-      rm $file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/$file .
-    install -m 755 $file                   $RPM_BUILD_ROOT/usr/lib
-    rm $file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       $RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup $i .; done
-  # make sure we don'
t overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    
install -m 644 LICENSE.xmlconfig     $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 $RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            $RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    
install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  
install -m 444 fglrx_drv.*             $RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           $RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            $RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               $RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle grep -q libexpat.so.0 || \
-      
install -m 755 amdcccle  $RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                $RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
install -m 755 libfglrx_gamma.so*      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
ln -snf libfglrx_gamma.so.1.0          $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           $RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               $RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 $RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  
install -m 755 atigetsysteminfo.sh     $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  
install -m 755 atieventsd              $RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    
gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  
install -m 644 atieventsd.8.gz         $RPM_BUILD_ROOT/usr/share/man/man8
-  test -f $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    
install -m 755 $RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.&& \
-    
install -m 644 libfglrx_tvout.a      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
test -f libfglrx_tvout.so.1.0 && \
-    
install -m 644 libfglrx_tvout.so.1.0 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
test -f esut.&& \
-    
install -m 444 esut.a                $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f glesx.so && \
-    
install -m 444 glesx.so              $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f amdxmm.so && \
-    
install -m 444 amdxmm.so             $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f atiodcli && \
-    
install -m 755 atiodcli              $RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    
install -m 755 atiode                $RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    
install -m 755 amdxdg-su             $RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    
install -m 755 amdupdaterandrconfig  $RPM_BUILD_ROOT/usr/bin
-  mkdir -p $RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  install -m 644 amdccclesu.desktop      $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/%{_lib}
-%
ifarch %ix86
-  install -m 755 libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-%endif
-  
install -m 755 libaticaldd.so libaticalrt.so libaticalcl.so $RPM_BUILD_ROOT/usr/%{_lib}
-  
install -m 755 libatiuki.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-  
test -f libglx.so && \
-    
install -m 755 libglx.so            $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
-popd
-pushd $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  # add kernel patches here
-%if %suse_version 1030
-  patch -p0 -$RPM_SOURCE_DIR/ati-CONFIG_SMP.diff
-%endif
-%if %
suse_version 1100
-  patch -p1 -$RPM_SOURCE_DIR/ati-2.6.27-build-fix-1.diff
-%endif
-  
rm -*.orig
-popd
-install -m 755 $RPM_SOURCE_DIR/fglrx-kernel-build.sh \
-  
$RPM_BUILD_ROOT/usr/bin
-cp $RPM_SOURCE_DIR/fglrx.png $RPM_BUILD_ROOT/usr/share/pixmaps
-%if %suse_version 1020
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d/
-
install -m 755 $RPM_SOURCE_DIR/ati-powermode.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
-%if %suse_version 1110
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-
install -m 755 $RPM_SOURCE_DIR/toggle-lvds.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-%else
-
mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-
install -m 755 $RPM_SOURCE_DIR/{ati-powermode.sh,toggle-lvds.sh} \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-
mkdir -p $RPM_BUILD_ROOT/etc/init.d
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  install -m 755 $RPM_SOURCE_DIR/atieventsd.sh \
-    
$RPM_BUILD_ROOT/etc/init.d/atieventsd
-  ln -snf /etc/init.d/atieventsd $RPM_BUILD_ROOT/usr/sbin/rcatieventsd
-fi
-rm -rf $tmpdir
-rm -rf $RPM_SOURCE_DIR
-echo > files.fglrx
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  cat files.fglrx << EOF
-/etc/init.d/atieventsd
-/usr/sbin/atieventsd
-/usr/sbin/rcatieventsd
-EOF
-if [ -f $RPM_BUILD_ROOT/usr/share/man/man8/atieventsd.8.gz ]; then
-  echo "/usr/share/man/man8/atieventsd.8.gz" >> files.fglrx
-fi
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdcccle ]; then
-  echo "/usr/bin/amdcccle" >> files.fglrx
-  echo "/usr/share/ati/amdcccle/" >> files.fglrx
-  echo "/usr/share/pixmaps/ccc_large.xpm" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiodcli ]; then
-  echo "/usr/bin/atiodcli" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiode ]; then
-  echo "/usr/bin/atiode" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdxdg-su ]; then
-  echo "/usr/bin/amdxdg-su" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdupdaterandrconfig ]; then
-  echo "/usr/bin/amdupdaterandrconfig" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop ]; then
-  echo  "/usr/share/applications/amdccclesu.desktop" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop ]; then
-  echo  "/usr/share/applications/amdcccle.desktop" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0 ]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/sbin/atigetsysteminfo.sh ]; then
-  echo "/usr/sbin/atigetsysteminfo.sh" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/esut.]; then
-  echo "%{MODULES_DIR}/esut.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/glesx.so ]; then
-  echo "%{MODULES_DIR}/glesx.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/amdxmm.so ]; then
-  echo "%{MODULES_DIR}/amdxmm.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/updates/extensions/libglx.so ]; then
-  echo "%{MODULES_DIR}/updates/extensions/libglx.so" >> files.fglrx
-fi
-%ifarch x86_64
-if [ -f $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS32_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-%endif
-if [ -
f $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-find $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx -type f xargs chmod 644
-mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
-echo "blacklist radeon" $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf
-export NO_BRP_CHECK_RPATH=true
-
-%
post
-%run_ldconfig
-if [ -x etc/init.d/atieventsd ]; then
-  # Create symbolic run level links for atieventsd start script:
-  %{fillup_and_insserv -y atieventsd}
-
fi
-%if %suse_version 1110
-  if [ -/etc/powersave/events ]; then
-    grep -"EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
-     
sed -'s/\(EVENT_DAEMON_SCHEME_CHANGE="\)\(.*\)/\1ati-powermode.sh \2/g' -/etc/powersave/events
-  fi
-%endif
-if [ -
f etc/X11/xorg.conf ]; then
-  test -f etc/X11/xorg.conf.fglrx-post || \
-    
cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
-fi
-test -%{MODULES_DIR}/drivers/fglrx_drv.so && \
-  
touch %{MODULES_DIR}/drivers/fglrx_drv.so
-%if %suse_version 1010
-# ATI libGL still uses the old X11R6 path :-(
-mkdir -p usr/X11R6/%{_lib}/modules
-test -d usr/X11R6/%{_lib}/modules/dri && \
-  
mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
-ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri
-%ifarch x86_64
-mkdir -p usr/X11R6/lib/modules
-test -d usr/X11R6/lib/modules/dri && \
-  
mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
-ln -snf /usr/lib/dri usr/X11R6/lib/modules/dri
-%endif
-%endif
-
usr/bin/fglrx-kernel-build.sh
-if [ $? -ne 0 ]; then
-  echo
-  echo 
"**************************************************************"
-  echo "Building/installation of fglrx kernel module failed! Try again"
-  echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
-  echo "**************************************************************"
-  echo
-
fi
-echo
-echo 
"*************************************************************"
-echo "Please read \"/usr/share/doc/packages/fglrx/README.SuSE\" for"
-echo "configuration details when using SaX2."
-echo "*************************************************************"
-echo
-
# recreate initrd without KMS, if the use of KMS is enabled in initrd
-if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
-  sed -i 's/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="
yes"/g' /etc/sysconfig/kernel
-  mkinitrd
-fi
-exit 0
-
-%preun
-if [ -x etc/init.d/atieventsd ]; then
-  %stop_on_removal atieventsd
-fi
-exit 0
-
-%postun
-if [ -x etc/init.d/atieventsd ]; then
-  # Rearrange run level symlinks after removing the atieventsd init script
-  %{insserv_cleanup}
-fi
-if [ "
$1" -eq 0 ]; then
-  test -f etc/X11/xorg.conf && \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
-  if [ -r etc/X11/xorg.conf.fglrx-post ]; then
-    mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
-  fi
-  # cleanup
-  rm -rf usr/src/kernel-modules/fglrx/
-  # try to unload the kernel module, which fails if it is still in use
-  rmmod fglrx &> /dev/null
-  # now remove it
-  if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
-    modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
-    rm 
$modfile
-  fi
-fi
-exit 0
-
-%files -f files.fglrx
-%defattr(-, root, root)
-%dir /usr/include/GL
-%ifarch x86_64
-%dir %{DRI_DRIVERS_DIR}
-%endif
-%dir /etc/security/console.apps/
-/etc/ati/
-/etc/modprobe.d/fglrx.conf
-/etc/pam.d/amdcccle-su
-/etc/security/console.apps/amdcccle-su
-/usr/include/GL/glxATI.h
-/usr/include/GL/glATI.h
-%ifarch x86_64
-/usr/lib/*
-/usr/X11R6/lib/libGL.so
-/usr/X11R6/lib/libGL.so.1
-/usr/X11R6/lib/libGL.so.1.2
-%endif
-/usr/%{_lib}/libatiadlxx.so
-/usr/%{_lib}/libatiuki.so.1.0
-%ifarch %ix86
-/usr/%{_lib}/libAMDXvBA.cap
-/usr/%{_lib}/libAMDXvBA.so.1.0
-/usr/%{_lib}/libXvBAW.so.1.0
-%endif
-/usr/%{_lib}/libaticaldd.so
-/usr/%{_lib}/libaticalrt.so
-/usr/%{_lib}/libaticalcl.so
-/usr/X11R6/%{_lib}/libGL.so
-/usr/X11R6/%{_lib}/libGL.so.1
-/usr/X11R6/%{_lib}/libGL.so.1.2
-/usr/sbin/amdnotifyui
-/usr/share/ati/%{_lib}/libQt*
-/usr/share/pixmaps/fglrx.png
-/usr/share/doc/packages/fglrx
-/usr/bin/fgl_glxgears
-/usr/bin/fglrx_xgamma
-/usr/bin/fglrxinfo
-/usr/bin/fglrx-kernel-build.sh
-/usr/bin/aticonfig
-%{X11_INCLUDE_DIR}/extensions/fglrx_gamma.h
-/usr/X11R6/%{_lib}/libfglrx_gamma.a
-/usr/X11R6/%{_lib}/libfglrx_gamma.so*
-%verify(not mtime) %{MODULES_DIR}/drivers/fglrx_drv.*
-%{MODULES_DIR}/linux/libfglrxdrm.*
-# km_fglrx
-%dir /usr/src/kernel-modules
-/usr/src/kernel-modules/fglrx/
-# powersave script
-%if %suse_version > 1020
-/usr/%{_lib}/pm-utils/power.d/ati-powermode.sh
-%else
-/usr/%{_lib}/powersave/scripts/ati-powermode.sh
-%endif
-%if %suse_version < 1110
-# Thinkpad Hotkey script
-/usr/%{_lib}/powersave/scripts/toggle-lvds.sh
-%endif
diff --git a/SuSE/x690.SUSE103-IA32.spec b/SuSE/x690.SUSE103-IA32.spec
deleted file mode 100644
index 29125c9..0000000
--- a/SuSE/x690.SUSE103-IA32.spec
+++ /dev/null
@@ -1,461 +0,0 @@
-#############################################################################
-# spec file header                                                          #
-#############################################################################
-
-Name: fglrx_6_9_0_SUSE103
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
-
-%if %suse_version > 1010
-%define MODULES_DIR       /usr/%{_lib}/xorg/modules
-%define DRI_DRIVERS_DIR   /usr/%{_lib}/dri
-%define DRI_DRIVERS32_DIR /usr/lib/dri
-%define X11_INCLUDE_DIR   /usr/include/X11
-%else
-%define MODULES_DIR       /usr/X11R6/%{_lib}/modules
-%define DRI_DRIVERS_DIR   /usr/X11R6/%{_lib}/modules/dri
-%define DRI_DRIVERS32_DIR /usr/X11R6/lib/modules/dri
-%define X11_INCLUDE_DIR   /usr/X11R6/include/X11
-%endif
-
-# local rpm options
-%define __check_files   %{nil}
-
-#############################################################################
-# spec file description                                                     #
-#############################################################################
-%description
-%ATI_DRIVER_DESCRIPTION
-
-%install
-%if %suse_version > 1110
-rm -rf 
$RPM_BUILD_ROOT
-mkdir -p 
$RPM_BUILD_ROOT
-cp -a %ATI_DRIVER_BUILD_ROOT/* 
$RPM_BUILD_ROOT
-%endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
-mkdir 
$tmpdir/fglrx
-mv 
$RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv 
$tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
-#
-mkdir -p 
$RPM_BUILD_ROOT/usr/bin \
-         
$RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
-%ifarch x86_64
-         
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
-%endif
-         
$RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         
$RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
-         
$RPM_BUILD_ROOT/usr/include/GL \
-         
$RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
-%ifarch x86_64
-         
$RPM_BUILD_ROOT/usr/X11R6/lib \
-         
$RPM_BUILD_ROOT/usr/lib \
-%endif
-         
$RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         
$RPM_BUILD_ROOT/usr/share/pixmaps \
-         
$RPM_BUILD_ROOT/usr/sbin \
-         
$RPM_BUILD_ROOT/usr/share/man/man8 \
-         
$RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         
$RPM_BUILD_ROOT/etc/ati
-pushd 
$tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* 
$RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p 
$RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    
$RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p 
$RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su 
$RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati 
$RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* 
$RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* 
$RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
-%ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            
$RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   
$RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     
$RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             
$RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           
$RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          
$RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/
$file ]; then
-      mv usr/X11R6/lib/
$file .
-      install -m 755 
$file                 $RPM_BUILD_ROOT/usr/lib
-      rm 
$file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/
$file .
-    install -m 755 
$file                   $RPM_BUILD_ROOT/usr/lib
-    rm 
$file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       
$RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup 
$i .; done
-  # make sure we don't overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    install -m 644 LICENSE.xmlconfig     
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 
$RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            
$RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    install -m 444 fglrx_dri.so          
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  install -m 444 fglrx_drv.*             
$RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           
$RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            
$RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               
$RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle | grep -q libexpat.so.0 || \
-      install -m 755 amdcccle  
$RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                
$RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libGL.so.1.2                   
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  install -m 755 libfglrx_gamma.so*      
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libfglrx_gamma.so.1.0          
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           
$RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               
$RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 
$RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  install -m 755 atigetsysteminfo.sh     
$RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  install -m 755 atieventsd              
$RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             
$RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  install -m 644 atieventsd.8.gz         
$RPM_BUILD_ROOT/usr/share/man/man8
-  test -f 
$RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    install -m 755 
$RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 
$RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.a && \
-    install -m 644 libfglrx_tvout.a      
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f libfglrx_tvout.so.1.0 && \
-    install -m 644 libfglrx_tvout.so.1.0 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f esut.a && \
-    install -m 444 esut.a                
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f glesx.so && \
-    install -m 444 glesx.so              
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f amdxmm.so && \
-    install -m 444 amdxmm.so             
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f atiodcli && \
-    install -m 755 atiodcli              
$RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    install -m 755 atiode                
$RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    install -m 755 amdxdg-su             
$RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    install -m 755 amdupdaterandrconfig  
$RPM_BUILD_ROOT/usr/bin
-  mkdir -p 
$RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        
$RPM_BUILD_ROOT/usr/share/applications
-  echo "
GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  echo "
X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  install -m 644 amdccclesu.desktop      
$RPM_BUILD_ROOT/usr/share/applications
-  echo "
GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  echo "
X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  install -m 755 libatiadlxx.so          
$RPM_BUILD_ROOT/usr/%{_lib}
-%ifarch %ix86
-  install -m 755 libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0 
$RPM_BUILD_ROOT/usr/%{_lib}
-%endif
-  install -m 755 libaticaldd.so libaticalrt.so libaticalcl.so 
$RPM_BUILD_ROOT/usr/%{_lib}
-  install -m 755 libatiuki.so.1.0 
$RPM_BUILD_ROOT/usr/%{_lib}
-  test -f libglx.so && \
-    install -m 755 libglx.so            
$RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
-popd
-pushd 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  # add kernel patches here
-%if %suse_version > 1030
-  patch -p0 -s < 
$RPM_SOURCE_DIR/ati-CONFIG_SMP.diff
-%endif
-%if %suse_version > 1100
-  patch -p1 -s < 
$RPM_SOURCE_DIR/ati-2.6.27-build-fix-1.diff
-%endif
-  rm -f *.orig
-popd
-install -m 755 
$RPM_SOURCE_DIR/fglrx-kernel-build.sh \
-  
$RPM_BUILD_ROOT/usr/bin
-cp 
$RPM_SOURCE_DIR/fglrx.png $RPM_BUILD_ROOT/usr/share/pixmaps
-%if %suse_version > 1020
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d/
-install -m 755 
$RPM_SOURCE_DIR/ati-powermode.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
-%if %suse_version < 1110
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-install -m 755 
$RPM_SOURCE_DIR/toggle-lvds.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-%else
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-install -m 755 
$RPM_SOURCE_DIR/{ati-powermode.sh,toggle-lvds.sh} \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-mkdir -p 
$RPM_BUILD_ROOT/etc/init.d
-if [ -x 
$RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  install -m 755 
$RPM_SOURCE_DIR/atieventsd.sh \
-    
$RPM_BUILD_ROOT/etc/init.d/atieventsd
-  ln -snf /etc/init.d/atieventsd 
$RPM_BUILD_ROOT/usr/sbin/rcatieventsd
-fi
-rm -rf 
$tmpdir
-rm -rf 
$RPM_SOURCE_DIR
-echo > files.fglrx
-if [ -x 
$RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  cat > files.fglrx << EOF
-/etc/init.d/atieventsd
-/usr/sbin/atieventsd
-/usr/sbin/rcatieventsd
-EOF
-if [ -f 
$RPM_BUILD_ROOT/usr/share/man/man8/atieventsd.8.gz ]; then
-  echo "
/usr/share/man/man8/atieventsd.8.gz" >> files.fglrx
-fi
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdcccle ]; then
-  echo "
/usr/bin/amdcccle" >> files.fglrx
-  echo "
/usr/share/ati/amdcccle/" >> files.fglrx
-  echo "
/usr/share/pixmaps/ccc_large.xpm" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/atiodcli ]; then
-  echo "
/usr/bin/atiodcli" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/atiode ]; then
-  echo "
/usr/bin/atiode" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdxdg-su ]; then
-  echo "
/usr/bin/amdxdg-su" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdupdaterandrconfig ]; then
-  echo "
/usr/bin/amdupdaterandrconfig" >> files.fglrx
-fi
-if [ -f  
$RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop ]; then
-  echo  "
/usr/share/applications/amdccclesu.desktop" >> files.fglrx
-fi
-if [ -f  
$RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop ]; then
-  echo  "
/usr/share/applications/amdcccle.desktop" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.a ]; then
-  echo "
/usr/X11R6/%{_lib}/libfglrx_tvout.a" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0 ]; then
-  echo "
/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/sbin/atigetsysteminfo.sh ]; then
-  echo "
/usr/sbin/atigetsysteminfo.sh" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/esut.a ]; then
-  echo "
%{MODULES_DIR}/esut.a" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/glesx.so ]; then
-  echo "
%{MODULES_DIR}/glesx.so" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/amdxmm.so ]; then
-  echo "
%{MODULES_DIR}/amdxmm.so" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/updates/extensions/libglx.so ]; then
-  echo "
%{MODULES_DIR}/updates/extensions/libglx.so" >> files.fglrx
-fi
-%ifarch x86_64
-if [ -f 
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}/fglrx_dri.so ]; then
-  echo "
%{DRI_DRIVERS32_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-%endif
-if [ -f 
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}/fglrx_dri.so ]; then
-  echo "
%{DRI_DRIVERS_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-find 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx -type f | xargs chmod 644
-mkdir -p 
$RPM_BUILD_ROOT/etc/modprobe.d
-echo "
blacklist radeon" > $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf
-export NO_BRP_CHECK_RPATH=true
-
-%post
-%run_ldconfig
-if [ -x etc/init.d/atieventsd ]; then
-  # Create symbolic run level links for atieventsd start script:
-  %{fillup_and_insserv -y atieventsd}
-fi
-%if %suse_version < 1110
-  if [ -r /etc/powersave/events ]; then
-    grep -q "
EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
-     sed -e 's/\(EVENT_DAEMON_SCHEME_CHANGE="
\)\(.*\)/\1ati-powermode.sh \2/g' -i /etc/powersave/events
-  fi
-%endif
-if [ -f etc/X11/xorg.conf ]; then
-  test -f etc/X11/xorg.conf.fglrx-post || \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
-fi
-test -f %{MODULES_DIR}/drivers/fglrx_drv.so && \
-  touch %{MODULES_DIR}/drivers/fglrx_drv.so
-%if %suse_version > 1010
-# ATI libGL still uses the old X11R6 path :-(
-mkdir -p usr/X11R6/%{_lib}/modules
-test -d usr/X11R6/%{_lib}/modules/dri && \
-  mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
-ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri
-%ifarch x86_64
-mkdir -p usr/X11R6/lib/modules
-test -d usr/X11R6/lib/modules/dri && \
-  mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
-ln -snf /usr/lib/dri usr/X11R6/lib/modules/dri
-%endif
-%endif
-usr/bin/fglrx-kernel-build.sh
-if [ $? -ne 0 ]; then
-  echo
-  echo "**************************************************************"
-  echo "Building/installation of fglrx kernel module failed! Try again"
-  echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
-  echo "**************************************************************"
-  echo
-fi
-echo
-echo "*************************************************************"
-echo "Please read \"/usr/share/doc/packages/fglrx/README.SuSE\" for"
-echo "configuration details when using SaX2."
-echo "*************************************************************"
-echo
-# recreate initrd without KMS, if the use of KMS is enabled in initrd
-if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
-  sed -i '
s/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="yes"/g' /etc/sysconfig/kernel
-  mkinitrd
-fi
-exit 0
-
-%preun
-if [ -x etc/init.d/atieventsd ]; then
-  %stop_on_removal atieventsd
-fi
-exit 0
-
-%postun
-if [ -x etc/init.d/atieventsd ]; then
-  # Rearrange run level symlinks after removing the atieventsd init script
-  %{insserv_cleanup}
-fi
-if [ "$1" -eq 0 ]; then
-  test -f etc/X11/xorg.conf && \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
-  if [ -r etc/X11/xorg.conf.fglrx-post ]; then
-    mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
-  fi
-  # cleanup
-  rm -rf usr/src/kernel-modules/fglrx/
-  # try to unload the kernel module, which fails if it is still in use
-  rmmod fglrx &> /dev/null
-  # now remove it
-  if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
-    modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
-    rm $modfile
-  fi
-fi
-exit 0
-
-%files -f files.fglrx
-%defattr(-, root, root)
-%dir /usr/include/GL
-%ifarch x86_64
-%dir %{DRI_DRIVERS_DIR}
-%endif
-%dir /etc/security/console.apps/
-/etc/ati/
-/etc/modprobe.d/fglrx.conf
-/etc/pam.d/amdcccle-su
-/etc/security/console.apps/amdcccle-su
-/usr/include/GL/glxATI.h
-/usr/include/GL/glATI.h
-%ifarch x86_64
-/usr/lib/*
-/usr/X11R6/lib/libGL.so
-/usr/X11R6/lib/libGL.so.1
-/usr/X11R6/lib/libGL.so.1.2
-%endif
-/usr/%{_lib}/libatiadlxx.so
-/usr/%{_lib}/libatiuki.so.1.0
-%ifarch %ix86
-/usr/%{_lib}/libAMDXvBA.cap
-/usr/%{_lib}/libAMDXvBA.so.1.0
-/usr/%{_lib}/libXvBAW.so.1.0
-%endif
-/usr/%{_lib}/libaticaldd.so
-/usr/%{_lib}/libaticalrt.so
-/usr/%{_lib}/libaticalcl.so
-/usr/X11R6/%{_lib}/libGL.so
-/usr/X11R6/%{_lib}/libGL.so.1
-/usr/X11R6/%{_lib}/libGL.so.1.2
-/usr/sbin/amdnotifyui
-/usr/share/ati/%{_lib}/libQt*
-/usr/share/pixmaps/fglrx.png
-/usr/share/doc/packages/fglrx
-/usr/bin/fgl_glxgears
-/usr/bin/fglrx_xgamma
-/usr/bin/fglrxinfo
-/usr/bin/fglrx-kernel-build.sh
-/usr/bin/aticonfig
-%{X11_INCLUDE_DIR}/extensions/fglrx_gamma.h
-/usr/X11R6/%{_lib}/libfglrx_gamma.a
-/usr/X11R6/%{_lib}/libfglrx_gamma.so*
-%verify(not mtime) %{MODULES_DIR}/drivers/fglrx_drv.*
-%{MODULES_DIR}/linux/libfglrxdrm.*
-# km_fglrx
-%dir /usr/src/kernel-modules
-/usr/src/kernel-modules/fglrx/
-# powersave script
-%if %suse_version > 1020
-/usr/%{_lib}/pm-utils/power.d/ati-powermode.sh
-%else
-/usr/%{_lib}/powersave/scripts/ati-powermode.sh
-%endif
-%if %suse_version < 1110
-# Thinkpad Hotkey script
-/usr/%{_lib}/powersave/scripts/toggle-lvds.sh
-%endif
diff --git a/SuSE/x690.SUSE110-IA32.spec b/SuSE/x690.SUSE110-IA32.spec
deleted file mode 100644
index f76d1a7..0000000
--- a/SuSE/x690.SUSE110-IA32.spec
+++ /dev/null
@@ -1,461 +0,0 @@
-#############################################################################
-# spec file header                                                          #
-#############################################################################
-
-Name: fglrx_6_9_0_SUSE110
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
-
-%if %suse_version > 1010
-%define MODULES_DIR       /usr/%{_lib}/xorg/modules
-%define DRI_DRIVERS_DIR   /usr/%{_lib}/dri
-%define DRI_DRIVERS32_DIR /usr/lib/dri
-%define X11_INCLUDE_DIR   /usr/include/X11
-%else
-%define MODULES_DIR       /usr/X11R6/%{_lib}/modules
-%define DRI_DRIVERS_DIR   /usr/X11R6/%{_lib}/modules/dri
-%define DRI_DRIVERS32_DIR /usr/X11R6/lib/modules/dri
-%define X11_INCLUDE_DIR   /usr/X11R6/include/X11
-%endif
-
-# local rpm options
-%define __check_files   %{nil}
-
-#############################################################################
-# spec file description                                                     #
-#############################################################################
-%description
-%ATI_DRIVER_DESCRIPTION
-
-%install
-%if %suse_version > 1110
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT
-cp -a %ATI_DRIVER_BUILD_ROOT/* $RPM_BUILD_ROOT
-%endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
-mkdir $tmpdir/fglrx
-mv $RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv $tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
-#
-mkdir -p $RPM_BUILD_ROOT/usr/bin \
-         $RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
-%ifarch x86_64
-         $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
-%endif
-         $RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
-         $RPM_BUILD_ROOT/usr/include/GL \
-         $RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
-%ifarch x86_64
-         $RPM_BUILD_ROOT/usr/X11R6/lib \
-         $RPM_BUILD_ROOT/usr/lib \
-%endif
-         $RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         $RPM_BUILD_ROOT/usr/share/pixmaps \
-         $RPM_BUILD_ROOT/usr/sbin \
-         $RPM_BUILD_ROOT/usr/share/man/man8 \
-         $RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         $RPM_BUILD_ROOT/etc/ati
-pushd $tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* $RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    $RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p $RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su $RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati $RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* $RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* $RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
-%ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/$file ]; then
-      mv usr/X11R6/lib/$file .
-      install -m 755 $file                 $RPM_BUILD_ROOT/usr/lib
-      rm $file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/$file .
-    install -m 755 $file                   $RPM_BUILD_ROOT/usr/lib
-    rm $file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       $RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup $i .; done
-  # make sure we don'
t overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    
install -m 644 LICENSE.xmlconfig     $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 $RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            $RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    
install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  
install -m 444 fglrx_drv.*             $RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           $RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            $RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               $RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle grep -q libexpat.so.0 || \
-      
install -m 755 amdcccle  $RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                $RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
install -m 755 libfglrx_gamma.so*      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
ln -snf libfglrx_gamma.so.1.0          $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           $RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               $RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 $RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  
install -m 755 atigetsysteminfo.sh     $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  
install -m 755 atieventsd              $RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    
gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  
install -m 644 atieventsd.8.gz         $RPM_BUILD_ROOT/usr/share/man/man8
-  test -f $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    
install -m 755 $RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.&& \
-    
install -m 644 libfglrx_tvout.a      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
test -f libfglrx_tvout.so.1.0 && \
-    
install -m 644 libfglrx_tvout.so.1.0 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
test -f esut.&& \
-    
install -m 444 esut.a                $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f glesx.so && \
-    
install -m 444 glesx.so              $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f amdxmm.so && \
-    
install -m 444 amdxmm.so             $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f atiodcli && \
-    
install -m 755 atiodcli              $RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    
install -m 755 atiode                $RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    
install -m 755 amdxdg-su             $RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    
install -m 755 amdupdaterandrconfig  $RPM_BUILD_ROOT/usr/bin
-  mkdir -p $RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  install -m 644 amdccclesu.desktop      $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/%{_lib}
-%
ifarch %ix86
-  install -m 755 libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-%endif
-  
install -m 755 libaticaldd.so libaticalrt.so libaticalcl.so $RPM_BUILD_ROOT/usr/%{_lib}
-  
install -m 755 libatiuki.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-  
test -f libglx.so && \
-    
install -m 755 libglx.so            $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
-popd
-pushd $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  # add kernel patches here
-%if %suse_version 1030
-  patch -p0 -$RPM_SOURCE_DIR/ati-CONFIG_SMP.diff
-%endif
-%if %
suse_version 1100
-  patch -p1 -$RPM_SOURCE_DIR/ati-2.6.27-build-fix-1.diff
-%endif
-  
rm -*.orig
-popd
-install -m 755 $RPM_SOURCE_DIR/fglrx-kernel-build.sh \
-  
$RPM_BUILD_ROOT/usr/bin
-cp $RPM_SOURCE_DIR/fglrx.png $RPM_BUILD_ROOT/usr/share/pixmaps
-%if %suse_version 1020
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d/
-
install -m 755 $RPM_SOURCE_DIR/ati-powermode.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
-%if %suse_version 1110
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-
install -m 755 $RPM_SOURCE_DIR/toggle-lvds.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-%else
-
mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-
install -m 755 $RPM_SOURCE_DIR/{ati-powermode.sh,toggle-lvds.sh} \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-
mkdir -p $RPM_BUILD_ROOT/etc/init.d
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  install -m 755 $RPM_SOURCE_DIR/atieventsd.sh \
-    
$RPM_BUILD_ROOT/etc/init.d/atieventsd
-  ln -snf /etc/init.d/atieventsd $RPM_BUILD_ROOT/usr/sbin/rcatieventsd
-fi
-rm -rf $tmpdir
-rm -rf $RPM_SOURCE_DIR
-echo > files.fglrx
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  cat files.fglrx << EOF
-/etc/init.d/atieventsd
-/usr/sbin/atieventsd
-/usr/sbin/rcatieventsd
-EOF
-if [ -f $RPM_BUILD_ROOT/usr/share/man/man8/atieventsd.8.gz ]; then
-  echo "/usr/share/man/man8/atieventsd.8.gz" >> files.fglrx
-fi
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdcccle ]; then
-  echo "/usr/bin/amdcccle" >> files.fglrx
-  echo "/usr/share/ati/amdcccle/" >> files.fglrx
-  echo "/usr/share/pixmaps/ccc_large.xpm" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiodcli ]; then
-  echo "/usr/bin/atiodcli" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiode ]; then
-  echo "/usr/bin/atiode" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdxdg-su ]; then
-  echo "/usr/bin/amdxdg-su" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdupdaterandrconfig ]; then
-  echo "/usr/bin/amdupdaterandrconfig" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop ]; then
-  echo  "/usr/share/applications/amdccclesu.desktop" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop ]; then
-  echo  "/usr/share/applications/amdcccle.desktop" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0 ]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/sbin/atigetsysteminfo.sh ]; then
-  echo "/usr/sbin/atigetsysteminfo.sh" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/esut.]; then
-  echo "%{MODULES_DIR}/esut.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/glesx.so ]; then
-  echo "%{MODULES_DIR}/glesx.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/amdxmm.so ]; then
-  echo "%{MODULES_DIR}/amdxmm.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/updates/extensions/libglx.so ]; then
-  echo "%{MODULES_DIR}/updates/extensions/libglx.so" >> files.fglrx
-fi
-%ifarch x86_64
-if [ -f $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS32_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-%endif
-if [ -
f $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-find $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx -type f xargs chmod 644
-mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
-echo "blacklist radeon" $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf
-export NO_BRP_CHECK_RPATH=true
-
-%
post
-%run_ldconfig
-if [ -x etc/init.d/atieventsd ]; then
-  # Create symbolic run level links for atieventsd start script:
-  %{fillup_and_insserv -y atieventsd}
-
fi
-%if %suse_version 1110
-  if [ -/etc/powersave/events ]; then
-    grep -"EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
-     
sed -'s/\(EVENT_DAEMON_SCHEME_CHANGE="\)\(.*\)/\1ati-powermode.sh \2/g' -/etc/powersave/events
-  fi
-%endif
-if [ -
f etc/X11/xorg.conf ]; then
-  test -f etc/X11/xorg.conf.fglrx-post || \
-    
cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
-fi
-test -%{MODULES_DIR}/drivers/fglrx_drv.so && \
-  
touch %{MODULES_DIR}/drivers/fglrx_drv.so
-%if %suse_version 1010
-# ATI libGL still uses the old X11R6 path :-(
-mkdir -p usr/X11R6/%{_lib}/modules
-test -d usr/X11R6/%{_lib}/modules/dri && \
-  
mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
-ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri
-%ifarch x86_64
-mkdir -p usr/X11R6/lib/modules
-test -d usr/X11R6/lib/modules/dri && \
-  
mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
-ln -snf /usr/lib/dri usr/X11R6/lib/modules/dri
-%endif
-%endif
-
usr/bin/fglrx-kernel-build.sh
-if [ $? -ne 0 ]; then
-  echo
-  echo 
"**************************************************************"
-  echo "Building/installation of fglrx kernel module failed! Try again"
-  echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
-  echo "**************************************************************"
-  echo
-
fi
-echo
-echo 
"*************************************************************"
-echo "Please read \"/usr/share/doc/packages/fglrx/README.SuSE\" for"
-echo "configuration details when using SaX2."
-echo "*************************************************************"
-echo
-
# recreate initrd without KMS, if the use of KMS is enabled in initrd
-if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
-  sed -i 's/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="
yes"/g' /etc/sysconfig/kernel
-  mkinitrd
-fi
-exit 0
-
-%preun
-if [ -x etc/init.d/atieventsd ]; then
-  %stop_on_removal atieventsd
-fi
-exit 0
-
-%postun
-if [ -x etc/init.d/atieventsd ]; then
-  # Rearrange run level symlinks after removing the atieventsd init script
-  %{insserv_cleanup}
-fi
-if [ "
$1" -eq 0 ]; then
-  test -f etc/X11/xorg.conf && \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
-  if [ -r etc/X11/xorg.conf.fglrx-post ]; then
-    mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
-  fi
-  # cleanup
-  rm -rf usr/src/kernel-modules/fglrx/
-  # try to unload the kernel module, which fails if it is still in use
-  rmmod fglrx &> /dev/null
-  # now remove it
-  if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
-    modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
-    rm 
$modfile
-  fi
-fi
-exit 0
-
-%files -f files.fglrx
-%defattr(-, root, root)
-%dir /usr/include/GL
-%ifarch x86_64
-%dir %{DRI_DRIVERS_DIR}
-%endif
-%dir /etc/security/console.apps/
-/etc/ati/
-/etc/modprobe.d/fglrx.conf
-/etc/pam.d/amdcccle-su
-/etc/security/console.apps/amdcccle-su
-/usr/include/GL/glxATI.h
-/usr/include/GL/glATI.h
-%ifarch x86_64
-/usr/lib/*
-/usr/X11R6/lib/libGL.so
-/usr/X11R6/lib/libGL.so.1
-/usr/X11R6/lib/libGL.so.1.2
-%endif
-/usr/%{_lib}/libatiadlxx.so
-/usr/%{_lib}/libatiuki.so.1.0
-%ifarch %ix86
-/usr/%{_lib}/libAMDXvBA.cap
-/usr/%{_lib}/libAMDXvBA.so.1.0
-/usr/%{_lib}/libXvBAW.so.1.0
-%endif
-/usr/%{_lib}/libaticaldd.so
-/usr/%{_lib}/libaticalrt.so
-/usr/%{_lib}/libaticalcl.so
-/usr/X11R6/%{_lib}/libGL.so
-/usr/X11R6/%{_lib}/libGL.so.1
-/usr/X11R6/%{_lib}/libGL.so.1.2
-/usr/sbin/amdnotifyui
-/usr/share/ati/%{_lib}/libQt*
-/usr/share/pixmaps/fglrx.png
-/usr/share/doc/packages/fglrx
-/usr/bin/fgl_glxgears
-/usr/bin/fglrx_xgamma
-/usr/bin/fglrxinfo
-/usr/bin/fglrx-kernel-build.sh
-/usr/bin/aticonfig
-%{X11_INCLUDE_DIR}/extensions/fglrx_gamma.h
-/usr/X11R6/%{_lib}/libfglrx_gamma.a
-/usr/X11R6/%{_lib}/libfglrx_gamma.so*
-%verify(not mtime) %{MODULES_DIR}/drivers/fglrx_drv.*
-%{MODULES_DIR}/linux/libfglrxdrm.*
-# km_fglrx
-%dir /usr/src/kernel-modules
-/usr/src/kernel-modules/fglrx/
-# powersave script
-%if %suse_version > 1020
-/usr/%{_lib}/pm-utils/power.d/ati-powermode.sh
-%else
-/usr/%{_lib}/powersave/scripts/ati-powermode.sh
-%endif
-%if %suse_version < 1110
-# Thinkpad Hotkey script
-/usr/%{_lib}/powersave/scripts/toggle-lvds.sh
-%endif
diff --git a/SuSE/x690_64a.SLE10-AMD64.spec b/SuSE/x690_64a.SLE10-AMD64.spec
deleted file mode 100644
index 3a6d944..0000000
--- a/SuSE/x690_64a.SLE10-AMD64.spec
+++ /dev/null
@@ -1,461 +0,0 @@
-#############################################################################
-# spec file header                                                          #
-#############################################################################
-
-Name: fglrx64_6_9_0_SLE10
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
-
-%if %suse_version > 1010
-%define MODULES_DIR       /usr/%{_lib}/xorg/modules
-%define DRI_DRIVERS_DIR   /usr/%{_lib}/dri
-%define DRI_DRIVERS32_DIR /usr/lib/dri
-%define X11_INCLUDE_DIR   /usr/include/X11
-%else
-%define MODULES_DIR       /usr/X11R6/%{_lib}/modules
-%define DRI_DRIVERS_DIR   /usr/X11R6/%{_lib}/modules/dri
-%define DRI_DRIVERS32_DIR /usr/X11R6/lib/modules/dri
-%define X11_INCLUDE_DIR   /usr/X11R6/include/X11
-%endif
-
-# local rpm options
-%define __check_files   %{nil}
-
-#############################################################################
-# spec file description                                                     #
-#############################################################################
-%description
-%ATI_DRIVER_DESCRIPTION
-
-%install
-%if %suse_version > 1110
-rm -rf 
$RPM_BUILD_ROOT
-mkdir -p 
$RPM_BUILD_ROOT
-cp -a %ATI_DRIVER_BUILD_ROOT/* 
$RPM_BUILD_ROOT
-%endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
-mkdir 
$tmpdir/fglrx
-mv 
$RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv 
$tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
-#
-mkdir -p 
$RPM_BUILD_ROOT/usr/bin \
-         
$RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
-%ifarch x86_64
-         
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
-%endif
-         
$RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         
$RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
-         
$RPM_BUILD_ROOT/usr/include/GL \
-         
$RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
-%ifarch x86_64
-         
$RPM_BUILD_ROOT/usr/X11R6/lib \
-         
$RPM_BUILD_ROOT/usr/lib \
-%endif
-         
$RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         
$RPM_BUILD_ROOT/usr/share/pixmaps \
-         
$RPM_BUILD_ROOT/usr/sbin \
-         
$RPM_BUILD_ROOT/usr/share/man/man8 \
-         
$RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         
$RPM_BUILD_ROOT/etc/ati
-pushd 
$tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* 
$RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p 
$RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    
$RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p 
$RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su 
$RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati 
$RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* 
$RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* 
$RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
-%ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            
$RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   
$RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     
$RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             
$RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           
$RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          
$RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/
$file ]; then
-      mv usr/X11R6/lib/
$file .
-      install -m 755 
$file                 $RPM_BUILD_ROOT/usr/lib
-      rm 
$file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/
$file .
-    install -m 755 
$file                   $RPM_BUILD_ROOT/usr/lib
-    rm 
$file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       
$RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup 
$i .; done
-  # make sure we don't overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    install -m 644 LICENSE.xmlconfig     
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 
$RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            
$RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    install -m 444 fglrx_dri.so          
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  install -m 444 fglrx_drv.*             
$RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           
$RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            
$RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               
$RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle | grep -q libexpat.so.0 || \
-      install -m 755 amdcccle  
$RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                
$RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libGL.so.1.2                   
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  install -m 755 libfglrx_gamma.so*      
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libfglrx_gamma.so.1.0          
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           
$RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               
$RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 
$RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  install -m 755 atigetsysteminfo.sh     
$RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  install -m 755 atieventsd              
$RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             
$RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  install -m 644 atieventsd.8.gz         
$RPM_BUILD_ROOT/usr/share/man/man8
-  test -f 
$RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    install -m 755 
$RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 
$RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.a && \
-    install -m 644 libfglrx_tvout.a      
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f libfglrx_tvout.so.1.0 && \
-    install -m 644 libfglrx_tvout.so.1.0 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f esut.a && \
-    install -m 444 esut.a                
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f glesx.so && \
-    install -m 444 glesx.so              
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f amdxmm.so && \
-    install -m 444 amdxmm.so             
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f atiodcli && \
-    install -m 755 atiodcli              
$RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    install -m 755 atiode                
$RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    install -m 755 amdxdg-su             
$RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    install -m 755 amdupdaterandrconfig  
$RPM_BUILD_ROOT/usr/bin
-  mkdir -p 
$RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        
$RPM_BUILD_ROOT/usr/share/applications
-  echo "
GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  echo "
X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  install -m 644 amdccclesu.desktop      
$RPM_BUILD_ROOT/usr/share/applications
-  echo "
GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  echo "
X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  install -m 755 libatiadlxx.so          
$RPM_BUILD_ROOT/usr/%{_lib}
-%ifarch %ix86
-  install -m 755 libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0 
$RPM_BUILD_ROOT/usr/%{_lib}
-%endif
-  install -m 755 libaticaldd.so libaticalrt.so libaticalcl.so 
$RPM_BUILD_ROOT/usr/%{_lib}
-  install -m 755 libatiuki.so.1.0 
$RPM_BUILD_ROOT/usr/%{_lib}
-  test -f libglx.so && \
-    install -m 755 libglx.so            
$RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
-popd
-pushd 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  # add kernel patches here
-%if %suse_version > 1030
-  patch -p0 -s < 
$RPM_SOURCE_DIR/ati-CONFIG_SMP.diff
-%endif
-%if %suse_version > 1100
-  patch -p1 -s < 
$RPM_SOURCE_DIR/ati-2.6.27-build-fix-1.diff
-%endif
-  rm -f *.orig
-popd
-install -m 755 
$RPM_SOURCE_DIR/fglrx-kernel-build.sh \
-  
$RPM_BUILD_ROOT/usr/bin
-cp 
$RPM_SOURCE_DIR/fglrx.png $RPM_BUILD_ROOT/usr/share/pixmaps
-%if %suse_version > 1020
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d/
-install -m 755 
$RPM_SOURCE_DIR/ati-powermode.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
-%if %suse_version < 1110
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-install -m 755 
$RPM_SOURCE_DIR/toggle-lvds.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-%else
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-install -m 755 
$RPM_SOURCE_DIR/{ati-powermode.sh,toggle-lvds.sh} \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-mkdir -p 
$RPM_BUILD_ROOT/etc/init.d
-if [ -x 
$RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  install -m 755 
$RPM_SOURCE_DIR/atieventsd.sh \
-    
$RPM_BUILD_ROOT/etc/init.d/atieventsd
-  ln -snf /etc/init.d/atieventsd 
$RPM_BUILD_ROOT/usr/sbin/rcatieventsd
-fi
-rm -rf 
$tmpdir
-rm -rf 
$RPM_SOURCE_DIR
-echo > files.fglrx
-if [ -x 
$RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  cat > files.fglrx << EOF
-/etc/init.d/atieventsd
-/usr/sbin/atieventsd
-/usr/sbin/rcatieventsd
-EOF
-if [ -f 
$RPM_BUILD_ROOT/usr/share/man/man8/atieventsd.8.gz ]; then
-  echo "
/usr/share/man/man8/atieventsd.8.gz" >> files.fglrx
-fi
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdcccle ]; then
-  echo "
/usr/bin/amdcccle" >> files.fglrx
-  echo "
/usr/share/ati/amdcccle/" >> files.fglrx
-  echo "
/usr/share/pixmaps/ccc_large.xpm" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/atiodcli ]; then
-  echo "
/usr/bin/atiodcli" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/atiode ]; then
-  echo "
/usr/bin/atiode" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdxdg-su ]; then
-  echo "
/usr/bin/amdxdg-su" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdupdaterandrconfig ]; then
-  echo "
/usr/bin/amdupdaterandrconfig" >> files.fglrx
-fi
-if [ -f  
$RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop ]; then
-  echo  "
/usr/share/applications/amdccclesu.desktop" >> files.fglrx
-fi
-if [ -f  
$RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop ]; then
-  echo  "
/usr/share/applications/amdcccle.desktop" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.a ]; then
-  echo "
/usr/X11R6/%{_lib}/libfglrx_tvout.a" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0 ]; then
-  echo "
/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/sbin/atigetsysteminfo.sh ]; then
-  echo "
/usr/sbin/atigetsysteminfo.sh" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/esut.a ]; then
-  echo "
%{MODULES_DIR}/esut.a" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/glesx.so ]; then
-  echo "
%{MODULES_DIR}/glesx.so" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/amdxmm.so ]; then
-  echo "
%{MODULES_DIR}/amdxmm.so" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/updates/extensions/libglx.so ]; then
-  echo "
%{MODULES_DIR}/updates/extensions/libglx.so" >> files.fglrx
-fi
-%ifarch x86_64
-if [ -f 
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}/fglrx_dri.so ]; then
-  echo "
%{DRI_DRIVERS32_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-%endif
-if [ -f 
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}/fglrx_dri.so ]; then
-  echo "
%{DRI_DRIVERS_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-find 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx -type f | xargs chmod 644
-mkdir -p 
$RPM_BUILD_ROOT/etc/modprobe.d
-echo "
blacklist radeon" > $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf
-export NO_BRP_CHECK_RPATH=true
-
-%post
-%run_ldconfig
-if [ -x etc/init.d/atieventsd ]; then
-  # Create symbolic run level links for atieventsd start script:
-  %{fillup_and_insserv -y atieventsd}
-fi
-%if %suse_version < 1110
-  if [ -r /etc/powersave/events ]; then
-    grep -q "
EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
-     sed -e 's/\(EVENT_DAEMON_SCHEME_CHANGE="
\)\(.*\)/\1ati-powermode.sh \2/g' -i /etc/powersave/events
-  fi
-%endif
-if [ -f etc/X11/xorg.conf ]; then
-  test -f etc/X11/xorg.conf.fglrx-post || \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
-fi
-test -f %{MODULES_DIR}/drivers/fglrx_drv.so && \
-  touch %{MODULES_DIR}/drivers/fglrx_drv.so
-%if %suse_version > 1010
-# ATI libGL still uses the old X11R6 path :-(
-mkdir -p usr/X11R6/%{_lib}/modules
-test -d usr/X11R6/%{_lib}/modules/dri && \
-  mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
-ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri
-%ifarch x86_64
-mkdir -p usr/X11R6/lib/modules
-test -d usr/X11R6/lib/modules/dri && \
-  mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
-ln -snf /usr/lib/dri usr/X11R6/lib/modules/dri
-%endif
-%endif
-usr/bin/fglrx-kernel-build.sh
-if [ $? -ne 0 ]; then
-  echo
-  echo "**************************************************************"
-  echo "Building/installation of fglrx kernel module failed! Try again"
-  echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
-  echo "**************************************************************"
-  echo
-fi
-echo
-echo "*************************************************************"
-echo "Please read \"/usr/share/doc/packages/fglrx/README.SuSE\" for"
-echo "configuration details when using SaX2."
-echo "*************************************************************"
-echo
-# recreate initrd without KMS, if the use of KMS is enabled in initrd
-if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
-  sed -i '
s/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="yes"/g' /etc/sysconfig/kernel
-  mkinitrd
-fi
-exit 0
-
-%preun
-if [ -x etc/init.d/atieventsd ]; then
-  %stop_on_removal atieventsd
-fi
-exit 0
-
-%postun
-if [ -x etc/init.d/atieventsd ]; then
-  # Rearrange run level symlinks after removing the atieventsd init script
-  %{insserv_cleanup}
-fi
-if [ "$1" -eq 0 ]; then
-  test -f etc/X11/xorg.conf && \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
-  if [ -r etc/X11/xorg.conf.fglrx-post ]; then
-    mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
-  fi
-  # cleanup
-  rm -rf usr/src/kernel-modules/fglrx/
-  # try to unload the kernel module, which fails if it is still in use
-  rmmod fglrx &> /dev/null
-  # now remove it
-  if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
-    modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
-    rm $modfile
-  fi
-fi
-exit 0
-
-%files -f files.fglrx
-%defattr(-, root, root)
-%dir /usr/include/GL
-%ifarch x86_64
-%dir %{DRI_DRIVERS_DIR}
-%endif
-%dir /etc/security/console.apps/
-/etc/ati/
-/etc/modprobe.d/fglrx.conf
-/etc/pam.d/amdcccle-su
-/etc/security/console.apps/amdcccle-su
-/usr/include/GL/glxATI.h
-/usr/include/GL/glATI.h
-%ifarch x86_64
-/usr/lib/*
-/usr/X11R6/lib/libGL.so
-/usr/X11R6/lib/libGL.so.1
-/usr/X11R6/lib/libGL.so.1.2
-%endif
-/usr/%{_lib}/libatiadlxx.so
-/usr/%{_lib}/libatiuki.so.1.0
-%ifarch %ix86
-/usr/%{_lib}/libAMDXvBA.cap
-/usr/%{_lib}/libAMDXvBA.so.1.0
-/usr/%{_lib}/libXvBAW.so.1.0
-%endif
-/usr/%{_lib}/libaticaldd.so
-/usr/%{_lib}/libaticalrt.so
-/usr/%{_lib}/libaticalcl.so
-/usr/X11R6/%{_lib}/libGL.so
-/usr/X11R6/%{_lib}/libGL.so.1
-/usr/X11R6/%{_lib}/libGL.so.1.2
-/usr/sbin/amdnotifyui
-/usr/share/ati/%{_lib}/libQt*
-/usr/share/pixmaps/fglrx.png
-/usr/share/doc/packages/fglrx
-/usr/bin/fgl_glxgears
-/usr/bin/fglrx_xgamma
-/usr/bin/fglrxinfo
-/usr/bin/fglrx-kernel-build.sh
-/usr/bin/aticonfig
-%{X11_INCLUDE_DIR}/extensions/fglrx_gamma.h
-/usr/X11R6/%{_lib}/libfglrx_gamma.a
-/usr/X11R6/%{_lib}/libfglrx_gamma.so*
-%verify(not mtime) %{MODULES_DIR}/drivers/fglrx_drv.*
-%{MODULES_DIR}/linux/libfglrxdrm.*
-# km_fglrx
-%dir /usr/src/kernel-modules
-/usr/src/kernel-modules/fglrx/
-# powersave script
-%if %suse_version > 1020
-/usr/%{_lib}/pm-utils/power.d/ati-powermode.sh
-%else
-/usr/%{_lib}/powersave/scripts/ati-powermode.sh
-%endif
-%if %suse_version < 1110
-# Thinkpad Hotkey script
-/usr/%{_lib}/powersave/scripts/toggle-lvds.sh
-%endif
diff --git a/SuSE/x690_64a.SUSE103-AMD64.spec b/SuSE/x690_64a.SUSE103-AMD64.spec
deleted file mode 100644
index 6863c6b..0000000
--- a/SuSE/x690_64a.SUSE103-AMD64.spec
+++ /dev/null
@@ -1,461 +0,0 @@
-#############################################################################
-# spec file header                                                          #
-#############################################################################
-
-Name: fglrx64_6_9_0_SUSE103
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
-
-%if %suse_version > 1010
-%define MODULES_DIR       /usr/%{_lib}/xorg/modules
-%define DRI_DRIVERS_DIR   /usr/%{_lib}/dri
-%define DRI_DRIVERS32_DIR /usr/lib/dri
-%define X11_INCLUDE_DIR   /usr/include/X11
-%else
-%define MODULES_DIR       /usr/X11R6/%{_lib}/modules
-%define DRI_DRIVERS_DIR   /usr/X11R6/%{_lib}/modules/dri
-%define DRI_DRIVERS32_DIR /usr/X11R6/lib/modules/dri
-%define X11_INCLUDE_DIR   /usr/X11R6/include/X11
-%endif
-
-# local rpm options
-%define __check_files   %{nil}
-
-#############################################################################
-# spec file description                                                     #
-#############################################################################
-%description
-%ATI_DRIVER_DESCRIPTION
-
-%install
-%if %suse_version > 1110
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT
-cp -a %ATI_DRIVER_BUILD_ROOT/* $RPM_BUILD_ROOT
-%endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
-mkdir $tmpdir/fglrx
-mv $RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv $tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
-#
-mkdir -p $RPM_BUILD_ROOT/usr/bin \
-         $RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
-%ifarch x86_64
-         $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
-%endif
-         $RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
-         $RPM_BUILD_ROOT/usr/include/GL \
-         $RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
-%ifarch x86_64
-         $RPM_BUILD_ROOT/usr/X11R6/lib \
-         $RPM_BUILD_ROOT/usr/lib \
-%endif
-         $RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         $RPM_BUILD_ROOT/usr/share/pixmaps \
-         $RPM_BUILD_ROOT/usr/sbin \
-         $RPM_BUILD_ROOT/usr/share/man/man8 \
-         $RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         $RPM_BUILD_ROOT/etc/ati
-pushd $tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* $RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    $RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p $RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su $RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati $RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* $RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* $RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
-%ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/$file ]; then
-      mv usr/X11R6/lib/$file .
-      install -m 755 $file                 $RPM_BUILD_ROOT/usr/lib
-      rm $file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/$file .
-    install -m 755 $file                   $RPM_BUILD_ROOT/usr/lib
-    rm $file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       $RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup $i .; done
-  # make sure we don'
t overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    
install -m 644 LICENSE.xmlconfig     $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 $RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            $RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    
install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  
install -m 444 fglrx_drv.*             $RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           $RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            $RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               $RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle grep -q libexpat.so.0 || \
-      
install -m 755 amdcccle  $RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                $RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
install -m 755 libfglrx_gamma.so*      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
ln -snf libfglrx_gamma.so.1.0          $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           $RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               $RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 $RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  
install -m 755 atigetsysteminfo.sh     $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  
install -m 755 atieventsd              $RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    
gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  
install -m 644 atieventsd.8.gz         $RPM_BUILD_ROOT/usr/share/man/man8
-  test -f $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    
install -m 755 $RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.&& \
-    
install -m 644 libfglrx_tvout.a      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
test -f libfglrx_tvout.so.1.0 && \
-    
install -m 644 libfglrx_tvout.so.1.0 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
test -f esut.&& \
-    
install -m 444 esut.a                $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f glesx.so && \
-    
install -m 444 glesx.so              $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f amdxmm.so && \
-    
install -m 444 amdxmm.so             $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f atiodcli && \
-    
install -m 755 atiodcli              $RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    
install -m 755 atiode                $RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    
install -m 755 amdxdg-su             $RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    
install -m 755 amdupdaterandrconfig  $RPM_BUILD_ROOT/usr/bin
-  mkdir -p $RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  install -m 644 amdccclesu.desktop      $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/%{_lib}
-%
ifarch %ix86
-  install -m 755 libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-%endif
-  
install -m 755 libaticaldd.so libaticalrt.so libaticalcl.so $RPM_BUILD_ROOT/usr/%{_lib}
-  
install -m 755 libatiuki.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-  
test -f libglx.so && \
-    
install -m 755 libglx.so            $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
-popd
-pushd $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  # add kernel patches here
-%if %suse_version 1030
-  patch -p0 -$RPM_SOURCE_DIR/ati-CONFIG_SMP.diff
-%endif
-%if %
suse_version 1100
-  patch -p1 -$RPM_SOURCE_DIR/ati-2.6.27-build-fix-1.diff
-%endif
-  
rm -*.orig
-popd
-install -m 755 $RPM_SOURCE_DIR/fglrx-kernel-build.sh \
-  
$RPM_BUILD_ROOT/usr/bin
-cp $RPM_SOURCE_DIR/fglrx.png $RPM_BUILD_ROOT/usr/share/pixmaps
-%if %suse_version 1020
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d/
-
install -m 755 $RPM_SOURCE_DIR/ati-powermode.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
-%if %suse_version 1110
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-
install -m 755 $RPM_SOURCE_DIR/toggle-lvds.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-%else
-
mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-
install -m 755 $RPM_SOURCE_DIR/{ati-powermode.sh,toggle-lvds.sh} \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-
mkdir -p $RPM_BUILD_ROOT/etc/init.d
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  install -m 755 $RPM_SOURCE_DIR/atieventsd.sh \
-    
$RPM_BUILD_ROOT/etc/init.d/atieventsd
-  ln -snf /etc/init.d/atieventsd $RPM_BUILD_ROOT/usr/sbin/rcatieventsd
-fi
-rm -rf $tmpdir
-rm -rf $RPM_SOURCE_DIR
-echo > files.fglrx
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  cat files.fglrx << EOF
-/etc/init.d/atieventsd
-/usr/sbin/atieventsd
-/usr/sbin/rcatieventsd
-EOF
-if [ -f $RPM_BUILD_ROOT/usr/share/man/man8/atieventsd.8.gz ]; then
-  echo "/usr/share/man/man8/atieventsd.8.gz" >> files.fglrx
-fi
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdcccle ]; then
-  echo "/usr/bin/amdcccle" >> files.fglrx
-  echo "/usr/share/ati/amdcccle/" >> files.fglrx
-  echo "/usr/share/pixmaps/ccc_large.xpm" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiodcli ]; then
-  echo "/usr/bin/atiodcli" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiode ]; then
-  echo "/usr/bin/atiode" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdxdg-su ]; then
-  echo "/usr/bin/amdxdg-su" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdupdaterandrconfig ]; then
-  echo "/usr/bin/amdupdaterandrconfig" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop ]; then
-  echo  "/usr/share/applications/amdccclesu.desktop" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop ]; then
-  echo  "/usr/share/applications/amdcccle.desktop" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0 ]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/sbin/atigetsysteminfo.sh ]; then
-  echo "/usr/sbin/atigetsysteminfo.sh" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/esut.]; then
-  echo "%{MODULES_DIR}/esut.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/glesx.so ]; then
-  echo "%{MODULES_DIR}/glesx.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/amdxmm.so ]; then
-  echo "%{MODULES_DIR}/amdxmm.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/updates/extensions/libglx.so ]; then
-  echo "%{MODULES_DIR}/updates/extensions/libglx.so" >> files.fglrx
-fi
-%ifarch x86_64
-if [ -f $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS32_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-%endif
-if [ -
f $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-find $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx -type f xargs chmod 644
-mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
-echo "blacklist radeon" $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf
-export NO_BRP_CHECK_RPATH=true
-
-%
post
-%run_ldconfig
-if [ -x etc/init.d/atieventsd ]; then
-  # Create symbolic run level links for atieventsd start script:
-  %{fillup_and_insserv -y atieventsd}
-
fi
-%if %suse_version 1110
-  if [ -/etc/powersave/events ]; then
-    grep -"EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
-     
sed -'s/\(EVENT_DAEMON_SCHEME_CHANGE="\)\(.*\)/\1ati-powermode.sh \2/g' -/etc/powersave/events
-  fi
-%endif
-if [ -
f etc/X11/xorg.conf ]; then
-  test -f etc/X11/xorg.conf.fglrx-post || \
-    
cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
-fi
-test -%{MODULES_DIR}/drivers/fglrx_drv.so && \
-  
touch %{MODULES_DIR}/drivers/fglrx_drv.so
-%if %suse_version 1010
-# ATI libGL still uses the old X11R6 path :-(
-mkdir -p usr/X11R6/%{_lib}/modules
-test -d usr/X11R6/%{_lib}/modules/dri && \
-  
mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
-ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri
-%ifarch x86_64
-mkdir -p usr/X11R6/lib/modules
-test -d usr/X11R6/lib/modules/dri && \
-  
mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
-ln -snf /usr/lib/dri usr/X11R6/lib/modules/dri
-%endif
-%endif
-
usr/bin/fglrx-kernel-build.sh
-if [ $? -ne 0 ]; then
-  echo
-  echo 
"**************************************************************"
-  echo "Building/installation of fglrx kernel module failed! Try again"
-  echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
-  echo "**************************************************************"
-  echo
-
fi
-echo
-echo 
"*************************************************************"
-echo "Please read \"/usr/share/doc/packages/fglrx/README.SuSE\" for"
-echo "configuration details when using SaX2."
-echo "*************************************************************"
-echo
-
# recreate initrd without KMS, if the use of KMS is enabled in initrd
-if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
-  sed -i 's/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="
yes"/g' /etc/sysconfig/kernel
-  mkinitrd
-fi
-exit 0
-
-%preun
-if [ -x etc/init.d/atieventsd ]; then
-  %stop_on_removal atieventsd
-fi
-exit 0
-
-%postun
-if [ -x etc/init.d/atieventsd ]; then
-  # Rearrange run level symlinks after removing the atieventsd init script
-  %{insserv_cleanup}
-fi
-if [ "
$1" -eq 0 ]; then
-  test -f etc/X11/xorg.conf && \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
-  if [ -r etc/X11/xorg.conf.fglrx-post ]; then
-    mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
-  fi
-  # cleanup
-  rm -rf usr/src/kernel-modules/fglrx/
-  # try to unload the kernel module, which fails if it is still in use
-  rmmod fglrx &> /dev/null
-  # now remove it
-  if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
-    modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
-    rm 
$modfile
-  fi
-fi
-exit 0
-
-%files -f files.fglrx
-%defattr(-, root, root)
-%dir /usr/include/GL
-%ifarch x86_64
-%dir %{DRI_DRIVERS_DIR}
-%endif
-%dir /etc/security/console.apps/
-/etc/ati/
-/etc/modprobe.d/fglrx.conf
-/etc/pam.d/amdcccle-su
-/etc/security/console.apps/amdcccle-su
-/usr/include/GL/glxATI.h
-/usr/include/GL/glATI.h
-%ifarch x86_64
-/usr/lib/*
-/usr/X11R6/lib/libGL.so
-/usr/X11R6/lib/libGL.so.1
-/usr/X11R6/lib/libGL.so.1.2
-%endif
-/usr/%{_lib}/libatiadlxx.so
-/usr/%{_lib}/libatiuki.so.1.0
-%ifarch %ix86
-/usr/%{_lib}/libAMDXvBA.cap
-/usr/%{_lib}/libAMDXvBA.so.1.0
-/usr/%{_lib}/libXvBAW.so.1.0
-%endif
-/usr/%{_lib}/libaticaldd.so
-/usr/%{_lib}/libaticalrt.so
-/usr/%{_lib}/libaticalcl.so
-/usr/X11R6/%{_lib}/libGL.so
-/usr/X11R6/%{_lib}/libGL.so.1
-/usr/X11R6/%{_lib}/libGL.so.1.2
-/usr/sbin/amdnotifyui
-/usr/share/ati/%{_lib}/libQt*
-/usr/share/pixmaps/fglrx.png
-/usr/share/doc/packages/fglrx
-/usr/bin/fgl_glxgears
-/usr/bin/fglrx_xgamma
-/usr/bin/fglrxinfo
-/usr/bin/fglrx-kernel-build.sh
-/usr/bin/aticonfig
-%{X11_INCLUDE_DIR}/extensions/fglrx_gamma.h
-/usr/X11R6/%{_lib}/libfglrx_gamma.a
-/usr/X11R6/%{_lib}/libfglrx_gamma.so*
-%verify(not mtime) %{MODULES_DIR}/drivers/fglrx_drv.*
-%{MODULES_DIR}/linux/libfglrxdrm.*
-# km_fglrx
-%dir /usr/src/kernel-modules
-/usr/src/kernel-modules/fglrx/
-# powersave script
-%if %suse_version > 1020
-/usr/%{_lib}/pm-utils/power.d/ati-powermode.sh
-%else
-/usr/%{_lib}/powersave/scripts/ati-powermode.sh
-%endif
-%if %suse_version < 1110
-# Thinkpad Hotkey script
-/usr/%{_lib}/powersave/scripts/toggle-lvds.sh
-%endif
diff --git a/SuSE/x690_64a.SUSE110-AMD64.spec b/SuSE/x690_64a.SUSE110-AMD64.spec
deleted file mode 100644
index 29439b1..0000000
--- a/SuSE/x690_64a.SUSE110-AMD64.spec
+++ /dev/null
@@ -1,461 +0,0 @@
-#############################################################################
-# spec file header                                                          #
-#############################################################################
-
-Name: fglrx64_6_9_0_SUSE110
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
-
-%if %suse_version > 1010
-%define MODULES_DIR       /usr/%{_lib}/xorg/modules
-%define DRI_DRIVERS_DIR   /usr/%{_lib}/dri
-%define DRI_DRIVERS32_DIR /usr/lib/dri
-%define X11_INCLUDE_DIR   /usr/include/X11
-%else
-%define MODULES_DIR       /usr/X11R6/%{_lib}/modules
-%define DRI_DRIVERS_DIR   /usr/X11R6/%{_lib}/modules/dri
-%define DRI_DRIVERS32_DIR /usr/X11R6/lib/modules/dri
-%define X11_INCLUDE_DIR   /usr/X11R6/include/X11
-%endif
-
-# local rpm options
-%define __check_files   %{nil}
-
-#############################################################################
-# spec file description                                                     #
-#############################################################################
-%description
-%ATI_DRIVER_DESCRIPTION
-
-%install
-%if %suse_version > 1110
-rm -rf 
$RPM_BUILD_ROOT
-mkdir -p 
$RPM_BUILD_ROOT
-cp -a %ATI_DRIVER_BUILD_ROOT/* 
$RPM_BUILD_ROOT
-%endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
-mkdir 
$tmpdir/fglrx
-mv 
$RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv 
$tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
-#
-mkdir -p 
$RPM_BUILD_ROOT/usr/bin \
-         
$RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
-%ifarch x86_64
-         
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
-%endif
-         
$RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         
$RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
-         
$RPM_BUILD_ROOT/usr/include/GL \
-         
$RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
-%ifarch x86_64
-         
$RPM_BUILD_ROOT/usr/X11R6/lib \
-         
$RPM_BUILD_ROOT/usr/lib \
-%endif
-         
$RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         
$RPM_BUILD_ROOT/usr/share/pixmaps \
-         
$RPM_BUILD_ROOT/usr/sbin \
-         
$RPM_BUILD_ROOT/usr/share/man/man8 \
-         
$RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         
$RPM_BUILD_ROOT/etc/ati
-pushd 
$tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* 
$RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p 
$RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    
$RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p 
$RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su 
$RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati 
$RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* 
$RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* 
$RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
-%ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            
$RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   
$RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     
$RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             
$RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           
$RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          
$RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/
$file ]; then
-      mv usr/X11R6/lib/
$file .
-      install -m 755 
$file                 $RPM_BUILD_ROOT/usr/lib
-      rm 
$file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/
$file .
-    install -m 755 
$file                   $RPM_BUILD_ROOT/usr/lib
-    rm 
$file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       
$RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup 
$i .; done
-  # make sure we don't overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    install -m 644 LICENSE.xmlconfig     
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 
$RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            
$RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    install -m 444 fglrx_dri.so          
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  install -m 444 fglrx_drv.*             
$RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           
$RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            
$RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               
$RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle | grep -q libexpat.so.0 || \
-      install -m 755 amdcccle  
$RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                
$RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libGL.so.1.2                   
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  install -m 755 libfglrx_gamma.so*      
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libfglrx_gamma.so.1.0          
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           
$RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               
$RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 
$RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  install -m 755 atigetsysteminfo.sh     
$RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  install -m 755 atieventsd              
$RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             
$RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  install -m 644 atieventsd.8.gz         
$RPM_BUILD_ROOT/usr/share/man/man8
-  test -f 
$RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    install -m 755 
$RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 
$RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.a && \
-    install -m 644 libfglrx_tvout.a      
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f libfglrx_tvout.so.1.0 && \
-    install -m 644 libfglrx_tvout.so.1.0 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f esut.a && \
-    install -m 444 esut.a                
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f glesx.so && \
-    install -m 444 glesx.so              
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f amdxmm.so && \
-    install -m 444 amdxmm.so             
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f atiodcli && \
-    install -m 755 atiodcli              
$RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    install -m 755 atiode                
$RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    install -m 755 amdxdg-su             
$RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    install -m 755 amdupdaterandrconfig  
$RPM_BUILD_ROOT/usr/bin
-  mkdir -p 
$RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        
$RPM_BUILD_ROOT/usr/share/applications
-  echo "
GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  echo "
X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  install -m 644 amdccclesu.desktop      
$RPM_BUILD_ROOT/usr/share/applications
-  echo "
GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  echo "
X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  install -m 755 libatiadlxx.so          
$RPM_BUILD_ROOT/usr/%{_lib}
-%ifarch %ix86
-  install -m 755 libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0 
$RPM_BUILD_ROOT/usr/%{_lib}
-%endif
-  install -m 755 libaticaldd.so libaticalrt.so libaticalcl.so 
$RPM_BUILD_ROOT/usr/%{_lib}
-  install -m 755 libatiuki.so.1.0 
$RPM_BUILD_ROOT/usr/%{_lib}
-  test -f libglx.so && \
-    install -m 755 libglx.so            
$RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
-popd
-pushd 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  # add kernel patches here
-%if %suse_version > 1030
-  patch -p0 -s < 
$RPM_SOURCE_DIR/ati-CONFIG_SMP.diff
-%endif
-%if %suse_version > 1100
-  patch -p1 -s < 
$RPM_SOURCE_DIR/ati-2.6.27-build-fix-1.diff
-%endif
-  rm -f *.orig
-popd
-install -m 755 
$RPM_SOURCE_DIR/fglrx-kernel-build.sh \
-  
$RPM_BUILD_ROOT/usr/bin
-cp 
$RPM_SOURCE_DIR/fglrx.png $RPM_BUILD_ROOT/usr/share/pixmaps
-%if %suse_version > 1020
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d/
-install -m 755 
$RPM_SOURCE_DIR/ati-powermode.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
-%if %suse_version < 1110
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-install -m 755 
$RPM_SOURCE_DIR/toggle-lvds.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-%else
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-install -m 755 
$RPM_SOURCE_DIR/{ati-powermode.sh,toggle-lvds.sh} \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-mkdir -p 
$RPM_BUILD_ROOT/etc/init.d
-if [ -x 
$RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  install -m 755 
$RPM_SOURCE_DIR/atieventsd.sh \
-    
$RPM_BUILD_ROOT/etc/init.d/atieventsd
-  ln -snf /etc/init.d/atieventsd 
$RPM_BUILD_ROOT/usr/sbin/rcatieventsd
-fi
-rm -rf 
$tmpdir
-rm -rf 
$RPM_SOURCE_DIR
-echo > files.fglrx
-if [ -x 
$RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  cat > files.fglrx << EOF
-/etc/init.d/atieventsd
-/usr/sbin/atieventsd
-/usr/sbin/rcatieventsd
-EOF
-if [ -f 
$RPM_BUILD_ROOT/usr/share/man/man8/atieventsd.8.gz ]; then
-  echo "
/usr/share/man/man8/atieventsd.8.gz" >> files.fglrx
-fi
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdcccle ]; then
-  echo "
/usr/bin/amdcccle" >> files.fglrx
-  echo "
/usr/share/ati/amdcccle/" >> files.fglrx
-  echo "
/usr/share/pixmaps/ccc_large.xpm" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/atiodcli ]; then
-  echo "
/usr/bin/atiodcli" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/atiode ]; then
-  echo "
/usr/bin/atiode" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdxdg-su ]; then
-  echo "
/usr/bin/amdxdg-su" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdupdaterandrconfig ]; then
-  echo "
/usr/bin/amdupdaterandrconfig" >> files.fglrx
-fi
-if [ -f  
$RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop ]; then
-  echo  "
/usr/share/applications/amdccclesu.desktop" >> files.fglrx
-fi
-if [ -f  
$RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop ]; then
-  echo  "
/usr/share/applications/amdcccle.desktop" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.a ]; then
-  echo "
/usr/X11R6/%{_lib}/libfglrx_tvout.a" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0 ]; then
-  echo "
/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/sbin/atigetsysteminfo.sh ]; then
-  echo "
/usr/sbin/atigetsysteminfo.sh" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/esut.a ]; then
-  echo "
%{MODULES_DIR}/esut.a" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/glesx.so ]; then
-  echo "
%{MODULES_DIR}/glesx.so" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/amdxmm.so ]; then
-  echo "
%{MODULES_DIR}/amdxmm.so" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/updates/extensions/libglx.so ]; then
-  echo "
%{MODULES_DIR}/updates/extensions/libglx.so" >> files.fglrx
-fi
-%ifarch x86_64
-if [ -f 
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}/fglrx_dri.so ]; then
-  echo "
%{DRI_DRIVERS32_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-%endif
-if [ -f 
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}/fglrx_dri.so ]; then
-  echo "
%{DRI_DRIVERS_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-find 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx -type f | xargs chmod 644
-mkdir -p 
$RPM_BUILD_ROOT/etc/modprobe.d
-echo "
blacklist radeon" > $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf
-export NO_BRP_CHECK_RPATH=true
-
-%post
-%run_ldconfig
-if [ -x etc/init.d/atieventsd ]; then
-  # Create symbolic run level links for atieventsd start script:
-  %{fillup_and_insserv -y atieventsd}
-fi
-%if %suse_version < 1110
-  if [ -r /etc/powersave/events ]; then
-    grep -q "
EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
-     sed -e 's/\(EVENT_DAEMON_SCHEME_CHANGE="
\)\(.*\)/\1ati-powermode.sh \2/g' -i /etc/powersave/events
-  fi
-%endif
-if [ -f etc/X11/xorg.conf ]; then
-  test -f etc/X11/xorg.conf.fglrx-post || \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
-fi
-test -f %{MODULES_DIR}/drivers/fglrx_drv.so && \
-  touch %{MODULES_DIR}/drivers/fglrx_drv.so
-%if %suse_version > 1010
-# ATI libGL still uses the old X11R6 path :-(
-mkdir -p usr/X11R6/%{_lib}/modules
-test -d usr/X11R6/%{_lib}/modules/dri && \
-  mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
-ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri
-%ifarch x86_64
-mkdir -p usr/X11R6/lib/modules
-test -d usr/X11R6/lib/modules/dri && \
-  mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
-ln -snf /usr/lib/dri usr/X11R6/lib/modules/dri
-%endif
-%endif
-usr/bin/fglrx-kernel-build.sh
-if [ $? -ne 0 ]; then
-  echo
-  echo "**************************************************************"
-  echo "Building/installation of fglrx kernel module failed! Try again"
-  echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
-  echo "**************************************************************"
-  echo
-fi
-echo
-echo "*************************************************************"
-echo "Please read \"/usr/share/doc/packages/fglrx/README.SuSE\" for"
-echo "configuration details when using SaX2."
-echo "*************************************************************"
-echo
-# recreate initrd without KMS, if the use of KMS is enabled in initrd
-if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
-  sed -i '
s/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="yes"/g' /etc/sysconfig/kernel
-  mkinitrd
-fi
-exit 0
-
-%preun
-if [ -x etc/init.d/atieventsd ]; then
-  %stop_on_removal atieventsd
-fi
-exit 0
-
-%postun
-if [ -x etc/init.d/atieventsd ]; then
-  # Rearrange run level symlinks after removing the atieventsd init script
-  %{insserv_cleanup}
-fi
-if [ "$1" -eq 0 ]; then
-  test -f etc/X11/xorg.conf && \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
-  if [ -r etc/X11/xorg.conf.fglrx-post ]; then
-    mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
-  fi
-  # cleanup
-  rm -rf usr/src/kernel-modules/fglrx/
-  # try to unload the kernel module, which fails if it is still in use
-  rmmod fglrx &> /dev/null
-  # now remove it
-  if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
-    modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
-    rm $modfile
-  fi
-fi
-exit 0
-
-%files -f files.fglrx
-%defattr(-, root, root)
-%dir /usr/include/GL
-%ifarch x86_64
-%dir %{DRI_DRIVERS_DIR}
-%endif
-%dir /etc/security/console.apps/
-/etc/ati/
-/etc/modprobe.d/fglrx.conf
-/etc/pam.d/amdcccle-su
-/etc/security/console.apps/amdcccle-su
-/usr/include/GL/glxATI.h
-/usr/include/GL/glATI.h
-%ifarch x86_64
-/usr/lib/*
-/usr/X11R6/lib/libGL.so
-/usr/X11R6/lib/libGL.so.1
-/usr/X11R6/lib/libGL.so.1.2
-%endif
-/usr/%{_lib}/libatiadlxx.so
-/usr/%{_lib}/libatiuki.so.1.0
-%ifarch %ix86
-/usr/%{_lib}/libAMDXvBA.cap
-/usr/%{_lib}/libAMDXvBA.so.1.0
-/usr/%{_lib}/libXvBAW.so.1.0
-%endif
-/usr/%{_lib}/libaticaldd.so
-/usr/%{_lib}/libaticalrt.so
-/usr/%{_lib}/libaticalcl.so
-/usr/X11R6/%{_lib}/libGL.so
-/usr/X11R6/%{_lib}/libGL.so.1
-/usr/X11R6/%{_lib}/libGL.so.1.2
-/usr/sbin/amdnotifyui
-/usr/share/ati/%{_lib}/libQt*
-/usr/share/pixmaps/fglrx.png
-/usr/share/doc/packages/fglrx
-/usr/bin/fgl_glxgears
-/usr/bin/fglrx_xgamma
-/usr/bin/fglrxinfo
-/usr/bin/fglrx-kernel-build.sh
-/usr/bin/aticonfig
-%{X11_INCLUDE_DIR}/extensions/fglrx_gamma.h
-/usr/X11R6/%{_lib}/libfglrx_gamma.a
-/usr/X11R6/%{_lib}/libfglrx_gamma.so*
-%verify(not mtime) %{MODULES_DIR}/drivers/fglrx_drv.*
-%{MODULES_DIR}/linux/libfglrxdrm.*
-# km_fglrx
-%dir /usr/src/kernel-modules
-/usr/src/kernel-modules/fglrx/
-# powersave script
-%if %suse_version > 1020
-/usr/%{_lib}/pm-utils/power.d/ati-powermode.sh
-%else
-/usr/%{_lib}/powersave/scripts/ati-powermode.sh
-%endif
-%if %suse_version < 1110
-# Thinkpad Hotkey script
-/usr/%{_lib}/powersave/scripts/toggle-lvds.sh
-%endif
diff --git a/SuSE/x740.SLE11-IA32.spec b/SuSE/x740.SLE11-IA32.spec
deleted file mode 100644
index aba71c7..0000000
--- a/SuSE/x740.SLE11-IA32.spec
+++ /dev/null
@@ -1,461 +0,0 @@
-#############################################################################
-# spec file header                                                          #
-#############################################################################
-
-Name: fglrx_7_4_0_SLE11
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
-
-%if %suse_version > 1010
-%define MODULES_DIR       /usr/%{_lib}/xorg/modules
-%define DRI_DRIVERS_DIR   /usr/%{_lib}/dri
-%define DRI_DRIVERS32_DIR /usr/lib/dri
-%define X11_INCLUDE_DIR   /usr/include/X11
-%else
-%define MODULES_DIR       /usr/X11R6/%{_lib}/modules
-%define DRI_DRIVERS_DIR   /usr/X11R6/%{_lib}/modules/dri
-%define DRI_DRIVERS32_DIR /usr/X11R6/lib/modules/dri
-%define X11_INCLUDE_DIR   /usr/X11R6/include/X11
-%endif
-
-# local rpm options
-%define __check_files   %{nil}
-
-#############################################################################
-# spec file description                                                     #
-#############################################################################
-%description
-%ATI_DRIVER_DESCRIPTION
-
-%install
-%if %suse_version > 1110
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT
-cp -a %ATI_DRIVER_BUILD_ROOT/* $RPM_BUILD_ROOT
-%endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
-mkdir $tmpdir/fglrx
-mv $RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv $tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
-#
-mkdir -p $RPM_BUILD_ROOT/usr/bin \
-         $RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
-%ifarch x86_64
-         $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
-%endif
-         $RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
-         $RPM_BUILD_ROOT/usr/include/GL \
-         $RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
-%ifarch x86_64
-         $RPM_BUILD_ROOT/usr/X11R6/lib \
-         $RPM_BUILD_ROOT/usr/lib \
-%endif
-         $RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         $RPM_BUILD_ROOT/usr/share/pixmaps \
-         $RPM_BUILD_ROOT/usr/sbin \
-         $RPM_BUILD_ROOT/usr/share/man/man8 \
-         $RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         $RPM_BUILD_ROOT/etc/ati
-pushd $tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* $RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    $RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p $RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su $RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati $RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* $RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* $RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
-%ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/$file ]; then
-      mv usr/X11R6/lib/$file .
-      install -m 755 $file                 $RPM_BUILD_ROOT/usr/lib
-      rm $file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/$file .
-    install -m 755 $file                   $RPM_BUILD_ROOT/usr/lib
-    rm $file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       $RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup $i .; done
-  # make sure we don'
t overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    
install -m 644 LICENSE.xmlconfig     $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 $RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            $RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    
install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  
install -m 444 fglrx_drv.*             $RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           $RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            $RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               $RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle grep -q libexpat.so.0 || \
-      
install -m 755 amdcccle  $RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                $RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
install -m 755 libfglrx_gamma.so*      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
ln -snf libfglrx_gamma.so.1.0          $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           $RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               $RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 $RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  
install -m 755 atigetsysteminfo.sh     $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  
install -m 755 atieventsd              $RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    
gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  
install -m 644 atieventsd.8.gz         $RPM_BUILD_ROOT/usr/share/man/man8
-  test -f $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    
install -m 755 $RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.&& \
-    
install -m 644 libfglrx_tvout.a      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
test -f libfglrx_tvout.so.1.0 && \
-    
install -m 644 libfglrx_tvout.so.1.0 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
test -f esut.&& \
-    
install -m 444 esut.a                $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f glesx.so && \
-    
install -m 444 glesx.so              $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f amdxmm.so && \
-    
install -m 444 amdxmm.so             $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f atiodcli && \
-    
install -m 755 atiodcli              $RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    
install -m 755 atiode                $RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    
install -m 755 amdxdg-su             $RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    
install -m 755 amdupdaterandrconfig  $RPM_BUILD_ROOT/usr/bin
-  mkdir -p $RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  install -m 644 amdccclesu.desktop      $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/%{_lib}
-%
ifarch %ix86
-  install -m 755 libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-%endif
-  
install -m 755 libaticaldd.so libaticalrt.so libaticalcl.so $RPM_BUILD_ROOT/usr/%{_lib}
-  
install -m 755 libatiuki.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-  
test -f libglx.so && \
-    
install -m 755 libglx.so            $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
-popd
-pushd $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  # add kernel patches here
-%if %suse_version 1030
-  patch -p0 -$RPM_SOURCE_DIR/ati-CONFIG_SMP.diff
-%endif
-%if %
suse_version 1100
-  patch -p1 -$RPM_SOURCE_DIR/ati-2.6.27-build-fix-1.diff
-%endif
-  
rm -*.orig
-popd
-install -m 755 $RPM_SOURCE_DIR/fglrx-kernel-build.sh \
-  
$RPM_BUILD_ROOT/usr/bin
-cp $RPM_SOURCE_DIR/fglrx.png $RPM_BUILD_ROOT/usr/share/pixmaps
-%if %suse_version 1020
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d/
-
install -m 755 $RPM_SOURCE_DIR/ati-powermode.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
-%if %suse_version 1110
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-
install -m 755 $RPM_SOURCE_DIR/toggle-lvds.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-%else
-
mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-
install -m 755 $RPM_SOURCE_DIR/{ati-powermode.sh,toggle-lvds.sh} \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-
mkdir -p $RPM_BUILD_ROOT/etc/init.d
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  install -m 755 $RPM_SOURCE_DIR/atieventsd.sh \
-    
$RPM_BUILD_ROOT/etc/init.d/atieventsd
-  ln -snf /etc/init.d/atieventsd $RPM_BUILD_ROOT/usr/sbin/rcatieventsd
-fi
-rm -rf $tmpdir
-rm -rf $RPM_SOURCE_DIR
-echo > files.fglrx
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  cat files.fglrx << EOF
-/etc/init.d/atieventsd
-/usr/sbin/atieventsd
-/usr/sbin/rcatieventsd
-EOF
-if [ -f $RPM_BUILD_ROOT/usr/share/man/man8/atieventsd.8.gz ]; then
-  echo "/usr/share/man/man8/atieventsd.8.gz" >> files.fglrx
-fi
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdcccle ]; then
-  echo "/usr/bin/amdcccle" >> files.fglrx
-  echo "/usr/share/ati/amdcccle/" >> files.fglrx
-  echo "/usr/share/pixmaps/ccc_large.xpm" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiodcli ]; then
-  echo "/usr/bin/atiodcli" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiode ]; then
-  echo "/usr/bin/atiode" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdxdg-su ]; then
-  echo "/usr/bin/amdxdg-su" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdupdaterandrconfig ]; then
-  echo "/usr/bin/amdupdaterandrconfig" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop ]; then
-  echo  "/usr/share/applications/amdccclesu.desktop" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop ]; then
-  echo  "/usr/share/applications/amdcccle.desktop" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0 ]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/sbin/atigetsysteminfo.sh ]; then
-  echo "/usr/sbin/atigetsysteminfo.sh" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/esut.]; then
-  echo "%{MODULES_DIR}/esut.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/glesx.so ]; then
-  echo "%{MODULES_DIR}/glesx.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/amdxmm.so ]; then
-  echo "%{MODULES_DIR}/amdxmm.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/updates/extensions/libglx.so ]; then
-  echo "%{MODULES_DIR}/updates/extensions/libglx.so" >> files.fglrx
-fi
-%ifarch x86_64
-if [ -f $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS32_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-%endif
-if [ -
f $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-find $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx -type f xargs chmod 644
-mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
-echo "blacklist radeon" $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf
-export NO_BRP_CHECK_RPATH=true
-
-%
post
-%run_ldconfig
-if [ -x etc/init.d/atieventsd ]; then
-  # Create symbolic run level links for atieventsd start script:
-  %{fillup_and_insserv -y atieventsd}
-
fi
-%if %suse_version 1110
-  if [ -/etc/powersave/events ]; then
-    grep -"EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
-     
sed -'s/\(EVENT_DAEMON_SCHEME_CHANGE="\)\(.*\)/\1ati-powermode.sh \2/g' -/etc/powersave/events
-  fi
-%endif
-if [ -
f etc/X11/xorg.conf ]; then
-  test -f etc/X11/xorg.conf.fglrx-post || \
-    
cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
-fi
-test -%{MODULES_DIR}/drivers/fglrx_drv.so && \
-  
touch %{MODULES_DIR}/drivers/fglrx_drv.so
-%if %suse_version 1010
-# ATI libGL still uses the old X11R6 path :-(
-mkdir -p usr/X11R6/%{_lib}/modules
-test -d usr/X11R6/%{_lib}/modules/dri && \
-  
mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
-ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri
-%ifarch x86_64
-mkdir -p usr/X11R6/lib/modules
-test -d usr/X11R6/lib/modules/dri && \
-  
mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
-ln -snf /usr/lib/dri usr/X11R6/lib/modules/dri
-%endif
-%endif
-
usr/bin/fglrx-kernel-build.sh
-if [ $? -ne 0 ]; then
-  echo
-  echo 
"**************************************************************"
-  echo "Building/installation of fglrx kernel module failed! Try again"
-  echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
-  echo "**************************************************************"
-  echo
-
fi
-echo
-echo 
"*************************************************************"
-echo "Please read \"/usr/share/doc/packages/fglrx/README.SuSE\" for"
-echo "configuration details when using SaX2."
-echo "*************************************************************"
-echo
-
# recreate initrd without KMS, if the use of KMS is enabled in initrd
-if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
-  sed -i 's/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="
yes"/g' /etc/sysconfig/kernel
-  mkinitrd
-fi
-exit 0
-
-%preun
-if [ -x etc/init.d/atieventsd ]; then
-  %stop_on_removal atieventsd
-fi
-exit 0
-
-%postun
-if [ -x etc/init.d/atieventsd ]; then
-  # Rearrange run level symlinks after removing the atieventsd init script
-  %{insserv_cleanup}
-fi
-if [ "
$1" -eq 0 ]; then
-  test -f etc/X11/xorg.conf && \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
-  if [ -r etc/X11/xorg.conf.fglrx-post ]; then
-    mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
-  fi
-  # cleanup
-  rm -rf usr/src/kernel-modules/fglrx/
-  # try to unload the kernel module, which fails if it is still in use
-  rmmod fglrx &> /dev/null
-  # now remove it
-  if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
-    modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
-    rm 
$modfile
-  fi
-fi
-exit 0
-
-%files -f files.fglrx
-%defattr(-, root, root)
-%dir /usr/include/GL
-%ifarch x86_64
-%dir %{DRI_DRIVERS_DIR}
-%endif
-%dir /etc/security/console.apps/
-/etc/ati/
-/etc/modprobe.d/fglrx.conf
-/etc/pam.d/amdcccle-su
-/etc/security/console.apps/amdcccle-su
-/usr/include/GL/glxATI.h
-/usr/include/GL/glATI.h
-%ifarch x86_64
-/usr/lib/*
-/usr/X11R6/lib/libGL.so
-/usr/X11R6/lib/libGL.so.1
-/usr/X11R6/lib/libGL.so.1.2
-%endif
-/usr/%{_lib}/libatiadlxx.so
-/usr/%{_lib}/libatiuki.so.1.0
-%ifarch %ix86
-/usr/%{_lib}/libAMDXvBA.cap
-/usr/%{_lib}/libAMDXvBA.so.1.0
-/usr/%{_lib}/libXvBAW.so.1.0
-%endif
-/usr/%{_lib}/libaticaldd.so
-/usr/%{_lib}/libaticalrt.so
-/usr/%{_lib}/libaticalcl.so
-/usr/X11R6/%{_lib}/libGL.so
-/usr/X11R6/%{_lib}/libGL.so.1
-/usr/X11R6/%{_lib}/libGL.so.1.2
-/usr/sbin/amdnotifyui
-/usr/share/ati/%{_lib}/libQt*
-/usr/share/pixmaps/fglrx.png
-/usr/share/doc/packages/fglrx
-/usr/bin/fgl_glxgears
-/usr/bin/fglrx_xgamma
-/usr/bin/fglrxinfo
-/usr/bin/fglrx-kernel-build.sh
-/usr/bin/aticonfig
-%{X11_INCLUDE_DIR}/extensions/fglrx_gamma.h
-/usr/X11R6/%{_lib}/libfglrx_gamma.a
-/usr/X11R6/%{_lib}/libfglrx_gamma.so*
-%verify(not mtime) %{MODULES_DIR}/drivers/fglrx_drv.*
-%{MODULES_DIR}/linux/libfglrxdrm.*
-# km_fglrx
-%dir /usr/src/kernel-modules
-/usr/src/kernel-modules/fglrx/
-# powersave script
-%if %suse_version > 1020
-/usr/%{_lib}/pm-utils/power.d/ati-powermode.sh
-%else
-/usr/%{_lib}/powersave/scripts/ati-powermode.sh
-%endif
-%if %suse_version < 1110
-# Thinkpad Hotkey script
-/usr/%{_lib}/powersave/scripts/toggle-lvds.sh
-%endif
diff --git a/SuSE/x740.SUSE111-IA32.spec b/SuSE/x740.SUSE111-IA32.spec
deleted file mode 100644
index 14d8707..0000000
--- a/SuSE/x740.SUSE111-IA32.spec
+++ /dev/null
@@ -1,461 +0,0 @@
-#############################################################################
-# spec file header                                                          #
-#############################################################################
-
-Name: fglrx_7_4_0_SUSE111
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
-
-%if %suse_version > 1010
-%define MODULES_DIR       /usr/%{_lib}/xorg/modules
-%define DRI_DRIVERS_DIR   /usr/%{_lib}/dri
-%define DRI_DRIVERS32_DIR /usr/lib/dri
-%define X11_INCLUDE_DIR   /usr/include/X11
-%else
-%define MODULES_DIR       /usr/X11R6/%{_lib}/modules
-%define DRI_DRIVERS_DIR   /usr/X11R6/%{_lib}/modules/dri
-%define DRI_DRIVERS32_DIR /usr/X11R6/lib/modules/dri
-%define X11_INCLUDE_DIR   /usr/X11R6/include/X11
-%endif
-
-# local rpm options
-%define __check_files   %{nil}
-
-#############################################################################
-# spec file description                                                     #
-#############################################################################
-%description
-%ATI_DRIVER_DESCRIPTION
-
-%install
-%if %suse_version > 1110
-rm -rf 
$RPM_BUILD_ROOT
-mkdir -p 
$RPM_BUILD_ROOT
-cp -a %ATI_DRIVER_BUILD_ROOT/* 
$RPM_BUILD_ROOT
-%endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
-mkdir 
$tmpdir/fglrx
-mv 
$RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv 
$tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
-#
-mkdir -p 
$RPM_BUILD_ROOT/usr/bin \
-         
$RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
-%ifarch x86_64
-         
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
-%endif
-         
$RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         
$RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
-         
$RPM_BUILD_ROOT/usr/include/GL \
-         
$RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
-%ifarch x86_64
-         
$RPM_BUILD_ROOT/usr/X11R6/lib \
-         
$RPM_BUILD_ROOT/usr/lib \
-%endif
-         
$RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         
$RPM_BUILD_ROOT/usr/share/pixmaps \
-         
$RPM_BUILD_ROOT/usr/sbin \
-         
$RPM_BUILD_ROOT/usr/share/man/man8 \
-         
$RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         
$RPM_BUILD_ROOT/etc/ati
-pushd 
$tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* 
$RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p 
$RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    
$RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p 
$RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su 
$RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati 
$RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* 
$RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* 
$RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
-%ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            
$RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   
$RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     
$RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             
$RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           
$RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          
$RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/
$file ]; then
-      mv usr/X11R6/lib/
$file .
-      install -m 755 
$file                 $RPM_BUILD_ROOT/usr/lib
-      rm 
$file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/
$file .
-    install -m 755 
$file                   $RPM_BUILD_ROOT/usr/lib
-    rm 
$file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       
$RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup 
$i .; done
-  # make sure we don't overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    install -m 644 LICENSE.xmlconfig     
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 
$RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            
$RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    install -m 444 fglrx_dri.so          
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  install -m 444 fglrx_drv.*             
$RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           
$RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            
$RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               
$RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle | grep -q libexpat.so.0 || \
-      install -m 755 amdcccle  
$RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                
$RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libGL.so.1.2                   
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  install -m 755 libfglrx_gamma.so*      
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libfglrx_gamma.so.1.0          
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           
$RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               
$RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 
$RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  install -m 755 atigetsysteminfo.sh     
$RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  install -m 755 atieventsd              
$RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             
$RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  install -m 644 atieventsd.8.gz         
$RPM_BUILD_ROOT/usr/share/man/man8
-  test -f 
$RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    install -m 755 
$RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 
$RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.a && \
-    install -m 644 libfglrx_tvout.a      
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f libfglrx_tvout.so.1.0 && \
-    install -m 644 libfglrx_tvout.so.1.0 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f esut.a && \
-    install -m 444 esut.a                
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f glesx.so && \
-    install -m 444 glesx.so              
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f amdxmm.so && \
-    install -m 444 amdxmm.so             
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f atiodcli && \
-    install -m 755 atiodcli              
$RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    install -m 755 atiode                
$RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    install -m 755 amdxdg-su             
$RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    install -m 755 amdupdaterandrconfig  
$RPM_BUILD_ROOT/usr/bin
-  mkdir -p 
$RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        
$RPM_BUILD_ROOT/usr/share/applications
-  echo "
GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  echo "
X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  install -m 644 amdccclesu.desktop      
$RPM_BUILD_ROOT/usr/share/applications
-  echo "
GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  echo "
X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  install -m 755 libatiadlxx.so          
$RPM_BUILD_ROOT/usr/%{_lib}
-%ifarch %ix86
-  install -m 755 libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0 
$RPM_BUILD_ROOT/usr/%{_lib}
-%endif
-  install -m 755 libaticaldd.so libaticalrt.so libaticalcl.so 
$RPM_BUILD_ROOT/usr/%{_lib}
-  install -m 755 libatiuki.so.1.0 
$RPM_BUILD_ROOT/usr/%{_lib}
-  test -f libglx.so && \
-    install -m 755 libglx.so            
$RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
-popd
-pushd 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  # add kernel patches here
-%if %suse_version > 1030
-  patch -p0 -s < 
$RPM_SOURCE_DIR/ati-CONFIG_SMP.diff
-%endif
-%if %suse_version > 1100
-  patch -p1 -s < 
$RPM_SOURCE_DIR/ati-2.6.27-build-fix-1.diff
-%endif
-  rm -f *.orig
-popd
-install -m 755 
$RPM_SOURCE_DIR/fglrx-kernel-build.sh \
-  
$RPM_BUILD_ROOT/usr/bin
-cp 
$RPM_SOURCE_DIR/fglrx.png $RPM_BUILD_ROOT/usr/share/pixmaps
-%if %suse_version > 1020
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d/
-install -m 755 
$RPM_SOURCE_DIR/ati-powermode.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
-%if %suse_version < 1110
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-install -m 755 
$RPM_SOURCE_DIR/toggle-lvds.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-%else
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-install -m 755 
$RPM_SOURCE_DIR/{ati-powermode.sh,toggle-lvds.sh} \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-mkdir -p 
$RPM_BUILD_ROOT/etc/init.d
-if [ -x 
$RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  install -m 755 
$RPM_SOURCE_DIR/atieventsd.sh \
-    
$RPM_BUILD_ROOT/etc/init.d/atieventsd
-  ln -snf /etc/init.d/atieventsd 
$RPM_BUILD_ROOT/usr/sbin/rcatieventsd
-fi
-rm -rf 
$tmpdir
-rm -rf 
$RPM_SOURCE_DIR
-echo > files.fglrx
-if [ -x 
$RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  cat > files.fglrx << EOF
-/etc/init.d/atieventsd
-/usr/sbin/atieventsd
-/usr/sbin/rcatieventsd
-EOF
-if [ -f 
$RPM_BUILD_ROOT/usr/share/man/man8/atieventsd.8.gz ]; then
-  echo "
/usr/share/man/man8/atieventsd.8.gz" >> files.fglrx
-fi
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdcccle ]; then
-  echo "
/usr/bin/amdcccle" >> files.fglrx
-  echo "
/usr/share/ati/amdcccle/" >> files.fglrx
-  echo "
/usr/share/pixmaps/ccc_large.xpm" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/atiodcli ]; then
-  echo "
/usr/bin/atiodcli" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/atiode ]; then
-  echo "
/usr/bin/atiode" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdxdg-su ]; then
-  echo "
/usr/bin/amdxdg-su" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdupdaterandrconfig ]; then
-  echo "
/usr/bin/amdupdaterandrconfig" >> files.fglrx
-fi
-if [ -f  
$RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop ]; then
-  echo  "
/usr/share/applications/amdccclesu.desktop" >> files.fglrx
-fi
-if [ -f  
$RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop ]; then
-  echo  "
/usr/share/applications/amdcccle.desktop" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.a ]; then
-  echo "
/usr/X11R6/%{_lib}/libfglrx_tvout.a" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0 ]; then
-  echo "
/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/sbin/atigetsysteminfo.sh ]; then
-  echo "
/usr/sbin/atigetsysteminfo.sh" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/esut.a ]; then
-  echo "
%{MODULES_DIR}/esut.a" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/glesx.so ]; then
-  echo "
%{MODULES_DIR}/glesx.so" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/amdxmm.so ]; then
-  echo "
%{MODULES_DIR}/amdxmm.so" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/updates/extensions/libglx.so ]; then
-  echo "
%{MODULES_DIR}/updates/extensions/libglx.so" >> files.fglrx
-fi
-%ifarch x86_64
-if [ -f 
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}/fglrx_dri.so ]; then
-  echo "
%{DRI_DRIVERS32_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-%endif
-if [ -f 
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}/fglrx_dri.so ]; then
-  echo "
%{DRI_DRIVERS_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-find 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx -type f | xargs chmod 644
-mkdir -p 
$RPM_BUILD_ROOT/etc/modprobe.d
-echo "
blacklist radeon" > $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf
-export NO_BRP_CHECK_RPATH=true
-
-%post
-%run_ldconfig
-if [ -x etc/init.d/atieventsd ]; then
-  # Create symbolic run level links for atieventsd start script:
-  %{fillup_and_insserv -y atieventsd}
-fi
-%if %suse_version < 1110
-  if [ -r /etc/powersave/events ]; then
-    grep -q "
EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
-     sed -e 's/\(EVENT_DAEMON_SCHEME_CHANGE="
\)\(.*\)/\1ati-powermode.sh \2/g' -i /etc/powersave/events
-  fi
-%endif
-if [ -f etc/X11/xorg.conf ]; then
-  test -f etc/X11/xorg.conf.fglrx-post || \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
-fi
-test -f %{MODULES_DIR}/drivers/fglrx_drv.so && \
-  touch %{MODULES_DIR}/drivers/fglrx_drv.so
-%if %suse_version > 1010
-# ATI libGL still uses the old X11R6 path :-(
-mkdir -p usr/X11R6/%{_lib}/modules
-test -d usr/X11R6/%{_lib}/modules/dri && \
-  mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
-ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri
-%ifarch x86_64
-mkdir -p usr/X11R6/lib/modules
-test -d usr/X11R6/lib/modules/dri && \
-  mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
-ln -snf /usr/lib/dri usr/X11R6/lib/modules/dri
-%endif
-%endif
-usr/bin/fglrx-kernel-build.sh
-if [ $? -ne 0 ]; then
-  echo
-  echo "**************************************************************"
-  echo "Building/installation of fglrx kernel module failed! Try again"
-  echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
-  echo "**************************************************************"
-  echo
-fi
-echo
-echo "*************************************************************"
-echo "Please read \"/usr/share/doc/packages/fglrx/README.SuSE\" for"
-echo "configuration details when using SaX2."
-echo "*************************************************************"
-echo
-# recreate initrd without KMS, if the use of KMS is enabled in initrd
-if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
-  sed -i '
s/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="yes"/g' /etc/sysconfig/kernel
-  mkinitrd
-fi
-exit 0
-
-%preun
-if [ -x etc/init.d/atieventsd ]; then
-  %stop_on_removal atieventsd
-fi
-exit 0
-
-%postun
-if [ -x etc/init.d/atieventsd ]; then
-  # Rearrange run level symlinks after removing the atieventsd init script
-  %{insserv_cleanup}
-fi
-if [ "$1" -eq 0 ]; then
-  test -f etc/X11/xorg.conf && \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
-  if [ -r etc/X11/xorg.conf.fglrx-post ]; then
-    mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
-  fi
-  # cleanup
-  rm -rf usr/src/kernel-modules/fglrx/
-  # try to unload the kernel module, which fails if it is still in use
-  rmmod fglrx &> /dev/null
-  # now remove it
-  if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
-    modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
-    rm $modfile
-  fi
-fi
-exit 0
-
-%files -f files.fglrx
-%defattr(-, root, root)
-%dir /usr/include/GL
-%ifarch x86_64
-%dir %{DRI_DRIVERS_DIR}
-%endif
-%dir /etc/security/console.apps/
-/etc/ati/
-/etc/modprobe.d/fglrx.conf
-/etc/pam.d/amdcccle-su
-/etc/security/console.apps/amdcccle-su
-/usr/include/GL/glxATI.h
-/usr/include/GL/glATI.h
-%ifarch x86_64
-/usr/lib/*
-/usr/X11R6/lib/libGL.so
-/usr/X11R6/lib/libGL.so.1
-/usr/X11R6/lib/libGL.so.1.2
-%endif
-/usr/%{_lib}/libatiadlxx.so
-/usr/%{_lib}/libatiuki.so.1.0
-%ifarch %ix86
-/usr/%{_lib}/libAMDXvBA.cap
-/usr/%{_lib}/libAMDXvBA.so.1.0
-/usr/%{_lib}/libXvBAW.so.1.0
-%endif
-/usr/%{_lib}/libaticaldd.so
-/usr/%{_lib}/libaticalrt.so
-/usr/%{_lib}/libaticalcl.so
-/usr/X11R6/%{_lib}/libGL.so
-/usr/X11R6/%{_lib}/libGL.so.1
-/usr/X11R6/%{_lib}/libGL.so.1.2
-/usr/sbin/amdnotifyui
-/usr/share/ati/%{_lib}/libQt*
-/usr/share/pixmaps/fglrx.png
-/usr/share/doc/packages/fglrx
-/usr/bin/fgl_glxgears
-/usr/bin/fglrx_xgamma
-/usr/bin/fglrxinfo
-/usr/bin/fglrx-kernel-build.sh
-/usr/bin/aticonfig
-%{X11_INCLUDE_DIR}/extensions/fglrx_gamma.h
-/usr/X11R6/%{_lib}/libfglrx_gamma.a
-/usr/X11R6/%{_lib}/libfglrx_gamma.so*
-%verify(not mtime) %{MODULES_DIR}/drivers/fglrx_drv.*
-%{MODULES_DIR}/linux/libfglrxdrm.*
-# km_fglrx
-%dir /usr/src/kernel-modules
-/usr/src/kernel-modules/fglrx/
-# powersave script
-%if %suse_version > 1020
-/usr/%{_lib}/pm-utils/power.d/ati-powermode.sh
-%else
-/usr/%{_lib}/powersave/scripts/ati-powermode.sh
-%endif
-%if %suse_version < 1110
-# Thinkpad Hotkey script
-/usr/%{_lib}/powersave/scripts/toggle-lvds.sh
-%endif
diff --git a/SuSE/x740.SUSE112-IA32.spec b/SuSE/x740.SUSE112-IA32.spec
deleted file mode 100644
index 2692afb..0000000
--- a/SuSE/x740.SUSE112-IA32.spec
+++ /dev/null
@@ -1,461 +0,0 @@
-#############################################################################
-# spec file header                                                          #
-#############################################################################
-
-Name: fglrx_7_4_0_SUSE112
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
-
-%if %suse_version > 1010
-%define MODULES_DIR       /usr/%{_lib}/xorg/modules
-%define DRI_DRIVERS_DIR   /usr/%{_lib}/dri
-%define DRI_DRIVERS32_DIR /usr/lib/dri
-%define X11_INCLUDE_DIR   /usr/include/X11
-%else
-%define MODULES_DIR       /usr/X11R6/%{_lib}/modules
-%define DRI_DRIVERS_DIR   /usr/X11R6/%{_lib}/modules/dri
-%define DRI_DRIVERS32_DIR /usr/X11R6/lib/modules/dri
-%define X11_INCLUDE_DIR   /usr/X11R6/include/X11
-%endif
-
-# local rpm options
-%define __check_files   %{nil}
-
-#############################################################################
-# spec file description                                                     #
-#############################################################################
-%description
-%ATI_DRIVER_DESCRIPTION
-
-%install
-%if %suse_version > 1110
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT
-cp -a %ATI_DRIVER_BUILD_ROOT/* $RPM_BUILD_ROOT
-%endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
-mkdir $tmpdir/fglrx
-mv $RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv $tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
-#
-mkdir -p $RPM_BUILD_ROOT/usr/bin \
-         $RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
-%ifarch x86_64
-         $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
-%endif
-         $RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
-         $RPM_BUILD_ROOT/usr/include/GL \
-         $RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
-%ifarch x86_64
-         $RPM_BUILD_ROOT/usr/X11R6/lib \
-         $RPM_BUILD_ROOT/usr/lib \
-%endif
-         $RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         $RPM_BUILD_ROOT/usr/share/pixmaps \
-         $RPM_BUILD_ROOT/usr/sbin \
-         $RPM_BUILD_ROOT/usr/share/man/man8 \
-         $RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         $RPM_BUILD_ROOT/etc/ati
-pushd $tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* $RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    $RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p $RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su $RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati $RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* $RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* $RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
-%ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/$file ]; then
-      mv usr/X11R6/lib/$file .
-      install -m 755 $file                 $RPM_BUILD_ROOT/usr/lib
-      rm $file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/$file .
-    install -m 755 $file                   $RPM_BUILD_ROOT/usr/lib
-    rm $file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       $RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup $i .; done
-  # make sure we don'
t overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    
install -m 644 LICENSE.xmlconfig     $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 $RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            $RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    
install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  
install -m 444 fglrx_drv.*             $RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           $RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            $RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               $RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle grep -q libexpat.so.0 || \
-      
install -m 755 amdcccle  $RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                $RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
install -m 755 libfglrx_gamma.so*      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
ln -snf libfglrx_gamma.so.1.0          $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           $RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               $RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 $RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  
install -m 755 atigetsysteminfo.sh     $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  
install -m 755 atieventsd              $RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    
gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  
install -m 644 atieventsd.8.gz         $RPM_BUILD_ROOT/usr/share/man/man8
-  test -f $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    
install -m 755 $RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.&& \
-    
install -m 644 libfglrx_tvout.a      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
test -f libfglrx_tvout.so.1.0 && \
-    
install -m 644 libfglrx_tvout.so.1.0 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
test -f esut.&& \
-    
install -m 444 esut.a                $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f glesx.so && \
-    
install -m 444 glesx.so              $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f amdxmm.so && \
-    
install -m 444 amdxmm.so             $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f atiodcli && \
-    
install -m 755 atiodcli              $RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    
install -m 755 atiode                $RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    
install -m 755 amdxdg-su             $RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    
install -m 755 amdupdaterandrconfig  $RPM_BUILD_ROOT/usr/bin
-  mkdir -p $RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  install -m 644 amdccclesu.desktop      $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/%{_lib}
-%
ifarch %ix86
-  install -m 755 libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-%endif
-  
install -m 755 libaticaldd.so libaticalrt.so libaticalcl.so $RPM_BUILD_ROOT/usr/%{_lib}
-  
install -m 755 libatiuki.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-  
test -f libglx.so && \
-    
install -m 755 libglx.so            $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
-popd
-pushd $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  # add kernel patches here
-%if %suse_version 1030
-  patch -p0 -$RPM_SOURCE_DIR/ati-CONFIG_SMP.diff
-%endif
-%if %
suse_version 1100
-  patch -p1 -$RPM_SOURCE_DIR/ati-2.6.27-build-fix-1.diff
-%endif
-  
rm -*.orig
-popd
-install -m 755 $RPM_SOURCE_DIR/fglrx-kernel-build.sh \
-  
$RPM_BUILD_ROOT/usr/bin
-cp $RPM_SOURCE_DIR/fglrx.png $RPM_BUILD_ROOT/usr/share/pixmaps
-%if %suse_version 1020
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d/
-
install -m 755 $RPM_SOURCE_DIR/ati-powermode.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
-%if %suse_version 1110
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-
install -m 755 $RPM_SOURCE_DIR/toggle-lvds.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-%else
-
mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-
install -m 755 $RPM_SOURCE_DIR/{ati-powermode.sh,toggle-lvds.sh} \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-
mkdir -p $RPM_BUILD_ROOT/etc/init.d
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  install -m 755 $RPM_SOURCE_DIR/atieventsd.sh \
-    
$RPM_BUILD_ROOT/etc/init.d/atieventsd
-  ln -snf /etc/init.d/atieventsd $RPM_BUILD_ROOT/usr/sbin/rcatieventsd
-fi
-rm -rf $tmpdir
-rm -rf $RPM_SOURCE_DIR
-echo > files.fglrx
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  cat files.fglrx << EOF
-/etc/init.d/atieventsd
-/usr/sbin/atieventsd
-/usr/sbin/rcatieventsd
-EOF
-if [ -f $RPM_BUILD_ROOT/usr/share/man/man8/atieventsd.8.gz ]; then
-  echo "/usr/share/man/man8/atieventsd.8.gz" >> files.fglrx
-fi
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdcccle ]; then
-  echo "/usr/bin/amdcccle" >> files.fglrx
-  echo "/usr/share/ati/amdcccle/" >> files.fglrx
-  echo "/usr/share/pixmaps/ccc_large.xpm" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiodcli ]; then
-  echo "/usr/bin/atiodcli" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiode ]; then
-  echo "/usr/bin/atiode" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdxdg-su ]; then
-  echo "/usr/bin/amdxdg-su" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdupdaterandrconfig ]; then
-  echo "/usr/bin/amdupdaterandrconfig" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop ]; then
-  echo  "/usr/share/applications/amdccclesu.desktop" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop ]; then
-  echo  "/usr/share/applications/amdcccle.desktop" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0 ]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/sbin/atigetsysteminfo.sh ]; then
-  echo "/usr/sbin/atigetsysteminfo.sh" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/esut.]; then
-  echo "%{MODULES_DIR}/esut.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/glesx.so ]; then
-  echo "%{MODULES_DIR}/glesx.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/amdxmm.so ]; then
-  echo "%{MODULES_DIR}/amdxmm.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/updates/extensions/libglx.so ]; then
-  echo "%{MODULES_DIR}/updates/extensions/libglx.so" >> files.fglrx
-fi
-%ifarch x86_64
-if [ -f $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS32_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-%endif
-if [ -
f $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-find $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx -type f xargs chmod 644
-mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
-echo "blacklist radeon" $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf
-export NO_BRP_CHECK_RPATH=true
-
-%
post
-%run_ldconfig
-if [ -x etc/init.d/atieventsd ]; then
-  # Create symbolic run level links for atieventsd start script:
-  %{fillup_and_insserv -y atieventsd}
-
fi
-%if %suse_version 1110
-  if [ -/etc/powersave/events ]; then
-    grep -"EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
-     
sed -'s/\(EVENT_DAEMON_SCHEME_CHANGE="\)\(.*\)/\1ati-powermode.sh \2/g' -/etc/powersave/events
-  fi
-%endif
-if [ -
f etc/X11/xorg.conf ]; then
-  test -f etc/X11/xorg.conf.fglrx-post || \
-    
cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
-fi
-test -%{MODULES_DIR}/drivers/fglrx_drv.so && \
-  
touch %{MODULES_DIR}/drivers/fglrx_drv.so
-%if %suse_version 1010
-# ATI libGL still uses the old X11R6 path :-(
-mkdir -p usr/X11R6/%{_lib}/modules
-test -d usr/X11R6/%{_lib}/modules/dri && \
-  
mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
-ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri
-%ifarch x86_64
-mkdir -p usr/X11R6/lib/modules
-test -d usr/X11R6/lib/modules/dri && \
-  
mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
-ln -snf /usr/lib/dri usr/X11R6/lib/modules/dri
-%endif
-%endif
-
usr/bin/fglrx-kernel-build.sh
-if [ $? -ne 0 ]; then
-  echo
-  echo 
"**************************************************************"
-  echo "Building/installation of fglrx kernel module failed! Try again"
-  echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
-  echo "**************************************************************"
-  echo
-
fi
-echo
-echo 
"*************************************************************"
-echo "Please read \"/usr/share/doc/packages/fglrx/README.SuSE\" for"
-echo "configuration details when using SaX2."
-echo "*************************************************************"
-echo
-
# recreate initrd without KMS, if the use of KMS is enabled in initrd
-if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
-  sed -i 's/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="
yes"/g' /etc/sysconfig/kernel
-  mkinitrd
-fi
-exit 0
-
-%preun
-if [ -x etc/init.d/atieventsd ]; then
-  %stop_on_removal atieventsd
-fi
-exit 0
-
-%postun
-if [ -x etc/init.d/atieventsd ]; then
-  # Rearrange run level symlinks after removing the atieventsd init script
-  %{insserv_cleanup}
-fi
-if [ "
$1" -eq 0 ]; then
-  test -f etc/X11/xorg.conf && \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
-  if [ -r etc/X11/xorg.conf.fglrx-post ]; then
-    mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
-  fi
-  # cleanup
-  rm -rf usr/src/kernel-modules/fglrx/
-  # try to unload the kernel module, which fails if it is still in use
-  rmmod fglrx &> /dev/null
-  # now remove it
-  if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
-    modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
-    rm 
$modfile
-  fi
-fi
-exit 0
-
-%files -f files.fglrx
-%defattr(-, root, root)
-%dir /usr/include/GL
-%ifarch x86_64
-%dir %{DRI_DRIVERS_DIR}
-%endif
-%dir /etc/security/console.apps/
-/etc/ati/
-/etc/modprobe.d/fglrx.conf
-/etc/pam.d/amdcccle-su
-/etc/security/console.apps/amdcccle-su
-/usr/include/GL/glxATI.h
-/usr/include/GL/glATI.h
-%ifarch x86_64
-/usr/lib/*
-/usr/X11R6/lib/libGL.so
-/usr/X11R6/lib/libGL.so.1
-/usr/X11R6/lib/libGL.so.1.2
-%endif
-/usr/%{_lib}/libatiadlxx.so
-/usr/%{_lib}/libatiuki.so.1.0
-%ifarch %ix86
-/usr/%{_lib}/libAMDXvBA.cap
-/usr/%{_lib}/libAMDXvBA.so.1.0
-/usr/%{_lib}/libXvBAW.so.1.0
-%endif
-/usr/%{_lib}/libaticaldd.so
-/usr/%{_lib}/libaticalrt.so
-/usr/%{_lib}/libaticalcl.so
-/usr/X11R6/%{_lib}/libGL.so
-/usr/X11R6/%{_lib}/libGL.so.1
-/usr/X11R6/%{_lib}/libGL.so.1.2
-/usr/sbin/amdnotifyui
-/usr/share/ati/%{_lib}/libQt*
-/usr/share/pixmaps/fglrx.png
-/usr/share/doc/packages/fglrx
-/usr/bin/fgl_glxgears
-/usr/bin/fglrx_xgamma
-/usr/bin/fglrxinfo
-/usr/bin/fglrx-kernel-build.sh
-/usr/bin/aticonfig
-%{X11_INCLUDE_DIR}/extensions/fglrx_gamma.h
-/usr/X11R6/%{_lib}/libfglrx_gamma.a
-/usr/X11R6/%{_lib}/libfglrx_gamma.so*
-%verify(not mtime) %{MODULES_DIR}/drivers/fglrx_drv.*
-%{MODULES_DIR}/linux/libfglrxdrm.*
-# km_fglrx
-%dir /usr/src/kernel-modules
-/usr/src/kernel-modules/fglrx/
-# powersave script
-%if %suse_version > 1020
-/usr/%{_lib}/pm-utils/power.d/ati-powermode.sh
-%else
-/usr/%{_lib}/powersave/scripts/ati-powermode.sh
-%endif
-%if %suse_version < 1110
-# Thinkpad Hotkey script
-/usr/%{_lib}/powersave/scripts/toggle-lvds.sh
-%endif
diff --git a/SuSE/x740_64a.SLE11-AMD64.spec b/SuSE/x740_64a.SLE11-AMD64.spec
deleted file mode 100644
index 3f7746e..0000000
--- a/SuSE/x740_64a.SLE11-AMD64.spec
+++ /dev/null
@@ -1,461 +0,0 @@
-#############################################################################
-# spec file header                                                          #
-#############################################################################
-
-Name: fglrx64_7_4_0_SLE11
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
-
-%if %suse_version > 1010
-%define MODULES_DIR       /usr/%{_lib}/xorg/modules
-%define DRI_DRIVERS_DIR   /usr/%{_lib}/dri
-%define DRI_DRIVERS32_DIR /usr/lib/dri
-%define X11_INCLUDE_DIR   /usr/include/X11
-%else
-%define MODULES_DIR       /usr/X11R6/%{_lib}/modules
-%define DRI_DRIVERS_DIR   /usr/X11R6/%{_lib}/modules/dri
-%define DRI_DRIVERS32_DIR /usr/X11R6/lib/modules/dri
-%define X11_INCLUDE_DIR   /usr/X11R6/include/X11
-%endif
-
-# local rpm options
-%define __check_files   %{nil}
-
-#############################################################################
-# spec file description                                                     #
-#############################################################################
-%description
-%ATI_DRIVER_DESCRIPTION
-
-%install
-%if %suse_version > 1110
-rm -rf 
$RPM_BUILD_ROOT
-mkdir -p 
$RPM_BUILD_ROOT
-cp -a %ATI_DRIVER_BUILD_ROOT/* 
$RPM_BUILD_ROOT
-%endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
-mkdir 
$tmpdir/fglrx
-mv 
$RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv 
$tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
-#
-mkdir -p 
$RPM_BUILD_ROOT/usr/bin \
-         
$RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
-%ifarch x86_64
-         
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
-%endif
-         
$RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         
$RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
-         
$RPM_BUILD_ROOT/usr/include/GL \
-         
$RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
-%ifarch x86_64
-         
$RPM_BUILD_ROOT/usr/X11R6/lib \
-         
$RPM_BUILD_ROOT/usr/lib \
-%endif
-         
$RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         
$RPM_BUILD_ROOT/usr/share/pixmaps \
-         
$RPM_BUILD_ROOT/usr/sbin \
-         
$RPM_BUILD_ROOT/usr/share/man/man8 \
-         
$RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         
$RPM_BUILD_ROOT/etc/ati
-pushd 
$tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* 
$RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p 
$RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    
$RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p 
$RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su 
$RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati 
$RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* 
$RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* 
$RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
-%ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            
$RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   
$RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     
$RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             
$RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           
$RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          
$RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/
$file ]; then
-      mv usr/X11R6/lib/
$file .
-      install -m 755 
$file                 $RPM_BUILD_ROOT/usr/lib
-      rm 
$file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/
$file .
-    install -m 755 
$file                   $RPM_BUILD_ROOT/usr/lib
-    rm 
$file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       
$RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup 
$i .; done
-  # make sure we don't overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    install -m 644 LICENSE.xmlconfig     
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 
$RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            
$RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    install -m 444 fglrx_dri.so          
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  install -m 444 fglrx_drv.*             
$RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           
$RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            
$RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               
$RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle | grep -q libexpat.so.0 || \
-      install -m 755 amdcccle  
$RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                
$RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libGL.so.1.2                   
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  install -m 755 libfglrx_gamma.so*      
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libfglrx_gamma.so.1.0          
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           
$RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               
$RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 
$RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  install -m 755 atigetsysteminfo.sh     
$RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  install -m 755 atieventsd              
$RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             
$RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  install -m 644 atieventsd.8.gz         
$RPM_BUILD_ROOT/usr/share/man/man8
-  test -f 
$RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    install -m 755 
$RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 
$RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.a && \
-    install -m 644 libfglrx_tvout.a      
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f libfglrx_tvout.so.1.0 && \
-    install -m 644 libfglrx_tvout.so.1.0 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f esut.a && \
-    install -m 444 esut.a                
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f glesx.so && \
-    install -m 444 glesx.so              
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f amdxmm.so && \
-    install -m 444 amdxmm.so             
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f atiodcli && \
-    install -m 755 atiodcli              
$RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    install -m 755 atiode                
$RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    install -m 755 amdxdg-su             
$RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    install -m 755 amdupdaterandrconfig  
$RPM_BUILD_ROOT/usr/bin
-  mkdir -p 
$RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        
$RPM_BUILD_ROOT/usr/share/applications
-  echo "
GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  echo "
X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  install -m 644 amdccclesu.desktop      
$RPM_BUILD_ROOT/usr/share/applications
-  echo "
GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  echo "
X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  install -m 755 libatiadlxx.so          
$RPM_BUILD_ROOT/usr/%{_lib}
-%ifarch %ix86
-  install -m 755 libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0 
$RPM_BUILD_ROOT/usr/%{_lib}
-%endif
-  install -m 755 libaticaldd.so libaticalrt.so libaticalcl.so 
$RPM_BUILD_ROOT/usr/%{_lib}
-  install -m 755 libatiuki.so.1.0 
$RPM_BUILD_ROOT/usr/%{_lib}
-  test -f libglx.so && \
-    install -m 755 libglx.so            
$RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
-popd
-pushd 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  # add kernel patches here
-%if %suse_version > 1030
-  patch -p0 -s < 
$RPM_SOURCE_DIR/ati-CONFIG_SMP.diff
-%endif
-%if %suse_version > 1100
-  patch -p1 -s < 
$RPM_SOURCE_DIR/ati-2.6.27-build-fix-1.diff
-%endif
-  rm -f *.orig
-popd
-install -m 755 
$RPM_SOURCE_DIR/fglrx-kernel-build.sh \
-  
$RPM_BUILD_ROOT/usr/bin
-cp 
$RPM_SOURCE_DIR/fglrx.png $RPM_BUILD_ROOT/usr/share/pixmaps
-%if %suse_version > 1020
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d/
-install -m 755 
$RPM_SOURCE_DIR/ati-powermode.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
-%if %suse_version < 1110
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-install -m 755 
$RPM_SOURCE_DIR/toggle-lvds.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-%else
-mkdir -p 
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-install -m 755 
$RPM_SOURCE_DIR/{ati-powermode.sh,toggle-lvds.sh} \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-mkdir -p 
$RPM_BUILD_ROOT/etc/init.d
-if [ -x 
$RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  install -m 755 
$RPM_SOURCE_DIR/atieventsd.sh \
-    
$RPM_BUILD_ROOT/etc/init.d/atieventsd
-  ln -snf /etc/init.d/atieventsd 
$RPM_BUILD_ROOT/usr/sbin/rcatieventsd
-fi
-rm -rf 
$tmpdir
-rm -rf 
$RPM_SOURCE_DIR
-echo > files.fglrx
-if [ -x 
$RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  cat > files.fglrx << EOF
-/etc/init.d/atieventsd
-/usr/sbin/atieventsd
-/usr/sbin/rcatieventsd
-EOF
-if [ -f 
$RPM_BUILD_ROOT/usr/share/man/man8/atieventsd.8.gz ]; then
-  echo "
/usr/share/man/man8/atieventsd.8.gz" >> files.fglrx
-fi
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdcccle ]; then
-  echo "
/usr/bin/amdcccle" >> files.fglrx
-  echo "
/usr/share/ati/amdcccle/" >> files.fglrx
-  echo "
/usr/share/pixmaps/ccc_large.xpm" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/atiodcli ]; then
-  echo "
/usr/bin/atiodcli" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/atiode ]; then
-  echo "
/usr/bin/atiode" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdxdg-su ]; then
-  echo "
/usr/bin/amdxdg-su" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/bin/amdupdaterandrconfig ]; then
-  echo "
/usr/bin/amdupdaterandrconfig" >> files.fglrx
-fi
-if [ -f  
$RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop ]; then
-  echo  "
/usr/share/applications/amdccclesu.desktop" >> files.fglrx
-fi
-if [ -f  
$RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop ]; then
-  echo  "
/usr/share/applications/amdcccle.desktop" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.a ]; then
-  echo "
/usr/X11R6/%{_lib}/libfglrx_tvout.a" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0 ]; then
-  echo "
/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/usr/sbin/atigetsysteminfo.sh ]; then
-  echo "
/usr/sbin/atigetsysteminfo.sh" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/esut.a ]; then
-  echo "
%{MODULES_DIR}/esut.a" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/glesx.so ]; then
-  echo "
%{MODULES_DIR}/glesx.so" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/amdxmm.so ]; then
-  echo "
%{MODULES_DIR}/amdxmm.so" >> files.fglrx
-fi
-if [ -f 
$RPM_BUILD_ROOT/%{MODULES_DIR}/updates/extensions/libglx.so ]; then
-  echo "
%{MODULES_DIR}/updates/extensions/libglx.so" >> files.fglrx
-fi
-%ifarch x86_64
-if [ -f 
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}/fglrx_dri.so ]; then
-  echo "
%{DRI_DRIVERS32_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-%endif
-if [ -f 
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}/fglrx_dri.so ]; then
-  echo "
%{DRI_DRIVERS_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-find 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx -type f | xargs chmod 644
-mkdir -p 
$RPM_BUILD_ROOT/etc/modprobe.d
-echo "
blacklist radeon" > $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf
-export NO_BRP_CHECK_RPATH=true
-
-%post
-%run_ldconfig
-if [ -x etc/init.d/atieventsd ]; then
-  # Create symbolic run level links for atieventsd start script:
-  %{fillup_and_insserv -y atieventsd}
-fi
-%if %suse_version < 1110
-  if [ -r /etc/powersave/events ]; then
-    grep -q "
EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
-     sed -e 's/\(EVENT_DAEMON_SCHEME_CHANGE="
\)\(.*\)/\1ati-powermode.sh \2/g' -i /etc/powersave/events
-  fi
-%endif
-if [ -f etc/X11/xorg.conf ]; then
-  test -f etc/X11/xorg.conf.fglrx-post || \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
-fi
-test -f %{MODULES_DIR}/drivers/fglrx_drv.so && \
-  touch %{MODULES_DIR}/drivers/fglrx_drv.so
-%if %suse_version > 1010
-# ATI libGL still uses the old X11R6 path :-(
-mkdir -p usr/X11R6/%{_lib}/modules
-test -d usr/X11R6/%{_lib}/modules/dri && \
-  mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
-ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri
-%ifarch x86_64
-mkdir -p usr/X11R6/lib/modules
-test -d usr/X11R6/lib/modules/dri && \
-  mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
-ln -snf /usr/lib/dri usr/X11R6/lib/modules/dri
-%endif
-%endif
-usr/bin/fglrx-kernel-build.sh
-if [ $? -ne 0 ]; then
-  echo
-  echo "**************************************************************"
-  echo "Building/installation of fglrx kernel module failed! Try again"
-  echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
-  echo "**************************************************************"
-  echo
-fi
-echo
-echo "*************************************************************"
-echo "Please read \"/usr/share/doc/packages/fglrx/README.SuSE\" for"
-echo "configuration details when using SaX2."
-echo "*************************************************************"
-echo
-# recreate initrd without KMS, if the use of KMS is enabled in initrd
-if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
-  sed -i '
s/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="yes"/g' /etc/sysconfig/kernel
-  mkinitrd
-fi
-exit 0
-
-%preun
-if [ -x etc/init.d/atieventsd ]; then
-  %stop_on_removal atieventsd
-fi
-exit 0
-
-%postun
-if [ -x etc/init.d/atieventsd ]; then
-  # Rearrange run level symlinks after removing the atieventsd init script
-  %{insserv_cleanup}
-fi
-if [ "$1" -eq 0 ]; then
-  test -f etc/X11/xorg.conf && \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
-  if [ -r etc/X11/xorg.conf.fglrx-post ]; then
-    mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
-  fi
-  # cleanup
-  rm -rf usr/src/kernel-modules/fglrx/
-  # try to unload the kernel module, which fails if it is still in use
-  rmmod fglrx &> /dev/null
-  # now remove it
-  if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
-    modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
-    rm $modfile
-  fi
-fi
-exit 0
-
-%files -f files.fglrx
-%defattr(-, root, root)
-%dir /usr/include/GL
-%ifarch x86_64
-%dir %{DRI_DRIVERS_DIR}
-%endif
-%dir /etc/security/console.apps/
-/etc/ati/
-/etc/modprobe.d/fglrx.conf
-/etc/pam.d/amdcccle-su
-/etc/security/console.apps/amdcccle-su
-/usr/include/GL/glxATI.h
-/usr/include/GL/glATI.h
-%ifarch x86_64
-/usr/lib/*
-/usr/X11R6/lib/libGL.so
-/usr/X11R6/lib/libGL.so.1
-/usr/X11R6/lib/libGL.so.1.2
-%endif
-/usr/%{_lib}/libatiadlxx.so
-/usr/%{_lib}/libatiuki.so.1.0
-%ifarch %ix86
-/usr/%{_lib}/libAMDXvBA.cap
-/usr/%{_lib}/libAMDXvBA.so.1.0
-/usr/%{_lib}/libXvBAW.so.1.0
-%endif
-/usr/%{_lib}/libaticaldd.so
-/usr/%{_lib}/libaticalrt.so
-/usr/%{_lib}/libaticalcl.so
-/usr/X11R6/%{_lib}/libGL.so
-/usr/X11R6/%{_lib}/libGL.so.1
-/usr/X11R6/%{_lib}/libGL.so.1.2
-/usr/sbin/amdnotifyui
-/usr/share/ati/%{_lib}/libQt*
-/usr/share/pixmaps/fglrx.png
-/usr/share/doc/packages/fglrx
-/usr/bin/fgl_glxgears
-/usr/bin/fglrx_xgamma
-/usr/bin/fglrxinfo
-/usr/bin/fglrx-kernel-build.sh
-/usr/bin/aticonfig
-%{X11_INCLUDE_DIR}/extensions/fglrx_gamma.h
-/usr/X11R6/%{_lib}/libfglrx_gamma.a
-/usr/X11R6/%{_lib}/libfglrx_gamma.so*
-%verify(not mtime) %{MODULES_DIR}/drivers/fglrx_drv.*
-%{MODULES_DIR}/linux/libfglrxdrm.*
-# km_fglrx
-%dir /usr/src/kernel-modules
-/usr/src/kernel-modules/fglrx/
-# powersave script
-%if %suse_version > 1020
-/usr/%{_lib}/pm-utils/power.d/ati-powermode.sh
-%else
-/usr/%{_lib}/powersave/scripts/ati-powermode.sh
-%endif
-%if %suse_version < 1110
-# Thinkpad Hotkey script
-/usr/%{_lib}/powersave/scripts/toggle-lvds.sh
-%endif
diff --git a/SuSE/x740_64a.SUSE111-AMD64.spec b/SuSE/x740_64a.SUSE111-AMD64.spec
deleted file mode 100644
index 199e5bd..0000000
--- a/SuSE/x740_64a.SUSE111-AMD64.spec
+++ /dev/null
@@ -1,461 +0,0 @@
-#############################################################################
-# spec file header                                                          #
-#############################################################################
-
-Name: fglrx64_7_4_0_SUSE111
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
-
-%if %suse_version > 1010
-%define MODULES_DIR       /usr/%{_lib}/xorg/modules
-%define DRI_DRIVERS_DIR   /usr/%{_lib}/dri
-%define DRI_DRIVERS32_DIR /usr/lib/dri
-%define X11_INCLUDE_DIR   /usr/include/X11
-%else
-%define MODULES_DIR       /usr/X11R6/%{_lib}/modules
-%define DRI_DRIVERS_DIR   /usr/X11R6/%{_lib}/modules/dri
-%define DRI_DRIVERS32_DIR /usr/X11R6/lib/modules/dri
-%define X11_INCLUDE_DIR   /usr/X11R6/include/X11
-%endif
-
-# local rpm options
-%define __check_files   %{nil}
-
-#############################################################################
-# spec file description                                                     #
-#############################################################################
-%description
-%ATI_DRIVER_DESCRIPTION
-
-%install
-%if %suse_version > 1110
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT
-cp -a %ATI_DRIVER_BUILD_ROOT/* $RPM_BUILD_ROOT
-%endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
-mkdir $tmpdir/fglrx
-mv $RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv $tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
-#
-mkdir -p $RPM_BUILD_ROOT/usr/bin \
-         $RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
-%ifarch x86_64
-         $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
-%endif
-         $RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
-         $RPM_BUILD_ROOT/usr/include/GL \
-         $RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
-%ifarch x86_64
-         $RPM_BUILD_ROOT/usr/X11R6/lib \
-         $RPM_BUILD_ROOT/usr/lib \
-%endif
-         $RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         $RPM_BUILD_ROOT/usr/share/pixmaps \
-         $RPM_BUILD_ROOT/usr/sbin \
-         $RPM_BUILD_ROOT/usr/share/man/man8 \
-         $RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         $RPM_BUILD_ROOT/etc/ati
-pushd $tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* $RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    $RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p $RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su $RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati $RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* $RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* $RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
-%ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           $RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/$file ]; then
-      mv usr/X11R6/lib/$file .
-      install -m 755 $file                 $RPM_BUILD_ROOT/usr/lib
-      rm $file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/$file .
-    install -m 755 $file                   $RPM_BUILD_ROOT/usr/lib
-    rm $file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       $RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup $i .; done
-  # make sure we don'
t overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    
install -m 644 LICENSE.xmlconfig     $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 $RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            $RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    
install -m 444 fglrx_dri.so          $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  
install -m 444 fglrx_drv.*             $RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           $RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            $RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               $RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle grep -q libexpat.so.0 || \
-      
install -m 755 amdcccle  $RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                $RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
ln -snf libGL.so.1.2                   $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
install -m 755 libfglrx_gamma.so*      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
ln -snf libfglrx_gamma.so.1.0          $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           $RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               $RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 $RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  
install -m 755 atigetsysteminfo.sh     $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  
install -m 755 atieventsd              $RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             $RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    
gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  
install -m 644 atieventsd.8.gz         $RPM_BUILD_ROOT/usr/share/man/man8
-  test -f $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    
install -m 755 $RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 $RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.&& \
-    
install -m 644 libfglrx_tvout.a      $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
test -f libfglrx_tvout.so.1.0 && \
-    
install -m 644 libfglrx_tvout.so.1.0 $RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  
test -f esut.&& \
-    
install -m 444 esut.a                $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f glesx.so && \
-    
install -m 444 glesx.so              $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f amdxmm.so && \
-    
install -m 444 amdxmm.so             $RPM_BUILD_ROOT%{MODULES_DIR}
-  
test -f atiodcli && \
-    
install -m 755 atiodcli              $RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    
install -m 755 atiode                $RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    
install -m 755 amdxdg-su             $RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    
install -m 755 amdupdaterandrconfig  $RPM_BUILD_ROOT/usr/bin
-  mkdir -p $RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop
-  install -m 644 amdccclesu.desktop      $RPM_BUILD_ROOT/usr/share/applications
-  echo "GenericName=ATI Catalyst Control Center (Administrative)" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  echo "X-SuSE-translate=false" >> $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop
-  install -m 755 libatiadlxx.so          $RPM_BUILD_ROOT/usr/%{_lib}
-%
ifarch %ix86
-  install -m 755 libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-%endif
-  
install -m 755 libaticaldd.so libaticalrt.so libaticalcl.so $RPM_BUILD_ROOT/usr/%{_lib}
-  
install -m 755 libatiuki.so.1.0 $RPM_BUILD_ROOT/usr/%{_lib}
-  
test -f libglx.so && \
-    
install -m 755 libglx.so            $RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions
-popd
-pushd $RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  # add kernel patches here
-%if %suse_version 1030
-  patch -p0 -$RPM_SOURCE_DIR/ati-CONFIG_SMP.diff
-%endif
-%if %
suse_version 1100
-  patch -p1 -$RPM_SOURCE_DIR/ati-2.6.27-build-fix-1.diff
-%endif
-  
rm -*.orig
-popd
-install -m 755 $RPM_SOURCE_DIR/fglrx-kernel-build.sh \
-  
$RPM_BUILD_ROOT/usr/bin
-cp $RPM_SOURCE_DIR/fglrx.png $RPM_BUILD_ROOT/usr/share/pixmaps
-%if %suse_version 1020
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d/
-
install -m 755 $RPM_SOURCE_DIR/ati-powermode.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/pm-utils/power.d
-%if %suse_version 1110
-mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-
install -m 755 $RPM_SOURCE_DIR/toggle-lvds.sh \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-%else
-
mkdir -p $RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-
install -m 755 $RPM_SOURCE_DIR/{ati-powermode.sh,toggle-lvds.sh} \
-  
$RPM_BUILD_ROOT/usr/%{_lib}/powersave/scripts/
-%endif
-
mkdir -p $RPM_BUILD_ROOT/etc/init.d
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  install -m 755 $RPM_SOURCE_DIR/atieventsd.sh \
-    
$RPM_BUILD_ROOT/etc/init.d/atieventsd
-  ln -snf /etc/init.d/atieventsd $RPM_BUILD_ROOT/usr/sbin/rcatieventsd
-fi
-rm -rf $tmpdir
-rm -rf $RPM_SOURCE_DIR
-echo > files.fglrx
-if [ -x $RPM_BUILD_ROOT/usr/sbin/atieventsd ]; then
-  cat files.fglrx << EOF
-/etc/init.d/atieventsd
-/usr/sbin/atieventsd
-/usr/sbin/rcatieventsd
-EOF
-if [ -f $RPM_BUILD_ROOT/usr/share/man/man8/atieventsd.8.gz ]; then
-  echo "/usr/share/man/man8/atieventsd.8.gz" >> files.fglrx
-fi
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdcccle ]; then
-  echo "/usr/bin/amdcccle" >> files.fglrx
-  echo "/usr/share/ati/amdcccle/" >> files.fglrx
-  echo "/usr/share/pixmaps/ccc_large.xpm" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiodcli ]; then
-  echo "/usr/bin/atiodcli" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/atiode ]; then
-  echo "/usr/bin/atiode" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdxdg-su ]; then
-  echo "/usr/bin/amdxdg-su" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/bin/amdupdaterandrconfig ]; then
-  echo "/usr/bin/amdupdaterandrconfig" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdccclesu.desktop ]; then
-  echo  "/usr/share/applications/amdccclesu.desktop" >> files.fglrx
-fi
-if [ -f  $RPM_BUILD_ROOT/usr/share/applications/amdcccle.desktop ]; then
-  echo  "/usr/share/applications/amdcccle.desktop" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0 ]; then
-  echo "/usr/X11R6/%{_lib}/libfglrx_tvout.so.1.0" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/usr/sbin/atigetsysteminfo.sh ]; then
-  echo "/usr/sbin/atigetsysteminfo.sh" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/esut.]; then
-  echo "%{MODULES_DIR}/esut.a" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/glesx.so ]; then
-  echo "%{MODULES_DIR}/glesx.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/amdxmm.so ]; then
-  echo "%{MODULES_DIR}/amdxmm.so" >> files.fglrx
-fi
-if [ -f $RPM_BUILD_ROOT/%{MODULES_DIR}/updates/extensions/libglx.so ]; then
-  echo "%{MODULES_DIR}/updates/extensions/libglx.so" >> files.fglrx
-fi
-%ifarch x86_64
-if [ -f $RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS32_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-%endif
-if [ -
f $RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}/fglrx_dri.so ]; then
-  echo "%{DRI_DRIVERS_DIR}/fglrx_dri.so" >> files.fglrx
-fi
-find $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx -type f xargs chmod 644
-mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
-echo "blacklist radeon" $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf
-export NO_BRP_CHECK_RPATH=true
-
-%
post
-%run_ldconfig
-if [ -x etc/init.d/atieventsd ]; then
-  # Create symbolic run level links for atieventsd start script:
-  %{fillup_and_insserv -y atieventsd}
-
fi
-%if %suse_version 1110
-  if [ -/etc/powersave/events ]; then
-    grep -"EVENT_DAEMON_SCHEME_CHANGE=.*ati-powermode.sh" /etc/powersave/events || \
-     
sed -'s/\(EVENT_DAEMON_SCHEME_CHANGE="\)\(.*\)/\1ati-powermode.sh \2/g' -/etc/powersave/events
-  fi
-%endif
-if [ -
f etc/X11/xorg.conf ]; then
-  test -f etc/X11/xorg.conf.fglrx-post || \
-    
cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-post
-fi
-test -%{MODULES_DIR}/drivers/fglrx_drv.so && \
-  
touch %{MODULES_DIR}/drivers/fglrx_drv.so
-%if %suse_version 1010
-# ATI libGL still uses the old X11R6 path :-(
-mkdir -p usr/X11R6/%{_lib}/modules
-test -d usr/X11R6/%{_lib}/modules/dri && \
-  
mv usr/X11R6/%{_lib}/modules/dri usr/X11R6/%{_lib}/modules/dri.old
-ln -snf /usr/%{_lib}/dri usr/X11R6/%{_lib}/modules/dri
-%ifarch x86_64
-mkdir -p usr/X11R6/lib/modules
-test -d usr/X11R6/lib/modules/dri && \
-  
mv usr/X11R6/lib/modules/dri usr/X11R6/lib/modules/dri.old
-ln -snf /usr/lib/dri usr/X11R6/lib/modules/dri
-%endif
-%endif
-
usr/bin/fglrx-kernel-build.sh
-if [ $? -ne 0 ]; then
-  echo
-  echo 
"**************************************************************"
-  echo "Building/installation of fglrx kernel module failed! Try again"
-  echo "by calling \"/usr/bin/fglrx-kernel-build.sh\" manually."
-  echo "**************************************************************"
-  echo
-
fi
-echo
-echo 
"*************************************************************"
-echo "Please read \"/usr/share/doc/packages/fglrx/README.SuSE\" for"
-echo "configuration details when using SaX2."
-echo "*************************************************************"
-echo
-
# recreate initrd without KMS, if the use of KMS is enabled in initrd
-if grep -q NO_KMS_IN_INITRD=\"no\" /etc/sysconfig/kernel; then
-  sed -i 's/NO_KMS_IN_INITRD.*/NO_KMS_IN_INITRD="
yes"/g' /etc/sysconfig/kernel
-  mkinitrd
-fi
-exit 0
-
-%preun
-if [ -x etc/init.d/atieventsd ]; then
-  %stop_on_removal atieventsd
-fi
-exit 0
-
-%postun
-if [ -x etc/init.d/atieventsd ]; then
-  # Rearrange run level symlinks after removing the atieventsd init script
-  %{insserv_cleanup}
-fi
-if [ "
$1" -eq 0 ]; then
-  test -f etc/X11/xorg.conf && \
-    cp etc/X11/xorg.conf etc/X11/xorg.conf.fglrx-postun
-  if [ -r etc/X11/xorg.conf.fglrx-post ]; then
-    mv etc/X11/xorg.conf.fglrx-post etc/X11/xorg.conf
-  fi
-  # cleanup
-  rm -rf usr/src/kernel-modules/fglrx/
-  # try to unload the kernel module, which fails if it is still in use
-  rmmod fglrx &> /dev/null
-  # now remove it
-  if modinfo fglrx 2> /dev/null | grep -q ^filename:; then
-    modfile=$(modinfo fglrx | grep ^filename: | cut -d : -f 2 | head -n 1)
-    rm 
$modfile
-  fi
-fi
-exit 0
-
-%files -f files.fglrx
-%defattr(-, root, root)
-%dir /usr/include/GL
-%ifarch x86_64
-%dir %{DRI_DRIVERS_DIR}
-%endif
-%dir /etc/security/console.apps/
-/etc/ati/
-/etc/modprobe.d/fglrx.conf
-/etc/pam.d/amdcccle-su
-/etc/security/console.apps/amdcccle-su
-/usr/include/GL/glxATI.h
-/usr/include/GL/glATI.h
-%ifarch x86_64
-/usr/lib/*
-/usr/X11R6/lib/libGL.so
-/usr/X11R6/lib/libGL.so.1
-/usr/X11R6/lib/libGL.so.1.2
-%endif
-/usr/%{_lib}/libatiadlxx.so
-/usr/%{_lib}/libatiuki.so.1.0
-%ifarch %ix86
-/usr/%{_lib}/libAMDXvBA.cap
-/usr/%{_lib}/libAMDXvBA.so.1.0
-/usr/%{_lib}/libXvBAW.so.1.0
-%endif
-/usr/%{_lib}/libaticaldd.so
-/usr/%{_lib}/libaticalrt.so
-/usr/%{_lib}/libaticalcl.so
-/usr/X11R6/%{_lib}/libGL.so
-/usr/X11R6/%{_lib}/libGL.so.1
-/usr/X11R6/%{_lib}/libGL.so.1.2
-/usr/sbin/amdnotifyui
-/usr/share/ati/%{_lib}/libQt*
-/usr/share/pixmaps/fglrx.png
-/usr/share/doc/packages/fglrx
-/usr/bin/fgl_glxgears
-/usr/bin/fglrx_xgamma
-/usr/bin/fglrxinfo
-/usr/bin/fglrx-kernel-build.sh
-/usr/bin/aticonfig
-%{X11_INCLUDE_DIR}/extensions/fglrx_gamma.h
-/usr/X11R6/%{_lib}/libfglrx_gamma.a
-/usr/X11R6/%{_lib}/libfglrx_gamma.so*
-%verify(not mtime) %{MODULES_DIR}/drivers/fglrx_drv.*
-%{MODULES_DIR}/linux/libfglrxdrm.*
-# km_fglrx
-%dir /usr/src/kernel-modules
-/usr/src/kernel-modules/fglrx/
-# powersave script
-%if %suse_version > 1020
-/usr/%{_lib}/pm-utils/power.d/ati-powermode.sh
-%else
-/usr/%{_lib}/powersave/scripts/ati-powermode.sh
-%endif
-%if %suse_version < 1110
-# Thinkpad Hotkey script
-/usr/%{_lib}/powersave/scripts/toggle-lvds.sh
-%endif
diff --git a/SuSE/x740_64a.SUSE112-AMD64.spec b/SuSE/x740_64a.SUSE112-AMD64.spec
deleted file mode 100644
index ed2306a..0000000
--- a/SuSE/x740_64a.SUSE112-AMD64.spec
+++ /dev/null
@@ -1,461 +0,0 @@
-#############################################################################
-# spec file header                                                          #
-#############################################################################
-
-Name: fglrx64_7_4_0_SUSE112
-Summary: %ATI_DRIVER_SUMMARY
-Version: %ATI_DRIVER_VERSION
-Release: %ATI_DRIVER_RELEASE
-License: %ATI_DRIVER_VENDOR
-URL: %ATI_DRIVER_URL
-Group: Servers
-PreReq: %insserv_prereq %fillup_prereq
-Provides: fglrx km_fglrx
-Obsoletes: fglrx km_fglrx
-ExclusiveArch: %ix86 x86_64
-BuildRoot: %ATI_DRIVER_BUILD_ROOT
-
-%if %suse_version > 1010
-%define MODULES_DIR       /usr/%{_lib}/xorg/modules
-%define DRI_DRIVERS_DIR   /usr/%{_lib}/dri
-%define DRI_DRIVERS32_DIR /usr/lib/dri
-%define X11_INCLUDE_DIR   /usr/include/X11
-%else
-%define MODULES_DIR       /usr/X11R6/%{_lib}/modules
-%define DRI_DRIVERS_DIR   /usr/X11R6/%{_lib}/modules/dri
-%define DRI_DRIVERS32_DIR /usr/X11R6/lib/modules/dri
-%define X11_INCLUDE_DIR   /usr/X11R6/include/X11
-%endif
-
-# local rpm options
-%define __check_files   %{nil}
-
-#############################################################################
-# spec file description                                                     #
-#############################################################################
-%description
-%ATI_DRIVER_DESCRIPTION
-
-%install
-%if %suse_version > 1110
-rm -rf 
$RPM_BUILD_ROOT
-mkdir -p 
$RPM_BUILD_ROOT
-cp -a %ATI_DRIVER_BUILD_ROOT/* 
$RPM_BUILD_ROOT
-%endif
-tmpdir=$(mktemp -d /tmp/fglrx.XXXXXX)
-mkdir 
$tmpdir/fglrx
-mv 
$RPM_BUILD_ROOT/* $tmpdir/fglrx
-export RPM_SOURCE_DIR=$(mktemp -d /tmp/fglrx.XXXXXX)
-mv 
$tmpdir/fglrx/suse/* $RPM_SOURCE_DIR
-#
-mkdir -p 
$RPM_BUILD_ROOT/usr/bin \
-         
$RPM_BUILD_ROOT%{X11_INCLUDE_DIR}/extensions \
-%ifarch x86_64
-         
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR} \
-%endif
-         
$RPM_BUILD_ROOT%{MODULES_DIR}/{linux,drivers,extensions} \
-         
$RPM_BUILD_ROOT%{MODULES_DIR}/updates/extensions \
-         
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR} \
-         
$RPM_BUILD_ROOT/usr/include/GL \
-         
$RPM_BUILD_ROOT/usr/X11R6/%{_lib} \
-%ifarch x86_64
-         
$RPM_BUILD_ROOT/usr/X11R6/lib \
-         
$RPM_BUILD_ROOT/usr/lib \
-%endif
-         
$RPM_BUILD_ROOT/usr/%{_lib}/fglrx/lib \
-         
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx \
-         
$RPM_BUILD_ROOT/usr/share/pixmaps \
-         
$RPM_BUILD_ROOT/usr/sbin \
-         
$RPM_BUILD_ROOT/usr/share/man/man8 \
-         
$RPM_BUILD_ROOT/usr/share/ati/%{_lib} \
-         
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx \
-         
$RPM_BUILD_ROOT/etc/ati
-pushd 
$tmpdir/fglrx
-  rm -f lib/modules/fglrx/build_mod/make.sh
-  mv lib/modules/fglrx/build_mod/* 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx
-  chmod 644 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/*
-  test -e 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart && \
-    chmod 755 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/firegl_agpgart
-  chmod 755 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x
-  chmod 644 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/2.6.x/Makefile
-  ln -s 2.6.x/Makefile 
$RPM_BUILD_ROOT/usr/src/kernel-modules/fglrx/Makefile
-  rm -rf lib
-  mv usr/share/doc/fglrx/{articles,user-manual} \
-    
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  chmod 755 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx/{articles,user-manual}
-  if [ -d etc/ati ]; then
-    install -m 644 etc/ati/* 
$RPM_BUILD_ROOT/etc/ati
-    rm -rf etc/ati
-  fi
-  mkdir -p 
$RPM_BUILD_ROOT/etc/security/console.apps
-  install -m 755 etc/security/console.apps/amdcccle-su \
-    
$RPM_BUILD_ROOT/etc/security/console.apps
-  mkdir -p 
$RPM_BUILD_ROOT/etc/pam.d
-  ln -snf su 
$RPM_BUILD_ROOT/etc/pam.d/amdcccle-su
-  if [ -f usr/X11R6/bin/amdcccle ]; then
-    if ! ldd usr/X11R6/bin/amdcccle | grep -q libexpat.so.0; then
-      cp -r usr/share/ati 
$RPM_BUILD_ROOT/usr/share
-      install -m 644 usr/share/icons/* 
$RPM_BUILD_ROOT/usr/share/pixmaps
-    fi
-  fi
-  install -m 755 usr/share/ati/%{_lib}/libQt* 
$RPM_BUILD_ROOT/usr/share/ati/%{_lib}
-  rm -rf usr/share/ati
-  rm -rf usr/share/icons
-%ifarch x86_64
-  test -f usr/X11R6/lib/modules/dri/fglrx_dri.so && \
-  ( mv usr/X11R6/lib/modules/dri/fglrx_dri.so .
-    install -m 444 fglrx_dri.so          
$RPM_BUILD_ROOT%{DRI_DRIVERS32_DIR}
-    rm fglrx_dri.so
-  )
-  mv usr/X11R6/lib/libGL.so.1.2 .
-  install -m 755 libGL.so.1.2            
$RPM_BUILD_ROOT/usr/X11R6/lib
-  ln -snf libGL.so.1.2                   
$RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so.1
-  ln -snf libGL.so.1                     
$RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so
-  rm libGL.so.1.2
-  mv usr/X11R6/lib/libfglrx*.a .
-  install -m 644 libfglrx*.a             
$RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.a
-  mv usr/X11R6/lib/libfglrx*.so* .
-  install -m 755 libfglrx*.so*           
$RPM_BUILD_ROOT/usr/lib
-  rm libfglrx*.so*
-  if [ -f usr/X11R6/lib/libatiadlxx.so ]; then
-    mv usr/X11R6/lib/libatiadlxx.so .
-    install -m 755 libatiadlxx.so          
$RPM_BUILD_ROOT/usr/lib
-    rm libatiadlxx.so
-  fi
-  for file in libAMDXvBA.cap libAMDXvBA.so.1.0 libXvBAW.so.1.0; do
-    if [ -f usr/X11R6/lib/
$file ]; then
-      mv usr/X11R6/lib/
$file .
-      install -m 755 
$file                 $RPM_BUILD_ROOT/usr/lib
-      rm 
$file
-    fi
-  done
-  for file in libaticaldd.so libaticalrt.so libaticalcl.so; do
-    mv usr/lib/
$file .
-    install -m 755 
$file                   $RPM_BUILD_ROOT/usr/lib
-    rm 
$file
-  done
-  mv usr/lib/libatiuki.so.1.0 .
-  install -m 755 libatiuki.so.1.0       
$RPM_BUILD_ROOT/usr/lib
-  rm libatiuki.so.1.0
-%endif
-  for i in `find . -type f`; do mv --backup 
$i .; done
-  # make sure we don't overwrite something
-  ls *~ && exit 1
-  install -m 644 ATI_LICENSE.TXT         
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  test -f LICENSE.xmlconfig && \
-    install -m 644 LICENSE.xmlconfig     
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 *.html                  
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 644 
$RPM_SOURCE_DIR/README.SuSE $RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fgl_glxgears            
$RPM_BUILD_ROOT/usr/bin
-  test -f fglrx_dri.so && \
-    install -m 444 fglrx_dri.so          
$RPM_BUILD_ROOT%{DRI_DRIVERS_DIR}
-  install -m 444 fglrx_drv.*             
$RPM_BUILD_ROOT%{MODULES_DIR}/drivers
-  install -m 644 fglrx_gamma.h           
$RPM_BUILD_ROOT/%{X11_INCLUDE_DIR}/extensions
-  install -m 644 fglrx_sample_source.tgz 
$RPM_BUILD_ROOT/usr/share/doc/packages/fglrx
-  install -m 755 fglrx_xgamma            
$RPM_BUILD_ROOT/usr/bin
-  install -m 755 fglrxinfo               
$RPM_BUILD_ROOT/usr/bin
-  if [ -f amdcccle ]; then
-    ldd amdcccle | grep -q libexpat.so.0 || \
-      install -m 755 amdcccle  
$RPM_BUILD_ROOT/usr/bin
-  fi
-  install -m 644 glxATI.h                
$RPM_BUILD_ROOT/usr/include/GL
-  install -m 755 libGL.so.1.2            
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libGL.so.1.2                   
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so.1
-  ln -snf libGL.so.1                     
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so
-  install -m 644 libfglrx_gamma.a        
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  install -m 755 libfglrx_gamma.so*      
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  ln -snf libfglrx_gamma.so.1.0          
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libfglrx_gamma.so.1
-  install -m 444 libfglrxdrm.*           
$RPM_BUILD_ROOT%{MODULES_DIR}/linux
-  install -m 755 aticonfig               
$RPM_BUILD_ROOT/usr/bin
-  install -m 644 glATI.h                 
$RPM_BUILD_ROOT/usr/include/GL
-  test -f atigetsysteminfo.sh && \
-  install -m 755 atigetsysteminfo.sh     
$RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd && \
-  install -m 755 atieventsd              
$RPM_BUILD_ROOT/usr/sbin
-  install -m 755 amdnotifyui             
$RPM_BUILD_ROOT/usr/sbin
-  test -f atieventsd.8 && \
-    gzip atieventsd.8
-  test -f atieventsd.8.gz && \
-  install -m 644 atieventsd.8.gz         
$RPM_BUILD_ROOT/usr/share/man/man8
-  test -f 
$RPM_BUILD_ROOT/etc/ati/authatieventsd.sh || \
-    install -m 755 
$RPM_SOURCE_DIR/authatieventsd.sh $RPM_BUILD_ROOT/etc/ati
-  chmod 755 
$RPM_BUILD_ROOT/etc/ati/authatieventsd.sh
-  test -f libfglrx_tvout.a && \
-    install -m 644 libfglrx_tvout.a      
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f libfglrx_tvout.so.1.0 && \
-    install -m 644 libfglrx_tvout.so.1.0 
$RPM_BUILD_ROOT/usr/X11R6/%{_lib}
-  test -f esut.a && \
-    install -m 444 esut.a                
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f glesx.so && \
-    install -m 444 glesx.so              
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f amdxmm.so && \
-    install -m 444 amdxmm.so             
$RPM_BUILD_ROOT%{MODULES_DIR}
-  test -f atiodcli && \
-    install -m 755 atiodcli              
$RPM_BUILD_ROOT/usr/bin
-  test -f atiode && \
-    install -m 755 atiode                
$RPM_BUILD_ROOT/usr/bin
-  test -f amdxdg-su && \
-    install -m 755 amdxdg-su             
$RPM_BUILD_ROOT/usr/bin
-  test -f amdupdaterandrconfig && \
-    install -m 755 amdupdaterandrconfig  
$RPM_BUILD_ROOT/usr/bin
-  mkdir -p 
$RPM_BUILD_ROOT/usr/share/applications
-  install -m 644 amdcccle.desktop        
$RPM_BUILD_ROOT/usr/share/applications
-  echo "
GenericName=ATI