PaulHowarth/Blog/2015-04-01

Wednesday 1st April 2015

Fedora Project

  • Updated perl-IO-Multiplex to 1.15 in F-22 and Rawhide:

    • Move untie patch to the right place

Local Packages

  • Updated GeoIP-GeoLite-data to create the GeoIP.dat symlink in %posttrans rather than including it as a %config(noreplace) file; had to be careful to handle upgrades properly:

  • %posttrans
    # Create the default GeoIP.dat as a symlink to GeoLiteCountry.dat
    #
    # This has to be done in %posttrans rather than %post because an old
    # package's GeoIP.dat may still be present during %post in an upgrade
    #
    # Don't do this if there is any existing GeoIP.dat, as we don't want to
    # override what the user has put there
    #
    # Also, if there's an existing GeoIP.dat.rpmsave, we're probably doing
    # an upgrade from an old version of GeoIP that packaged GeoIP.dat as
    # %config(noreplace), so rename GeoIP.dat.rpmsave back to GeoIP.dat
    # instead of creating a new symlink
    if [ ! -e %{_datadir}/GeoIP/GeoIP.dat ]; then
            if [ -e %{_datadir}/GeoIP/GeoIP.dat.rpmsave ]; then
                    mv %{_datadir}/GeoIP/GeoIP.dat.rpmsave \
                            %{_datadir}/GeoIP/GeoIP.dat
            else
                    ln -sf GeoLiteCountry.dat %{_datadir}/GeoIP/GeoIP.dat
            fi
    fi
    exit 0
  • Updated perl-IO-Multiplex to 1.15 as per the Fedora version


Recent