1*cdf0e10cSrcweir# version and release passed by command-line 2*cdf0e10cSrcweirVersion: %version 3*cdf0e10cSrcweirRelease: %release 4*cdf0e10cSrcweirSummary: %productname desktop integration 5*cdf0e10cSrcweirName: %pkgprefix-freedesktop-menus 6*cdf0e10cSrcweir#BuildRequires: sed 7*cdf0e10cSrcweir#BuildRequires: perl 8*cdf0e10cSrcweirGroup: Office 9*cdf0e10cSrcweirLicense: LGPL 10*cdf0e10cSrcweirProvides: openoffice.org3-desktop-integration 11*cdf0e10cSrcweirConflicts: %pkgprefix-suse-menus 12*cdf0e10cSrcweirConflicts: %pkgprefix-debian-menus 13*cdf0e10cSrcweirConflicts: %pkgprefix-redhat-menus 14*cdf0e10cSrcweirConflicts: %pkgprefix-mandriva-menus 15*cdf0e10cSrcweirBuildArch: noarch 16*cdf0e10cSrcweirAutoReqProv: no 17*cdf0e10cSrcweir%define _binary_filedigest_algorithm 1 18*cdf0e10cSrcweir%define _binary_payload w9.gzdio 19*cdf0e10cSrcweir 20*cdf0e10cSrcweir%description 21*cdf0e10cSrcweir%productname desktop integration for desktop-environments that implement 22*cdf0e10cSrcweirthe menu- and mime-related specifications from http://www.freedesktop.org 23*cdf0e10cSrcweirInstall this package if you're using a distribution not covered by any of 24*cdf0e10cSrcweirthe other %pkgprefix-<distribution>-menus packages. 25*cdf0e10cSrcweir 26*cdf0e10cSrcweir%install 27*cdf0e10cSrcweirrm -rf $RPM_BUILD_ROOT 28*cdf0e10cSrcweir 29*cdf0e10cSrcweir# hack/workaround to make SuSE's brp-symlink-script happy. It wants the targets of all links 30*cdf0e10cSrcweir# to be present on the build-system/the buildroot. But the point is that we generate stale 31*cdf0e10cSrcweir# links intentionally (until we find a better solution) #46226 32*cdf0e10cSrcweirexport NO_BRP_STALE_LINK_ERROR=yes 33*cdf0e10cSrcweir 34*cdf0e10cSrcweirmkdir -p $RPM_BUILD_ROOT 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir# FIXME: remove - only purpose is to create packages identical to OOF680 m8 37*cdf0e10cSrcweirumask 0000 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir# set parameters for the create_tree script 40*cdf0e10cSrcweirexport DESTDIR=$RPM_BUILD_ROOT 41*cdf0e10cSrcweirexport KDEMAINDIR=/usr 42*cdf0e10cSrcweirexport GNOMEDIR=/usr 43*cdf0e10cSrcweirexport GNOME_MIME_THEME=hicolor 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir./create_tree.sh 46*cdf0e10cSrcweir 47*cdf0e10cSrcweircd $RPM_BUILD_ROOT 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir# freedesktop-based desktop-environments don't need/use this. 50*cdf0e10cSrcweirrm -rf usr/share/application-registry 51*cdf0e10cSrcweirrm -rf usr/share/applications.flag 52*cdf0e10cSrcweirrm -rf usr/share/mime-info 53*cdf0e10cSrcweirrm -rf usr/share/mimelnk 54*cdf0e10cSrcweirrm -rf usr/share/applnk-redhat 55*cdf0e10cSrcweir#find usr/share/icons -name '*.png' -exec chmod g+w {} \; 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir%clean 58*cdf0e10cSrcweirrm -rf $RPM_BUILD_ROOT 59*cdf0e10cSrcweir 60*cdf0e10cSrcweir%triggerin -- %pkgprefix, %pkgprefix-writer, %pkgprefix-calc, %pkgprefix-draw, %pkgprefix-impress, %pkgprefix-math 61*cdf0e10cSrcweir# this is run when one of the above packages is already installed and the menu 62*cdf0e10cSrcweir# package gets installed OR when the menu-package is already installed and one 63*cdf0e10cSrcweir# of the above listed packages gets installed 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir# Dut to a bug in rpm it is not possible to check why the script is triggered... 66*cdf0e10cSrcweir# This is how it should be: 1st arg: number of this package, 2nd arg: number of 67*cdf0e10cSrcweir# package that triggers - the bug is that rpm reports the same number for both 68*cdf0e10cSrcweir# (the value of the 2nd one), so just run this always... 69*cdf0e10cSrcweir# http://rhn.redhat.com/errata/RHBA-2004-098.html 70*cdf0e10cSrcweir# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=100509 71*cdf0e10cSrcweir 72*cdf0e10cSrcweirif [ -x /opt/gnome/bin/update-desktop-database ]; then 73*cdf0e10cSrcweir /opt/gnome/bin/update-desktop-database -q 74*cdf0e10cSrcweirelif (which update-desktop-database); then 75*cdf0e10cSrcweir update-desktop-database -q /usr/share/applications 76*cdf0e10cSrcweirfi 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir%triggerun -- %pkgprefix, %pkgprefix-writer, %pkgprefix-calc, %pkgprefix-draw, %pkgprefix-impress, %pkgprefix-math 79*cdf0e10cSrcweirif [ "$1" = "0" ] ; then 80*cdf0e10cSrcweir # the menu-package gets uninstalled/updated - postun will run the command 81*cdf0e10cSrcweir exit 0 82*cdf0e10cSrcweirfi 83*cdf0e10cSrcweirif [ "$2" = "0" ] ; then 84*cdf0e10cSrcweir # the triggering package gets removed 85*cdf0e10cSrcweir if [ -x /opt/gnome/bin/update-desktop-database ]; then 86*cdf0e10cSrcweir /opt/gnome/bin/update-desktop-database -q 87*cdf0e10cSrcweir elif (which update-desktop-database); then 88*cdf0e10cSrcweir update-desktop-database -q /usr/share/applications 89*cdf0e10cSrcweir fi 90*cdf0e10cSrcweirfi 91*cdf0e10cSrcweir 92*cdf0e10cSrcweir%post 93*cdf0e10cSrcweir# no need to run it when updating, since %postun of the old package is run 94*cdf0e10cSrcweir# afterwards 95*cdf0e10cSrcweir 96*cdf0e10cSrcweirif [ "$1" = "1" ] ; then # first install 97*cdf0e10cSrcweir if [ -x /opt/gnome/bin/update-desktop-database ]; then 98*cdf0e10cSrcweir /opt/gnome/bin/update-desktop-database -q 99*cdf0e10cSrcweir elif (which update-desktop-database); then 100*cdf0e10cSrcweir update-desktop-database -q /usr/share/applications 101*cdf0e10cSrcweir fi 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir if (which update-mime-database); then 104*cdf0e10cSrcweir update-mime-database /usr/share/mime 105*cdf0e10cSrcweir fi 106*cdf0e10cSrcweirfi 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir#run always 110*cdf0e10cSrcweirfor theme in gnome hicolor locolor; do 111*cdf0e10cSrcweir if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then 112*cdf0e10cSrcweir # touch it, just in case we cannot find the binary... 113*cdf0e10cSrcweir touch /usr/share/icons/$theme 114*cdf0e10cSrcweir if [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then 115*cdf0e10cSrcweir /opt/gnome/bin/gtk-update-icon-cache -q /usr/share/icons/$theme 116*cdf0e10cSrcweir elif (which gtk-update-icon-cache); then 117*cdf0e10cSrcweir gtk-update-icon-cache -q /usr/share/icons/$theme 118*cdf0e10cSrcweir fi 119*cdf0e10cSrcweir # ignore errors (e.g. when there is a cache, but no index.theme) 120*cdf0e10cSrcweir true 121*cdf0e10cSrcweir fi 122*cdf0e10cSrcweirdone 123*cdf0e10cSrcweir 124*cdf0e10cSrcweir 125*cdf0e10cSrcweir# update /etc/mime.types 126*cdf0e10cSrcweir# backing out existing entries to avoid duplicates 127*cdf0e10cSrcweirsed ' 128*cdf0e10cSrcweir/application\/vnd\.oasis\.opendocument/d 129*cdf0e10cSrcweir/application\/vnd\.sun/d 130*cdf0e10cSrcweir/application\/vnd\.stardivision/d 131*cdf0e10cSrcweir/application\/vnd\.openofficeorg/d 132*cdf0e10cSrcweir' /etc/mime.types 2>/dev/null >> /etc/mime.types.tmp$$ 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir# now append our stuff to the temporary file 135*cdf0e10cSrcweircat >> /etc/mime.types.tmp$$ << END 136*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.text odt 137*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.text-template ott 138*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.text-web oth 139*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.text-master odm 140*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.graphics odg 141*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.graphics-template otg 142*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.presentation odp 143*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.presentation-template otp 144*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.spreadsheet ods 145*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.spreadsheet-template ots 146*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.chart odc 147*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.formula odf 148*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.image odi 149*cdf0e10cSrcweirapplication/vnd.sun.xml.writer sxw 150*cdf0e10cSrcweirapplication/vnd.sun.xml.writer.template stw 151*cdf0e10cSrcweirapplication/vnd.sun.xml.writer.global sxg 152*cdf0e10cSrcweirapplication/vnd.stardivision.writer sdw vor 153*cdf0e10cSrcweirapplication/vnd.stardivision.writer-global sgl 154*cdf0e10cSrcweirapplication/vnd.sun.xml.calc sxc 155*cdf0e10cSrcweirapplication/vnd.sun.xml.calc.template stc 156*cdf0e10cSrcweirapplication/vnd.stardivision.calc sdc 157*cdf0e10cSrcweirapplication/vnd.stardivision.chart sds 158*cdf0e10cSrcweirapplication/vnd.sun.xml.impress sxi 159*cdf0e10cSrcweirapplication/vnd.sun.xml.impress.template sti 160*cdf0e10cSrcweirapplication/vnd.stardivision.impress sdd sdp 161*cdf0e10cSrcweirapplication/vnd.sun.xml.draw sxd 162*cdf0e10cSrcweirapplication/vnd.sun.xml.draw.template std 163*cdf0e10cSrcweirapplication/vnd.stardivision.draw sda 164*cdf0e10cSrcweirapplication/vnd.sun.xml.math sxm 165*cdf0e10cSrcweirapplication/vnd.sun.xml.base odb 166*cdf0e10cSrcweirapplication/vnd.stardivision.math smf 167*cdf0e10cSrcweirapplication/vnd.openofficeorg.extension oxt 168*cdf0e10cSrcweirapplication/vnd.openxmlformats-officedocument.wordprocessingml.document docx 169*cdf0e10cSrcweirapplication/vnd.ms-word.document.macroenabled.12 docm 170*cdf0e10cSrcweirapplication/vnd.openxmlformats-officedocument.wordprocessingml.template dotx 171*cdf0e10cSrcweirapplication/vnd.ms-word.template.macroenabled.12 dotm 172*cdf0e10cSrcweirapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx 173*cdf0e10cSrcweirapplication/vnd.ms-excel.sheet.macroenabled.12 xlsm 174*cdf0e10cSrcweirapplication/vnd.openxmlformats-officedocument.spreadsheetml.template xltx 175*cdf0e10cSrcweirapplication/vnd.ms-excel.template.macroenabled.12 xltm 176*cdf0e10cSrcweirapplication/vnd.openxmlformats-officedocument.presentationml.presentation pptx 177*cdf0e10cSrcweirapplication/vnd.ms-powerpoint.presentation.macroenabled.12 pptm 178*cdf0e10cSrcweirapplication/vnd.openxmlformats-officedocument.presentationml.template potx 179*cdf0e10cSrcweirapplication/vnd.ms-powerpoint.template.macroenabled.12 potm 180*cdf0e10cSrcweirEND 181*cdf0e10cSrcweir 182*cdf0e10cSrcweir# and replace the original file 183*cdf0e10cSrcweirmv -f /etc/mime.types.tmp$$ /etc/mime.types 2>/dev/null 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir# update /etc/mailcap only at initial install 186*cdf0e10cSrcweirif [ "$1" = 1 ] 187*cdf0e10cSrcweirthen 188*cdf0e10cSrcweir # backing out existing entries to avoid duplicates 189*cdf0e10cSrcweir sed ' 190*cdf0e10cSrcweir/^# OpenOffice.org/d 191*cdf0e10cSrcweir/^application\/vnd\.oasis\.opendocument/d 192*cdf0e10cSrcweir/^application\/vnd\.openofficeorg/d 193*cdf0e10cSrcweir/^application\/vnd\.sun/d 194*cdf0e10cSrcweir/^application\/vnd\.stardivision/d 195*cdf0e10cSrcweir/^application\/vnd\.ms-word/d 196*cdf0e10cSrcweir/^application\/vnd\.ms-excel/d 197*cdf0e10cSrcweir/^application\/vnd\.ms-powerpoint/d 198*cdf0e10cSrcweir/^application\/x-star/d 199*cdf0e10cSrcweir/excel/d 200*cdf0e10cSrcweir/ms[-]*word/d 201*cdf0e10cSrcweir/powerpoint/d 202*cdf0e10cSrcweir' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$ 203*cdf0e10cSrcweir 204*cdf0e10cSrcweir # now append our stuff to the temporary file 205*cdf0e10cSrcweir cat >> /etc/mailcap.tmp$$ << END 206*cdf0e10cSrcweir# OpenOffice.org 207*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.text; %unixfilename -view %s 208*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.text-template; %unixfilename -view %s 209*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.text-web; %unixfilename -view %s 210*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.text-master; %unixfilename -view %s 211*cdf0e10cSrcweirapplication/vnd.sun.xml.writer; %unixfilename -view %s 212*cdf0e10cSrcweirapplication/vnd.sun.xml.writer.template; %unixfilename -view %s 213*cdf0e10cSrcweirapplication/vnd.sun.xml.writer.global; %unixfilename -view %s 214*cdf0e10cSrcweirapplication/vnd.stardivision.writer; %unixfilename -view %s 215*cdf0e10cSrcweirapplication/vnd.stardivision.writer-global; %unixfilename -view %s 216*cdf0e10cSrcweirapplication/x-starwriter; %unixfilename -view %s 217*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.formula; %unixfilename -view %s 218*cdf0e10cSrcweirapplication/vnd.sun.xml.math; %unixfilename -view %s 219*cdf0e10cSrcweirapplication/vnd.stardivision.math; %unixfilename -view %s 220*cdf0e10cSrcweirapplication/x-starmath; %unixfilename -view %s 221*cdf0e10cSrcweirapplication/msword; %unixfilename -view %s 222*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.spreadsheet; %unixfilename -view %s 223*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.spreadsheet-template; %unixfilename -view %s 224*cdf0e10cSrcweirapplication/vnd.sun.xml.calc; %unixfilename -view %s 225*cdf0e10cSrcweirapplication/vnd.sun.xml.calc.template; %unixfilename -view %s 226*cdf0e10cSrcweirapplication/vnd.stardivision.calc; %unixfilename -view %s 227*cdf0e10cSrcweirapplication/x-starcalc; %unixfilename -view %s 228*cdf0e10cSrcweirapplication/vnd.stardivision.chart; %unixfilename -view %s 229*cdf0e10cSrcweirapplication/x-starchart; %unixfilename -view %s 230*cdf0e10cSrcweirapplication/excel; %unixfilename -view %s 231*cdf0e10cSrcweirapplication/msexcel; %unixfilename -view %s 232*cdf0e10cSrcweirapplication/vnd.ms-excel; %unixfilename -view %s 233*cdf0e10cSrcweirapplication/x-msexcel; %unixfilename -view %s 234*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.presentation; %unixfilename -view %s 235*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.presentation-template; %unixfilename -view %s 236*cdf0e10cSrcweirapplication/vnd.sun.xml.impress; %unixfilename -view %s 237*cdf0e10cSrcweirapplication/vnd.sun.xml.impress.template; %unixfilename -view %s 238*cdf0e10cSrcweirapplication/vnd.stardivision.impress; %unixfilename -view %s 239*cdf0e10cSrcweirapplication/x-starimpress; %unixfilename -view %s 240*cdf0e10cSrcweirapplication/powerpoint; %unixfilename -view %s 241*cdf0e10cSrcweirapplication/mspowerpoint; %unixfilename -view %s 242*cdf0e10cSrcweirapplication/vnd.ms-powerpoint; %unixfilename -view %s 243*cdf0e10cSrcweirapplication/x-mspowerpoint; %unixfilename -view %s 244*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.graphics; %unixfilename -view %s 245*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.graphics-template; %unixfilename -view %s 246*cdf0e10cSrcweirapplication/vnd.sun.xml.draw; %unixfilename -view %s 247*cdf0e10cSrcweirapplication/vnd.sun.xml.draw.template; %unixfilename -view %s 248*cdf0e10cSrcweirapplication/vnd.stardivision.draw; %unixfilename -view %s 249*cdf0e10cSrcweirapplication/x-stardraw; %unixfilename -view %s 250*cdf0e10cSrcweirapplication/vnd.oasis.opendocument.database; %unixfilename -view %s 251*cdf0e10cSrcweirapplication/vnd.sun.xml.base; %unixfilename -view %s 252*cdf0e10cSrcweirapplication/vnd.openofficeorg.extension; %unixfilename %s 253*cdf0e10cSrcweirapplication/vnd.openxmlformats-officedocument.wordprocessingml.document; %unixfilename -view %s 254*cdf0e10cSrcweirapplication/vnd.ms-word.document.macroenabled.12;%unixfilename -view %s 255*cdf0e10cSrcweirapplication/vnd.openxmlformats-officedocument.wordprocessingml.template; %unixfilename -view %s 256*cdf0e10cSrcweirapplication/vnd.ms-word.template.macroenabled.12; %unixfilename -view %s 257*cdf0e10cSrcweirapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet; %unixfilename -view %s 258*cdf0e10cSrcweirapplication/vnd.ms-excel.sheet.macroenabled.12; %unixfilename -view %s 259*cdf0e10cSrcweirapplication/vnd.openxmlformats-officedocument.spreadsheetml.template; %unixfilename -view %s 260*cdf0e10cSrcweirapplication/vnd.ms-excel.template.macroenabled.12; %unixfilename -view %s 261*cdf0e10cSrcweirapplication/vnd.openxmlformats-officedocument.presentationml.presentation; %unixfilename -view %s 262*cdf0e10cSrcweirapplication/vnd.ms-powerpoint.presentation.macroenabled.12; %unixfilename -view %s 263*cdf0e10cSrcweirapplication/vnd.openxmlformats-officedocument.presentationml.template; %unixfilename -view %s 264*cdf0e10cSrcweirapplication/vnd.ms-powerpoint.template.macroenabled.12; %unixfilename -view %s 265*cdf0e10cSrcweirEND 266*cdf0e10cSrcweir 267*cdf0e10cSrcweir # and replace the original file 268*cdf0e10cSrcweir mv -f /etc/mailcap.tmp$$ /etc/mailcap 269*cdf0e10cSrcweirfi 270*cdf0e10cSrcweir 271*cdf0e10cSrcweirif [ -x /opt/gnome/bin/update-desktop-database ]; then 272*cdf0e10cSrcweir /opt/gnome/bin/update-desktop-database -q 273*cdf0e10cSrcweirelif (which update-desktop-database); then 274*cdf0e10cSrcweir update-desktop-database -q /usr/share/applications 275*cdf0e10cSrcweirfi 276*cdf0e10cSrcweir 277*cdf0e10cSrcweir%preun 278*cdf0e10cSrcweir# remove from /etc/mailcap only on de-install 279*cdf0e10cSrcweirif [ "$1" = 0 ] 280*cdf0e10cSrcweirthen 281*cdf0e10cSrcweir # backing all entries pointing to our binary 282*cdf0e10cSrcweir sed '/%unixfilename/d' /etc/mailcap 2>/dev/null >> /etc/mailcap.tmp$$ 283*cdf0e10cSrcweir 284*cdf0e10cSrcweir # and replace the original file 285*cdf0e10cSrcweir mv -f /etc/mailcap.tmp$$ /etc/mailcap 286*cdf0e10cSrcweirfi 287*cdf0e10cSrcweir 288*cdf0e10cSrcweir%postun 289*cdf0e10cSrcweirif [ "$1" = 0 ] ; then # only run when erasing the package - other cases handled by the triggers 290*cdf0e10cSrcweir if [ -x /opt/gnome/bin/update-desktop-database ]; then 291*cdf0e10cSrcweir /opt/gnome/bin/update-desktop-database -q 292*cdf0e10cSrcweir elif (which update-desktop-database); then 293*cdf0e10cSrcweir update-desktop-database -q 294*cdf0e10cSrcweir fi 295*cdf0e10cSrcweir# run always - both when upgrading as well as when erasing the package 296*cdf0e10cSrcweir if (which update-mime-database); then 297*cdf0e10cSrcweir update-mime-database /usr/share/mime 298*cdf0e10cSrcweir fi 299*cdf0e10cSrcweirfi 300*cdf0e10cSrcweir 301*cdf0e10cSrcweir#run always 302*cdf0e10cSrcweirfor theme in gnome hicolor locolor; do 303*cdf0e10cSrcweir if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then 304*cdf0e10cSrcweir # touch it, just in case we cannot find the binary... 305*cdf0e10cSrcweir touch /usr/share/icons/$theme 306*cdf0e10cSrcweir if [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then 307*cdf0e10cSrcweir /opt/gnome/bin/gtk-update-icon-cache -q /usr/share/icons/$theme 308*cdf0e10cSrcweir elif (which gtk-update-icon-cache); then 309*cdf0e10cSrcweir gtk-update-icon-cache -q /usr/share/icons/$theme 310*cdf0e10cSrcweir fi 311*cdf0e10cSrcweir # ignore errors (e.g. when there is a cache, but no index.theme) 312*cdf0e10cSrcweir true 313*cdf0e10cSrcweir fi 314*cdf0e10cSrcweirdone 315*cdf0e10cSrcweir 316*cdf0e10cSrcweir%files 317*cdf0e10cSrcweir# specify stale symlinks verbatim, not as glob - a change in recent versions of 318*cdf0e10cSrcweir# glibc breaks rpm unless rpm is build with internal glob-matching (issue 49374) 319*cdf0e10cSrcweir# https://bugzilla.redhat.com/beta/show_bug.cgi?id=134362 320*cdf0e10cSrcweir%defattr(-, root, root) 321*cdf0e10cSrcweir%attr(0755, root, root) /usr/bin/* 322*cdf0e10cSrcweir/usr/share/applications/%unixfilename-base.desktop 323*cdf0e10cSrcweir/usr/share/applications/%unixfilename-calc.desktop 324*cdf0e10cSrcweir/usr/share/applications/%unixfilename-draw.desktop 325*cdf0e10cSrcweir/usr/share/applications/%unixfilename-impress.desktop 326*cdf0e10cSrcweir/usr/share/applications/%unixfilename-math.desktop 327*cdf0e10cSrcweir/usr/share/applications/%unixfilename-printeradmin.desktop 328*cdf0e10cSrcweir/usr/share/applications/%unixfilename-writer.desktop 329*cdf0e10cSrcweir/usr/share/applications/%unixfilename-startcenter.desktop 330*cdf0e10cSrcweir/usr/share/applications/%unixfilename-javafilter.desktop 331*cdf0e10cSrcweir/usr/share/icons/gnome/*/apps/*png 332*cdf0e10cSrcweir/usr/share/icons/gnome/*/mimetypes/*png 333*cdf0e10cSrcweir/usr/share/icons/hicolor/*/apps/*png 334*cdf0e10cSrcweir/usr/share/icons/hicolor/*/mimetypes/*png 335*cdf0e10cSrcweir/usr/share/icons/locolor/*/apps/*png 336*cdf0e10cSrcweir/usr/share/icons/locolor/*/mimetypes/*png 337*cdf0e10cSrcweir/usr/share/mime/packages/* 338