From Fedora Project Wiki
m (typoed strike tag)
m (Fix some typos and formatting)
Line 2: Line 2:


On rawhide: <code>repoquery --whatprovides \*/fedora-\*.desktop --qf '%{name}'| sort| uniq| wc -l</code> shows 619 binary packages with problems.   
On rawhide: <code>repoquery --whatprovides \*/fedora-\*.desktop --qf '%{name}'| sort| uniq| wc -l</code> shows 619 binary packages with problems.   
== Porting notes ==
Some maintainers like to use the same spec file for all releases.  To accommodate that you can use conditionals to make the spec use <code>--vendor fedora</code> on earlier releases and remove the <code>--vendor</code> for F19+.  The simplest form looks something like this:
<pre>
desktop-file-install \
%if 0%{?fedora} < 19
  --vendor fedora \
%endif
  %{name}.desktop
</pre>
To be even more accommodating to maintainers, you can try to make your conditionals aware of potential EPEL builds as well.  That looks like this:
<pre>
# --vendor was not previously used in EPEL/RHEL builds or there aren't currently EPEL builds:
desktop-file-install \
%if 0%{?fedora} && 0%{?fedora} < 19
  --vendor fedora \
%endif
  %{name}.desktop
# If --vendor was previously used in EPEL/RHEL builds
desktop-file-install \
%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7)
  --vendor fedora \
%endif
  %{name}.desktop
</pre>
In addition to modifying the <code>desktop-file-install</code> line, you probably also have to modify the %files section to handle desktop files with or without the fedora- prefix.  Some examples:
<pre>
  %files
  # Use a wildcard
- %{_datadir}/applications/fedora-%{name}.desktop
+ %{_datadir}/applications/*%{name}.desktop
  # Use a conditional
+ %if 0%{?fedora} && 0%{?fedora} < 19
  %{_datadir}/applications/fedora-%{name}.desktop
+ %else
+ %{_datadir}/applications/%{name}.desktop
+ %endif
</pre>


== List of affected packages ==
== List of affected packages ==

Revision as of 18:40, 14 February 2013

https://fedorahosted.org/fesco/ticket/1077

On rawhide: repoquery --whatprovides \*/fedora-\*.desktop --qf '%{name}'| sort| uniq| wc -l shows 619 binary packages with problems.

Porting notes

Some maintainers like to use the same spec file for all releases. To accommodate that you can use conditionals to make the spec use --vendor fedora on earlier releases and remove the --vendor for F19+. The simplest form looks something like this:

desktop-file-install \
%if 0%{?fedora} < 19
  --vendor fedora \
%endif
  %{name}.desktop

To be even more accommodating to maintainers, you can try to make your conditionals aware of potential EPEL builds as well. That looks like this:

# --vendor was not previously used in EPEL/RHEL builds or there aren't currently EPEL builds:
desktop-file-install \
%if 0%{?fedora} && 0%{?fedora} < 19
  --vendor fedora \
%endif
  %{name}.desktop

# If --vendor was previously used in EPEL/RHEL builds
desktop-file-install \
%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7)
  --vendor fedora \
%endif
  %{name}.desktop

In addition to modifying the desktop-file-install line, you probably also have to modify the %files section to handle desktop files with or without the fedora- prefix. Some examples:

  %files
  # Use a wildcard
- %{_datadir}/applications/fedora-%{name}.desktop
+ %{_datadir}/applications/*%{name}.desktop

  # Use a conditional
+ %if 0%{?fedora} && 0%{?fedora} < 19
  %{_datadir}/applications/fedora-%{name}.desktop
+ %else
+ %{_datadir}/applications/%{name}.desktop
+ %endif

List of affected packages

On rawhide, run: repoquery --whatprovides \*/fedora-\*.desktop --qf '%{sourcerpm}'| sort| uniq

600 source packages need changing:

  • abe  : Rahul Sundaram
  • abiword  : Rahul Sundaram
  • agistudio  : Rahul Sundaram
  • aiksaurus  : Rahul Sundaram
  • airsnort  : Rahul Sundaram
  • alex4  : Rahul Sundaram
  • alexandria  : already fixed
  • alienarena  : Rahul Sundaram
  • alienblaster  : Rahul Sundaram
  • alleyoop  : Rahul Sundaram
  • alltray  : Rahul Sundaram
  • alphabet-soup  : Rahul Sundaram
  • alsamixergui  : Rahul Sundaram
  • alsa-tools - Rahul Sundaram. Filed https://bugzilla.redhat.com/show_bug.cgi?id=909622
  • amoebax  : Rahul Sundaram
  • amsn  : Rahul Sundaram
  • amtterm  : Rahul Sundaram
  • anaconda  : Rahul Sundaram. Filed https://bugzilla.redhat.com/show_bug.cgi?id=909592
  • angrydd  : Jon Ciesla
  • ants  : Rahul Sundaram
  • apcupsd - seems like a accidental add?
  • apricots  : Jon Ciesla
  • ardour  : Rahul Sundaram
  • armacycles-ad  : Jon Ciesla
  • arora  : Rahul Sundaram
  • arrows  : Rahul Sundaram
  • asc  : Rahul Sundaram
  • astromenace - hold off, working on update - JC
  • asunder  : Rahul Sundaram
  • asylum  : Rahul Sundaram
  • asymptote  : Rahul Sundaram
  • aterm  : Rahul Sundaram
  • atomix  : Rahul Sundaram
  • atomorun  : Rahul Sundaram
  • audacity  : Rahul Sundaram
  • audio-convert-mod  : Rahul Sundaram
  • audit-viewer  : Rahul Sundaram
  • auriferous  : Rahul Sundaram
  • autobuild-applet  : Rahul Sundaram
  • azureus  : Rahul Sundaram
  • bacula  : Rahul Sundaram
  • ballbuster  : Rahul Sundaram
  • balsa  : Rahul Sundaram - FTBFS - mailed maintainer offlist.
  • beldi  : Rahul Sundaram
  • beneath-a-steel-sky  : Rahul Sundaram
  • beneath-a-steel-sky-cd  : Rahul Sundaram
  • berusky
  • bibus
  • biloba  : Jon Ciesla
  • bitmap
  • bless
  • blobby
  • blobwars
  • BlockOutII
  • boinc-client
  • bolzplatz2006
  • bombardier  : Jon Ciesla
  • boswars
  • bouml
  • bsh
  • bygfoot
  • bzflag
  • cairo-clock
  • catfish
  • cave9
  • cbrpager
  • cdcollect
  • cdogs-sdl
  • celestia
  • cellwriter : Parag Nemade
  • centerim
  • cfdg-fe  : Jon Ciesla
  • chemtool
  • childsplay
  • chkrootkit  : Jon Ciesla
  • chmsee
  • cinepaint
  • clanbomber
  • clips
  • clonekeen
  • clusterssh
  • coco-coq  : Jon Ciesla
  • codeblocks
  • comix
  • conduit
  • conglomerate
  • coq
  • coriander
  • corrida
  • crack-attack
  • CriticalMass
  • crossfire-client  : Jon Ciesla
  • crystal-stacker
  • cssed
  • cwiid
  • cycle  : Jon Ciesla
  • cylindrix  : Jon Ciesla
  • dayplanner
  • dd2
  • ddd  : Jon Ciesla
  • deluge
  • dgae  : Jon Ciesla
  • dia
  • dillo
  • diveintopython
  • djview4
  • dogtail
  • dosbox  : Jon Ciesla
  • drgeo
  • driconf
  • duel3
  • dvdisaster
  • dx
  • dxcc
  • e16-keyedit
  • ebview
  • ed2k_hash
  • edsadmin
  • eiciel
  • em8300
  • ember
  • emelfm2
  • empathy
  • enigma
  • epdfview
  • escape
  • eterm
  • etherape  : Jon Ciesla
  • ettercap  : Jon Ciesla
  • exaile
  • expendable
  • extrema
  • extremetuxracer
  • fantasdic
  • fbg
  • fbreader
  • fedora-accessibility-guide-en-US
  • fedora-arm-installer
  • fedora-release-notes
  • fedora-review
  • filezilla  : Jon Ciesla
  • firstaidkit
  • FlightGear
  • flight-of-the-amazon-queen
  • flight-of-the-amazon-queen-cd
  • flobopuyo
  • flpsed
  • flumotion
  • fontforge : Paul Flo Williams
  • fontmatrix  : Parag Nemade
  • foobillard  : Jon Ciesla
  • fpm2
  • fprint_demo
  • freeciv  : Jon Ciesla
  • freecol
  • freedroid  : Jon Ciesla
  • freedroidrpg  : Jon Ciesla
  • freetennis
  • fslint
  • fwbackups
  • fwbuilder
  • fwfstab
  • g3data
  • gabedit
  • gajim
  • galternatives
  • gamazons
  • gambas2
  • gambas3
  • gazpacho
  • gbrainy
  • gcin
  • gcompris
  • gcstar
  • gcx
  • gdesklets
  • gdmap
  • geany
  • gemdropx
  • genchemlab  : Jon Ciesla
  • genius
  • ggobi
  • ggz-gtk-client
  • ghasher
  • ghost-diagrams
  • giggle  : Jon Ciesla
  • gimmix
  • git
  • gjots2
  • gl-117
  • glabels
  • glade3
  • glaxium
  • GLC_Player
  • glglobe
  • gliv
  • glob2
  • gmpc
  • gnomad2
  • gnomebaker
  • gnome-chemistry-utils
  • gnomeradio
  • gnome-subtitles
  • gnome-translate
  • gnubg  : Jon Ciesla
  • gnumeric
  • gobby
  • gonvert  : Jon Ciesla
  • gourmet
  • gparted
  • gphpedit
  • gpicview
  • gpodder  : Jon Ciesla
  • gpredict
  • gpsd
  • gq
  • grace
  • gramps  : Jon Ciesla
  • grass
  • grc
  • greadelf
  • gresistor
  • gresolver
  • GREYCstoration
  • greyhounds
  • grhino
  • grig
  • grip
  • grisbi
  • gscan2pdf
  • gtk-gnutella
  • gtkperf
  • gtkpod  : Jon Ciesla
  • gtk-recordmydesktop
  • gtkterm
  • gtorrentviewer
  • gv
  • gweled  : Jon Ciesla
  • gwget
  • gwibber
  • gxine
  • gyachi
  • hardinfo
  • hatari
  • hedgewars
  • HippoDraw
  • homebank
  • html2ps
  • htmldoc
  • httrack
  • hydrogen  : Jon Ciesla - FTBFS, emailed maintainer.
  • im-chooser
  • immix  : Jon Ciesla
  • inetvis
  • international-time
  • iok  : Parag Nemade
  • ipe
  • isomaster
  • jabbim
  • jack-rack
  • jd
  • jigdo
  • jmol
  • justmoon
  • kazehakase
  • kbilliards
  • kdesvn
  • kdirstat
  • keepassx  : Jon Ciesla
  • kid3
  • kita
  • kitsune
  • klamav
  • knetstats
  • KoboDeluxe  : Jon Ciesla
  • kodos
  • komparator
  • koules
  • kover
  • kphotobymail
  • kpolynome
  • kreetingkard
  • ksensors
  • kshutdown
  • LabPlot
  • lacewing
  • lash  : oget
  • lazarus
  • lbrickbuster2
  • leafpad
  • libhocr
  • libsvm
  • licq
  • liferea  : Jon Ciesla
  • lincity-ng
  • linphone
  • linpsk
  • linsmith
  • liquidwar  : Jon Ciesla
  • listen
  • liveusb-creator
  • logjam
  • londonlaw
  • lshw
  • lucidlife
  • lure
  • lxappearance
  • lxtask
  • lxterminal
  • lybniz
  • machineball
  • Maelstrom
  • magicmaze
  • magicor
  • mail-notification
  • makehuman
  • manedit
  • maniadrive
  • mapnik
  • mdbtools
  • MegaMek Toshio Kuratomi
  • meld Toshio Kuatomi
  • methane Toshio Kuratomi
  • midori Toshio Kuratomi
  • milkytracker Toshio Kuratomi
  • mirage
  • mirrormagic
  • mldonkey
  • mono-tools
  • monsterz  : Jon Ciesla
  • mrxvt
  • mtpaint
  • mtr
  • mypaint
  • MyPasswordSafe
  • naturette  : Jon Ciesla
  • nautilus-actions
  • nazghul
  • nedit
  • nemiver
  • nessus-core
  • netgen
  • netgo
  • nethack  : Jon Ciesla
  • nethack-vultures  : Jon Ciesla
  • netpanzer  : Jon Ciesla
  • neverball  : Jon Ciesla
  • nexuiz  : Jon Ciesla
  • nightfall
  • nightview
  • njam
  • nntpgrab
  • nogravity
  • npush
  • numptyphysics  : Jon Ciesla
  • nvclock
  • obconf
  • obmenu
  • ochusha
  • ocp
  • octave
  • oggconvert
  • OmegaT
  • oneko
  • openalchemist
  • openlierox
  • openmsx
  • openuniverse
  • opticalraytracer
  • orage
  • osmo
  • overgod
  • pachi
  • pan
  • paraview
  • parcellite
  • pari
  • pcmanfm
  • pcsc-tools
  • penguin-command  : Jon Ciesla
  • pengupop  : Jon Ciesla
  • perl-Padre
  • phasex
  • picard
  • picviz
  • pikdev
  • piklab
  • pikloops
  • pinball  : Jon Ciesla
  • pingus  : Jon Ciesla
  • pioneers
  • pipenightdreams  : Jon Ciesla
  • pipepanic
  • planets  : Jon Ciesla
  • player
  • pmpu
  • poedit
  • policycoreutils
  • portecle
  • prelude-notify
  • professor-is-missing  : Jon Ciesla
  • publican  : Parag Nemade
  • puzzles
  • pybliographer
  • pychess
  • pyrenamer  : Jon Ciesla
  • PySolFC
  • pyvnc2swf
  • qalculate-gtk
  • qalculate-kde
  • qascade
  • qcad
  • qct
  • qemu-launcher
  • qfaxreader
  • qgis
  • qgit
  • qjackctl  : oget
  • qmmp
  • qsynth  : oget
  • qtoctave
  • qt-recordmydesktop
  • quake3  : Jon Ciesla - FTBFS, emailed maintainer
  • quarry  : Jon Ciesla
  • qucs
  • quicksynergy
  • quodlibet
  • rafkill  : Jon Ciesla
  • raidem
  • rapidsvn
  • rawstudio
  • rcsslogplayer
  • rcssmonitor
  • rcssserver
  • rcssserver3d
  • redet
  • redmode
  • regexxer
  • rekall
  • remind
  • resapplet
  • revelation
  • revisor
  • Ri-li
  • ristretto
  • rocksndiamonds
  • rogue
  • rosegarden4
  • rott
  • roxterm
  • rxvt
  • rxvt-unicode
  • saoimage
  • schismtracker
  • scorched3d  : Jon Ciesla
  • scorchwentbonkers
  • screenruler
  • scribus
  • scythia
  • seahorse-adventures
  • sear
  • seaview
  • sectool
  • seq24
  • sergueis-destiny  : Jon Ciesla
  • shippy
  • sim
  • simcoupe
  • sirius
  • six
  • sk2py
  • slingshot  : Jon Ciesla
  • solarwolf  : Jon Ciesla
  • solfege
  • sonata
  • sooperlooper
  • sopwith  : Jon Ciesla
  • soundconverter  : modified in git already
  • soundtracker
  • spacechart
  • Sprog
  • sqliteman
  • stardict
  • starplot
  • SteGUI
  • stellarium  : Jon Ciesla
  • stormbaancoureur
  • subtitleeditor
  • supertuxkart  : Jon Ciesla
  • sweep
  • synaptic
  • synce-kpm
  • synce-software-manager
  • synce-trayicon
  • synfigstudio  : Jon Ciesla
  • system-config-rootpassword
  • tagtool
  • taskcoach
  • taskjuggler
  • taxipilot
  • tecnoballz
  • teg
  • tennix  : Jon Ciesla
  • TeXmacs
  • texmaker
  • tgif
  • thewidgetfactory
  • Thunar
  • thunar-volman
  • timidity++
  • tkgate
  • tn5250
  • tong
  • torsmo
  • trackballs  : Jon Ciesla
  • translation-filter  : Parag Nemade
  • tremulous
  • tryton
  • tunneler
  • tuxpaint  : Jon Ciesla
  • tuxpuck  : Jon Ciesla
  • tuxtype2
  • twinkle
  • typespeed
  • tzclock
  • ularn  : Jon Ciesla
  • ultimatestunts
  • unison213
  • uqm  : Jon Ciesla
  • usbview  : Parag Nemade
  • uudeview  : Parag Nemade
  • v4l2ucp  : Parag Nemade
  • valknut  : Parag Nemade
  • vavoom  : Parag Nemade
  • vdrift  : Parag Nemade
  • vegastrike  : Parag Nemade
  • verbiste  : Parag Nemade
  • vim  : Parag Nemade
  • vkeybd  : Parag Nemade
  • vodovod  : Parag Nemade
  • vym  : Parag Nemade
  • wallpapoz  : Mamoru Tasaka
  • warzone2100  : Parag Nemade
  • wavbreaker  : Parag Nemade
  • wesnoth  : Parag Nemade
  • wfut  : Parag Nemade
  • why  : Parag Nemade
  • whysynth-dssi  : Parag Nemade
  • widelands  : Parag Nemade
  • wine  : Parag Nemade
  • wings  : Parag Nemade. FTBFS https://bugzilla.redhat.com/show_bug.cgi?id=909805
  • winpdb  : Parag Nemade
  • wireshark  : Parag Nemade
  • wlassistant  : Parag Nemade
  • wordwarvi  : Parag Nemade
  • worminator  : Parag Nemade
  • wormux  : Parag Nemade Looks dead package in Fedora
  • WritRecogn  : Parag Nemade
  • wxGlade  : Parag Nemade
  • x3270  : Parag Nemade
  • xaos  : Parag Nemade. Failed to build for some %doc issue
  • xarchiver  : Parag Nemade
  • xarchon  : Parag Nemade
  • xawtv  : Parag Nemade
  • xblast  : Parag Nemade
  • xca  : Parag Nemade
  • xchat-gnome  : Parag Nemade
  • xchm  : Parag Nemade
  • xdaliclock  : Parag Nemade
  • xdesktopwaves  : Parag Nemade
  • xdrawchem  : Parag Nemade
  • xfbib  : Parag Nemade
  • xfce4-taskmanager  : Parag Nemade
  • xfhell  : Parag Nemade
  • xfig  : Parag Nemade
  • xfmpc  : Parag Nemade
  • xgalaxy  : Parag Nemade
  • xgrav  : Parag Nemade
  • xhotkeys  : Parag Nemade
  • xkeycaps  : Parag Nemade
  • xlockmore  : Parag Nemade
  • xmlcopyeditor  : Parag Nemade
  • xmoto  : Parag Nemade
  • xournal  : Parag Nemade
  • xpad  : Parag Nemade
  • xpdf  : Parag Nemade
  • xpilot-ng  : Parag Nemade
  • xsane  : Parag Nemade
  • xsc  : Parag Nemade
  • xterm  : Parag Nemade
  • xtide  : Mamoru Tasaka
  • xu4  : Parag Nemade
  • xvarstar  : Parag Nemade
  • xwrits  : Parag Nemade
  • xzgv  : Parag Nemade
  • yadex  : Parag Nemade
  • zasx  : Parag Nemade
  • zynaddsubfx  : Parag Nemade