# Installing gEDA rpm packages on SuSE

## Available rpm packages

- geda (1.4.3)
- gerbv (2.2.0)
- pcb (20081128)
- ng-spice-rework (18)
- gnucap (0.35)
- gspiceui (0.9.65)
- gwave (20090114)
- gtkwave (3.1.10)
- dinotrace (9.3f)
- verilog (0.8.7)
- wcalc (1.0)
- xgsch2pcb (0.1.2)
- electronics-menu (1.0)

## Installing Packages from the SuSE Build Service

1. Start Yast and go to “Change Installation Source”
2. Add a HTTP source with the following properties:
   - Servername: software.opensuse.org
   - Directory: /download/repositories/science/openSUSE_11.0/

(Choose the directory for your distribution)

1. Start “Install Software” in Yast, goto “Search” and look for gEDA. All packages appear.
2. Install the packages as usuall.

For more informations read the generic installation notes of the OpenSuSE Build Service

You can also browse through repositories first: openSUSE_10.3 repo, openSUSE_11.0 repo, openSUSE_11.1 repo.

## Distribution specific notes

Each distribution version has it’s own issues. Please read the notes below.

### openSUSE 10.2

- no longer available

### openSUSE 10.3

- …

### openSUSE 11.0

- …

### openSUSE 11.1

- currently no electronics menu, all programs show up in the Education→Science menu
- …

## Desktop Integration

This is a summary how the gEDA and other electronic packages are integrated into the desktop of openSUSE.

### Electronics Menu

Unfortunatly the openSUSE distribution does not provide a electronics menu entry for all the nice gEDA programms. Peter Clifton has created a menu entry for electronics. This menu package is available in the electronics-menu rpm. It contains the menu item and some icons for it. The menu categorie is called Edutainment–>Electronics in openSUSE.

If it is installed, it looks like this in KDE (manually combined with gimp):

### Notes about rpm spec file

openSUSE calls it’s SuSEconfig program after every installation of rpm packages with YaST. Thus it’s not necessary to integrate all configuration calls into the post and postun rpm sections.

The only additions in the spec files are for the Shared MIME Info. It is described in this openSUSE SUSE_Package_Conventions/Specific_Packages article.

    PreReq:       shared-mime-info
    [...]

    %post
    if test -f %{_bindir}/update-mime-database ; then
        %{_bindir}/update-mime-database %{_datadir}/mime >/dev/null
    fi

    %postun
    if test -f %{_bindir}/update-mime-database ; then
        %{_bindir}/update-mime-database %{_datadir}/mime >/dev/null
    fi

Another addition is required to install the mimelnks properly in the KDE environment. KDE does not take care of the mimelnks installed in /usr/share/mimelnk/, thus they have to be copied to the KDE directory /opt/kde3/mimelnk/. This is done in the rpm spec file inside the %install section

    %install
    %makeinstall
    kdemimedir=$(kde-config --install mime)
    if test %{_datadir} != $kdemimedir ; then
        mkdir -p $RPM_BUILD_ROOT$kdemimedir
        mv $RPM_BUILD_ROOT%{_datadir}/mimelnk/* $RPM_BUILD_ROOT$kdemimedir
        rmdir $RPM_BUILD_ROOT%{_datadir}/mimelnk
    fi

### Installing rpm packages manually

For those who don’t use YaST for installation the SuSEconfig command has to be executed manually after installing or removing any rpm package. You can either call the toplevel SuSEconfig command

    /sbin/SuSEconfig

or call only the two required subconfiguration tools

    /sbin/conf.d/SuSEconfig.desktop-file-utils

which calls

    /usr/bin/update-desktop-database

and

    /sbin/conf.d/SuSEconfig.gtk2

which calls

    /usr/bin/gtk-update-icon-cache --quiet --ignore-theme-index --remove-empty-cache "$SUBDIR"