Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:galquezar
ati-fglrxG02
x11-video-fglrxG02.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File x11-video-fglrxG02.spec of Package ati-fglrxG02
# # spec file for package x11-video-fglrxG02 (Version 8.921) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://support.novell.com # # norootforbuild # nodebuginfo # usedforbuild aaa_base acl attr audit-libs autoconf automake bash binutils brp-check-suse build bzip2 coreutils cpio cpp cpp43 cracklib cvs diffutils file filesystem fillup findutils fontconfig gawk gcc gcc43 gdbm gettext-runtime gettext-tools glibc glibc-devel glibc-locale gmp grep groff gzip info insserv less libacl libattr libblkid1 libbz2-1 libbz2-devel libdb-4_5 libexpat1 libgcc43 libgomp43 libltdl7 libmpfr1 libncurses5 libreadline5 libselinux1 libsepol1 libstdc++43 libtool libuuid1 libvolume_id1 libxcrypt libzio linux-kernel-headers login m4 make man module-init-tools net-tools netcfg pam pam-modules patch perl perl-TimeDate perl-base permissions popt post-build-checks psmisc rpm rpmlint-Factory rpmlint-mini sed sysvinit tar terminfo-base texinfo timezone util-linux xorg-x11-libICE xorg-x11-libSM xorg-x11-libX11 xorg-x11-libXau xorg-x11-libXext xorg-x11-libXfixes xorg-x11-libXmu xorg-x11-libXp xorg-x11-libXpm xorg-x11-libXprintUtil xorg-x11-libXrender xorg-x11-libXt xorg-x11-libXv xorg-x11-libfontenc xorg-x11-libs xorg-x11-libxcb xorg-x11-libxkbfile zlib Name: x11-video-fglrxG02 %if %suse_version > 1010 %define xlibdir usr/%_lib/xorg %else %define xlibdir usr/X11R6/%_lib %endif %if %suse_version > 1100 %ifarch %ix86 %define buildtarget SuSE/SLE11-IA32 %endif %ifarch x86_64 %define buildtarget SuSE/SLE11-AMD64 %endif %else %ifarch %ix86 %define buildtarget SuSE/SLE10-IA32 %endif %ifarch x86_64 %define buildtarget SuSE/SLE10-AMD64 %endif %endif License: PERMISSIVE-OSI-COMPLIANT Group: System/Kernel AutoReqProv: on Obsoletes: x11-video-fglrx Provides: fglrx_7_4_0_SLE11 Obsoletes: fglrx_7_4_0_SLE11 # Requires Conflicts in NVIDIA driver packages Provides: fglrx_driver # Requires Provides in NVIDIA driver packages Conflicts: nvidia_driver Requires: ati-fglrxG02-kmp BuildRequires: module-init-tools xorg-x11-libs Version: 8.921 Release: 0 %define catalystversion 8.921 %define packversion 8.921 Summary: X Window display driver for the ATI graphics accelerators Source0: https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/amd-driver-installer-%{catalystversion}-x86.x86_64.run #Source1: suse.tar.bz2 Source2: pci_ids-%{version}.new Source3: fetch.sh Source4: README Source5: Xwrapper Source6: pci_ids-%{version} Source7: rpmlintrc Source8: 66warning-fglrx-suspend Patch: suse.diff #Patch1: SUSE-add-OpenCL-runtime-integration.patch NoSource: 0 NoSource: 3 NoSource: 4 ExclusiveArch: %ix86 x86_64 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Display driver files for the ATI Radeon HD 2000 and later. This package provides 2D display drivers, control panel source coude and hardware accelerated OpenGL. %prep %build sh %{SOURCE0} --extract %{version} cd %{version} # add files and/or apply patches here for build scripts in packages/SuSE if required #rm -f packages/SuSE/* #tar xjf $RPM_SOURCE_DIR/suse.tar.bz2 -C packages/SuSE patch -p0 -i $RPM_SOURCE_DIR/suse.diff #patch -d packages -p1 < $RPM_SOURCE_DIR/SUSE-add-OpenCL-runtime-integration.patch rm common/usr/share/applications/*.orig chmod 644 packages/SuSE/fglrx.png ./ati-installer.sh %{version} --buildpkg %{buildtarget} rm -f /usr/src/packages/RPMS/*/fglrx*.rpm %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT pushd $RPM_BUILD_ROOT %if %suse_version > 1100 rpm2cpio $RPM_BUILD_DIR/fglrx*_xpic_SLE11-%{packversion}-*.*.rpm | \ cpio --extract --unconditional --preserve-modification-time --make-directories %else rpm2cpio $RPM_BUILD_DIR/fglrx*_xpic_SLE10-%{packversion}-*.*.rpm | \ cpio --extract --unconditional --preserve-modification-time --make-directories %endif find . -type d | xargs chmod 755 # remove kernel module sources to make rpmlint happy rm -rf $RPM_BUILD_ROOT/usr/src/ rm $RPM_BUILD_ROOT/usr/bin/fglrx-kernel-build.sh find . -type f | sed 's/^\.//g' > $RPM_BUILD_DIR/files.%{name} find . -type l | sed 's/^\.//g' >> $RPM_BUILD_DIR/files.%{name} find . -type d | sed 's/^\./%dir /g' | grep -v \ -e "^%dir /etc$" \ -e "^%dir /etc/init.d$" \ -e "^%dir /etc/profile.d$" \ -e "^%dir /usr$" \ -e "^%dir /usr/X11R6$" \ -e "^%dir /usr/bin$" \ -e "^%dir /usr/X11R6/include$" \ -e "^%dir /usr/X11R6/lib$" \ -e "^%dir /usr/include$" \ -e "^%dir /usr/include/X11$" \ -e "^%dir /usr/lib$" \ -e "^%dir /usr/sbin$" \ -e "^%dir /usr/share$" \ -e "^%dir /usr/share/applications$" \ -e "^%dir /usr/share/doc$" \ -e "^%dir /usr/share/doc/packages$" \ -e "^%dir /usr/share/man$" \ -e "^%dir /usr/share/man/man8$" \ -e "^%dir /usr/share/pixmaps$" \ -e "^%dir /var$" \ -e "^%dir /var/adm$" \ -e "^%dir /var/adm/fillup-templates$" \ %ifarch x86_64 -e "^%dir /usr/X11R6/lib64$" \ -e "^%dir /usr/lib64$" \ %endif >> $RPM_BUILD_DIR/files.%{name} mkdir -p $RPM_BUILD_ROOT/usr/share/sax/sysp/maps/update/ \ $RPM_BUILD_ROOT/usr/share/sax/api/data/cdb/ \ $RPM_BUILD_ROOT/var/lib/hardware/ids > $RPM_BUILD_ROOT/usr/share/sax/sysp/maps/update/Identity.map.10.%name > $RPM_BUILD_ROOT/usr/share/sax/api/data/cdb/Cards.10.%name > $RPM_BUILD_ROOT/var/lib/hardware/ids/10.%name cp %_sourcedir/pci_ids-%{version} . cat pci_ids-%{version} | \ while read line; do VID=0x1002 NAME=ATI SERVER=fglrx DEVICE=$(echo $line|awk '{for (i=2;i<NF;i++) printf("%s ",$i); printf("%s",$NF)}') DID=0x$(echo $line|awk '{print $1}'|tr [[:upper:]] [[:lower:]] | sort -u) PROFILE="FireGL.addon" cat >> $RPM_BUILD_ROOT/usr/share/sax/sysp/maps/update/Identity.map.10.%name << EOF NAME=${NAME}&DEVICE=${DEVICE}&VID=${VID}&DID=${DID}&SERVER=${SERVER}&EXT=&OPT=&RAW=&PROFILE=${PROFILE}&SCRIPT3D=&PACKAGE3D=&FLAG=DEFAULT NAME=${NAME}&DEVICE=${DEVICE}&VID=${VID}&DID=${DID}&SERVER=${SERVER}&EXT=&OPT=&RAW=&PROFILE=${PROFILE}&SCRIPT3D=&PACKAGE3D=&FLAG=3D EOF cat >> $RPM_BUILD_ROOT/usr/share/sax/api/data/cdb/Cards.10.%name << EOF ${NAME}:${DEVICE} { Driver = ${SERVER} Flag = 3D Extension = dri 3DDriver = ${SERVER} } EOF cat >> $RPM_BUILD_ROOT/var/lib/hardware/ids/10.%name << EOF vendor.id pci ${VID} &device.id pci ${DID} +device.name ${DEVICE} +driver.xfree 4|${SERVER} +driver.xfree 4|${SERVER}|3d||dri EOF echo >> $RPM_BUILD_ROOT/var/lib/hardware/ids/10.%name done rm pci_ids-%{version} # removing of special modeline already in FireGL profile since 11.0 mkdir -p $RPM_BUILD_ROOT/usr/share/sax/profile %if %suse_version < 1100 cat > $RPM_BUILD_ROOT/usr/share/sax/profile/FireGL.addon << EOF !remove Desktop -> [X] -> SpecialModeline EOF %else touch $RPM_BUILD_ROOT/usr/share/sax/profile/FireGL.addon %endif %if %suse_version > 1010 mkdir -p $RPM_BUILD_ROOT/usr/bin install -m 755 $RPM_SOURCE_DIR/Xwrapper $RPM_BUILD_ROOT/usr/bin/X.%name %else mkdir -p $RPM_BUILD_ROOT/usr/X11R6/bin install -m 755 $RPM_SOURCE_DIR/Xwrapper $RPM_BUILD_ROOT/usr/X11R6/bin/X.%name %endif %if %sles_version == 0 mkdir -p $RPM_BUILD_ROOT/usr/lib/pm-utils/sleep.d/ install -m 755 $RPM_SOURCE_DIR/66warning-fglrx-suspend $RPM_BUILD_ROOT/usr/lib/pm-utils/sleep.d/ %endif # required since 8.41 %if %suse_version > 1020 mkdir -p $RPM_BUILD_ROOT/etc/profile.d echo "export LIBXCB_ALLOW_SLOPPY_LOCK=1" \ > $RPM_BUILD_ROOT/etc/profile.d/%{name}.sh echo "setenv LIBXCB_ALLOW_SLOPPY_LOCK 1" \ > $RPM_BUILD_ROOT/etc/profile.d/%{name}.csh %endif # blacklist radeon DRM module if [ ! -f $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf ]; then mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d echo "blacklist radeon" > $RPM_BUILD_ROOT/etc/modprobe.d/fglrx.conf fi export NO_BRP_CHECK_RPATH=true # creating ghost entries for symlinks %if %suse_version > 1010 touch $RPM_BUILD_ROOT/%{_libdir}/xorg/modules/updates/extensions/libglx.so %else touch $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/modules/updates/extensions/libglx.so %endif touch $RPM_BUILD_ROOT/usr/X11R6/%{_lib}/libGL.so{,.1,.1.2} %ifarch x86_64 touch $RPM_BUILD_ROOT/usr/X11R6/lib/libGL.so{,.1,.1.2} %endif %if %suse_version > 1140 # Create /etc/ld.so.conf.d/ati-fglrxG02.conf mkdir -p %{buildroot}/etc/ld.so.conf.d cat > %{buildroot}/etc/ld.so.conf.d/ati-fglrxG02.conf <<EOF /usr/X11R6/%{_lib} %ifarch s390x sparc64 x86_64 ppc64 /usr/X11R6/lib %endif %ifarch ppc /usr/X11R6/lib64 %endif EOF %endif %post %run_ldconfig # initial symlinks to AMD libglx/libGL (not done during an update) # Required if there has been messup with NVIDIA drivers resulting # in a dangling link to a libglx by NVIDIA (bnc #718209) if [ "$(%{_libdir}/fglrx/switchlibglx query)" == "unknown" ]; then %{_libdir}/fglrx/switchlibglx amd fi # If libGL.so still links to some unknown place for switchlibGL, # reinitialize the symlink to AMD's version of libGL. Otherwise no # single OpenGL application will work afterwards (bnc #717175). if [ "$(%{_libdir}/fglrx/switchlibGL query)" == "unknown" ]; then %{_libdir}/fglrx/switchlibGL amd fi if [ -x etc/init.d/atieventsd ]; then # Create symbolic run level links for atieventsd start script: %{fillup_and_insserv -y atieventsd} 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 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 fi # if configuration for proprietary driver already exists, bring it back # (Bug #270040, comments #91/92) if [ -f etc/X11/xorg.conf.fglrx-postun ]; then mv etc/X11/xorg.conf.fglrx-postun etc/X11/xorg.conf else aticonfig --initial --force || true fi # Fix virtual in xorg.conf perl -i -ne '$_="" if /^\s*virtual\s/i; print; print "\t\tVirtual 3520 2100\n" if /^\s*subsection\s*"?display"?\s*$/i;' /etc/X11/xorg.conf test -f %{xlibdir}/modules/drivers/fglrx_drv.so && \ touch %{xlibdir}/modules/drivers/fglrx_drv.so if ls var/lib/hardware/ids/* &> /dev/null; then > var/lib/hardware/hd.ids for i in var/lib/hardware/ids/*; do cat $i >> var/lib/hardware/hd.ids done fi %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 test -f etc/sysconfig/displaymanager && \ . etc/sysconfig/displaymanager if [ "${DISPLAYMANAGER_XSERVER}" == "X.%name" ]; then # broken entry in /etc/sysconfig/displaymanager:DISPLAYMANAGER_XSERVER # use a sane default instead DISPLAYMANAGER_XSERVER=Xorg fi %if %suse_version > 1010 sed -i s/REPLACE_ME/${DISPLAYMANAGER_XSERVER}/g usr/bin/X.%name %else sed -i s/REPLACE_ME/${DISPLAYMANAGER_XSERVER}/g usr/X11R6/bin/X.%name %endif test -f etc/sysconfig/displaymanager && \ sed -i 's/DISPLAYMANAGER_XSERVER=.*/DISPLAYMANAGER_XSERVER=X.%name/g' \ /etc/sysconfig/displaymanager %if %suse_version > 1010 test -x /etc/X11/xdm/SuSEconfig.xdm && \ /etc/X11/xdm/SuSEconfig.xdm %else test -x /sbin/conf.d/SuSEconfig.xdm && \ SuSEconfig --module xdm %endif # Stop %postun of fglrx_7_4_0_SLE11 from removing the freshly # installed fglrx kernel module; ugly hack I know ... # modinfo is restored in %triggerpostun for fglrx_7_4_0_SLE11 # (see below) test -d /usr/src/kernel-modules/fglrx && \ mv /sbin/modinfo /sbin/modinfo.tmp exit 0 %preun if [ -x etc/init.d/atieventsd ]; then %stop_on_removal atieventsd fi # remove symlinks to libglx/libGL during uninstall (not done during update) if [ "$1" -eq 0 ]; then %if %suse_version > 1010 rm -f %{_libdir}/xorg/modules/updates/extensions/libglx.so %else rm -f /usr/X11R6/%{_lib}/modules/updates/extensions/libglx.so %endif rm -f /usr/X11R6/lib*/libGL.so* fi exit 0 %postun # Rearrange run level symlinks after removing the atieventsd init script %{insserv_cleanup} if [ "$1" -eq 0 ]; then if ls var/lib/hardware/ids/* &> /dev/null; then > var/lib/hardware/hd.ids for i in var/lib/hardware/ids/*; do cat $i >> var/lib/hardware/hd.ids done else rm -f var/lib/hardware/hd.ids 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 else sax2 -a -r fi which gnome-xgl-switch &>/dev/null && \ gnome-xgl-switch --disable-xgl %if %suse_version > 1010 # cleanup rm -f usr/X11R6/%{_lib}/modules/dri rmdir --ignore-fail-on-non-empty usr/X11R6/%{_lib}/modules %ifarch x86_64 rm -f usr/X11R6/lib/modules/dri rmdir --ignore-fail-on-non-empty usr/X11R6/lib/modules %endif %endif fi exit 0 %triggerpostun -- fglrx_7_4_0_SLE11 # since %postun of fglrx_7_4_0_SLE11 restores fbdev configuration # and %post of x11-video-fglrxG02 runs before %postun of # fglrx_7_4_0_SLE11 ... # See also http://www.rpm.org/api/4.4.2.2/triggers.html # aticonfig does not run on top of older drivers (bnc #717175) env -u DISPLAY aticonfig --initial --force # Fix virtual in xorg.conf perl -i -ne '$_="" if /^\s*virtual\s/i; print; print "\t\tVirtual 3520 2100\n" if /^\s*subsection\s*"?display"?\s*$/i;' /etc/X11/xorg.conf # No longer try to rebuild kernel module from old "sources" /sbin/insserv -r boot.fglrx-update-fix # More cleanup rm -rf /usr/src/kernel-modules/fglrx # restore modinfo again (see %post above) test -f /sbin/modinfo.tmp && \ cp -a /sbin/modinfo.tmp /sbin/modinfo exit 0 %files -f files.%{name} %defattr(-,root,root) %dir /etc/modprobe.d %if %sles_version == 0 %dir /usr/lib/pm-utils %dir /usr/lib/pm-utils/sleep.d %endif %dir /usr/share/sax %dir /usr/share/sax/api/ %dir /usr/share/sax/api/data %dir /usr/share/sax/profile %dir /usr/share/sax/sysp %dir /usr/share/sax/sysp/maps %dir /var/lib/hardware %if %suse_version > 1140 /etc/ld.so.conf.d/ati-fglrxG02.conf %endif /etc/modprobe.d/fglrx.conf %if %suse_version > 1020 /etc/profile.d/%name.* %endif %if %suse_version > 1010 /usr/bin/X.%name %else /usr/X11R6/bin/X.%name %endif %if %sles_version == 0 /usr/lib/pm-utils/sleep.d/66warning-fglrx-suspend %endif /usr/share/sax/api/data/cdb/ /usr/share/sax/profile/FireGL.addon /usr/share/sax/sysp/maps/update/ /var/lib/hardware/ids # ghost entries for symlinks %if %suse_version > 1010 %ghost %{_libdir}/xorg/modules/updates/extensions/libglx.so %else %ghost /usr/X11R6/%{_lib}/modules/updates/extensions/libglx.so %endif %ghost /usr/X11R6/%{_lib}/libGL.so* %ifarch x86_64 %ghost /usr/X11R6/lib/libGL.so* %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor