/[packages]/cauldron/fglrx/current/SPECS/fglrx.spec
ViewVC logotype

Diff of /cauldron/fglrx/current/SPECS/fglrx.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 79802 by ahmad, Sat Apr 2 15:47:47 2011 UTC revision 79916 by ahmad, Sun Apr 3 00:20:48 2011 UTC
# Line 49  Line 49 
49  # Advertised version, for description:  # Advertised version, for description:
50  %define mversion        11.3  %define mversion        11.3
51  # driver version from ati-packager-helper.sh:  # driver version from ati-packager-helper.sh:
52  %define iversion        8.831.2  %define iversion        8.840
53  # release:  # release:
54  %define rel             2  %define rel             1
55  # rpm version (adds 0 in order to not go backwards if iversion is two-decimal)  # rpm version (adds 0 in order to not go backwards if iversion is two-decimal)
56  %define version         %{iversion}%([ $(echo %iversion | wc -c) -le 5 ] && echo 0)  %define version         %{iversion}%([ $(echo %iversion | wc -c) -le 5 ] && echo 0)
57  %else  %else
# Line 63  Line 63 
63  %define release %mkrel %{rel}  %define release %mkrel %{rel}
64    
65  # set to 1 for a prerelease driver with an ubuntu tarball as source  # set to 1 for a prerelease driver with an ubuntu tarball as source
66  %define ubuntu_prerelease 0  %define ubuntu_prerelease 1
67    
68  %define driverpkgname   x11-driver-video-fglrx  %define driverpkgname   x11-driver-video-fglrx
69  %define drivername      fglrx  %define drivername      fglrx
# Line 160  Patch9:                fglrx-make_sh-custom-kernel-dir Line 160  Patch9:                fglrx-make_sh-custom-kernel-dir
160  # do not probe /proc for kernel info as we may be building for a  # do not probe /proc for kernel info as we may be building for a
161  # different kernel  # different kernel
162  Patch10:        fglrx-make_sh-no-proc-probe.patch  Patch10:        fglrx-make_sh-no-proc-probe.patch
 # (Debian) add patch to fix building the module with kernel 2.6.38  
 Patch11:        04-2.6.38-support.diff  
163    
164  License:        Freeware  License:        Freeware
165  URL:            http://ati.amd.com/support/driver.html  URL:            http://ati.amd.com/support/driver.html
# Line 311  cd common # ensure patches do not touch Line 309  cd common # ensure patches do not touch
309  %patch3 -p2  %patch3 -p2
310  %patch9 -p2  %patch9 -p2
311  %patch10 -p2  %patch10 -p2
 %patch11 -p2 -b .kernel-2.6.38  
312  cd ..  cd ..
313    
314  cat > README.install.urpmi <<EOF  cat > README.install.urpmi <<EOF
# Line 471  convert common/usr/share/icons/ccc_large Line 468  convert common/usr/share/icons/ccc_large
468  install -m644 common/usr/share/icons/ccc_large.xpm %{buildroot}%{_iconsdir}/%{drivername}-amdcccle.xpm  install -m644 common/usr/share/icons/ccc_large.xpm %{buildroot}%{_iconsdir}/%{drivername}-amdcccle.xpm
469  %endif  %endif
470    
471    # fglrx-libGL.so.1.2 and libGL.so.1.2 are exactly the same
472    # fglrx-libglx.so and libglx.so are exactly the same
473    # should we ship both copies or just one? (ubuntu ships just one copy AFAICS)
474    # (ahmad) 03-04-2011
475    for lib in arch/x86/usr/X11R6/lib/fglrx/fglrx-libGL.so.1.2 \
476                            arch/x86/usr/X11R6/lib/fglrx-libGL.so.1.2 \
477                            arch/x86_64/usr/X11R6/lib64/fglrx/fglrx-libGL.so.1.2 \
478                            arch/x86_64/usr/X11R6/lib64/fglrx-libGL.so.1.2 \
479                            xpic/usr/X11R6/lib/modules/extensions/fglrx/fglrx-libglx.so \
480                            xpic/usr/X11R6/lib/modules/extensions/fglrx-libglx.so \
481                            xpic_64a/usr/X11R6/lib64/modules/extensions/fglrx/fglrx-libglx.so \
482                            xpic_64a/usr/X11R6/lib64/modules/extensions/fglrx-libglx.so; do
483                    if [ -e $lib ]; then
484                            file_name=$(basename $lib);
485                            path=$(dirname $lib);
486                            # Remove fglrx prefix
487                            new_name=`echo $file_name | sed -e "s|fglrx\-||"`;
488                            full_path=`echo "$path/$new_name"`;
489                            mv -f $lib $full_path;
490                    fi
491    done
492    
493  # install libraries  # install libraries
494  install -d -m755                                        %{buildroot}%{_libdir}/%{drivername}  install -d -m755                                        %{buildroot}%{_libdir}/%{drivername}
495  install -m755 %{archdir}/usr/X11R6/%{_lib}/*.*          %{buildroot}%{_libdir}/%{drivername}  install -m755 %{archdir}/usr/X11R6/%{_lib}/*.*          %{buildroot}%{_libdir}/%{drivername}

Legend:
Removed from v.79802  
changed lines
  Added in v.79916

  ViewVC Help
Powered by ViewVC 1.1.30