libgeda: Move slot handling code to its own file, s_slot.c
[geda-gaf.git] / docs / wiki / geda_suse_rpm_installation.html
blob132d401b28e2e63a0a13f11b1c094bdb5349b80e
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
4 lang="en" dir="ltr">
5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7 <title>geda:suse_rpm_installation</title>
8 <meta name="generator" content="DokuWiki Release rc2007-05-24" />
9 <meta name="robots" content="index,follow" />
10 <meta name="date" content="2008-03-27T04:50:13-0400" />
11 <meta name="keywords" content="geda,suse_rpm_installation" />
12 <link rel="search" type="application/opensearchdescription+xml" href="http://geda.seul.org/wiki/lib/exe/opensearch.php" title="geda Wiki" />
13 <link rel="start" href="http://geda.seul.org/wiki/" />
14 <link rel="contents" href="http://geda.seul.org/wiki/geda:suse_rpm_installation?do=index" title="Index" />
15 <link rel="alternate" type="application/rss+xml" title="Recent Changes" href="http://geda.seul.org/wiki/feed.php" />
16 <link rel="alternate" type="application/rss+xml" title="Current Namespace" href="http://geda.seul.org/wiki/feed.php?mode=list&ns=geda" />
17 <link rel="alternate" type="text/html" title="Plain HTML" href="http://geda.seul.org/wiki/_export/xhtml/geda:suse_rpm_installation" />
18 <link rel="alternate" type="text/plain" title="Wiki Markup" href="http://geda.seul.org/wiki/_export/raw/geda:suse_rpm_installation" />
19 <link rel="stylesheet" media="all" type="text/css" href="lib/exe/css" />
20 <link rel="stylesheet" media="screen" type="text/css" href="lib/exe/001css" />
21 <link rel="stylesheet" media="print" type="text/css" href="lib/exe/002css" />
22 </head>
23 <body>
24 <div class="dokuwiki export">
25 <div class="toc">
26 <div class="tocheader toctoggle" id="toc__header">Table of Contents</div>
27 <div id="toc__inside">
29 <ul class="toc">
30 <li class="level1"><div class="li"><span class="li"><a href="#installing_geda_rpm_packages_on_suse" class="toc">Installing gEDA rpm packages on SuSE</a></span></div>
31 <ul class="toc">
32 <li class="level2"><div class="li"><span class="li"><a href="#available_rpm_packages" class="toc">Available rpm packages</a></span></div></li>
33 <li class="level2"><div class="li"><span class="li"><a href="#installing_packages_from_the_suse_build_service" class="toc">Installing Packages from the SuSE Build Service</a></span></div></li>
34 <li class="level2"><div class="li"><span class="li"><a href="#distribution_specific_notes" class="toc">Distribution specific notes</a></span></div>
35 <ul class="toc">
36 <li class="level3"><div class="li"><span class="li"><a href="#suse_10.0" class="toc">SuSE 10.0</a></span></div></li>
37 <li class="level3"><div class="li"><span class="li"><a href="#suse_10.1" class="toc">SuSE 10.1</a></span></div></li>
38 <li class="level3"><div class="li"><span class="li"><a href="#suse_10.2" class="toc">SuSE 10.2</a></span></div></li>
39 <li class="level3"><div class="li"><span class="li"><a href="#suse_10.3" class="toc">SuSE 10.3</a></span></div></li>
40 </ul>
41 </li>
42 <li class="level2"><div class="li"><span class="li"><a href="#desktop_integration" class="toc">Desktop Integration</a></span></div>
43 <ul class="toc">
44 <li class="level3"><div class="li"><span class="li"><a href="#electronics_menu" class="toc">Electronics Menu</a></span></div></li>
45 <li class="level3"><div class="li"><span class="li"><a href="#notes_about_rpm_spec_file" class="toc">Notes about rpm spec file</a></span></div></li>
46 <li class="level3"><div class="li"><span class="li"><a href="#installing_rpm_packages_manually" class="toc">Installing rpm packages manually</a></span></div></li></ul>
47 </li></ul>
48 </li></ul>
49 </div>
50 </div>
54 <h1><a name="installing_geda_rpm_packages_on_suse" id="installing_geda_rpm_packages_on_suse">Installing gEDA rpm packages on SuSE</a></h1>
55 <div class="level1">
57 </div>
58 <!-- SECTION "Installing gEDA rpm packages on SuSE" [1-52] -->
59 <h2><a name="available_rpm_packages" id="available_rpm_packages">Available rpm packages</a></h2>
60 <div class="level2">
61 <ul>
62 <li class="level1"><div class="li"> libgeda (1.4.0)</div>
63 </li>
64 <li class="level1"><div class="li"> geda-docs (1.4.0)</div>
65 </li>
66 <li class="level1"><div class="li"> geda-examples (1.4.0)</div>
67 </li>
68 <li class="level1"><div class="li"> geda-gattrib (1.4.0)</div>
69 </li>
70 <li class="level1"><div class="li"> geda-gnetlist (1.4.0)</div>
71 </li>
72 <li class="level1"><div class="li"> geda-gschem (1.4.0)</div>
73 </li>
74 <li class="level1"><div class="li"> geda-gsymcheck (1.4.0)</div>
75 </li>
76 <li class="level1"><div class="li"> geda-symbols (1.4.0)</div>
77 </li>
78 <li class="level1"><div class="li"> geda-utils (1.4.0)</div>
79 </li>
80 <li class="level1"><div class="li"> gerbv (2.0.1)</div>
81 </li>
82 <li class="level1"><div class="li"> pcb (20080202)</div>
83 </li>
84 <li class="level1"><div class="li"> ng-spice-rework (17)</div>
85 </li>
86 <li class="level1"><div class="li"> gnucap (0.35)</div>
87 </li>
88 <li class="level1"><div class="li"> gspiceui (0.9.65)</div>
89 </li>
90 <li class="level1"><div class="li"> gwave (20051222)</div>
91 </li>
92 <li class="level1"><div class="li"> gtkwave (3.1.7)</div>
93 </li>
94 <li class="level1"><div class="li"> dinotrace (9.3f)</div>
95 </li>
96 <li class="level1"><div class="li"> verilog (0.8.6)</div>
97 </li>
98 <li class="level1"><div class="li"> wcalc (1.0)</div>
99 </li>
100 <li class="level1"><div class="li"> xgsch2pcb (0.1.2)</div>
101 </li>
102 <li class="level1"><div class="li"> electronics-menu (1.0)</div>
103 </li>
104 </ul>
106 </div>
107 <!-- SECTION "Available rpm packages" [53-558] -->
108 <h2><a name="installing_packages_from_the_suse_build_service" id="installing_packages_from_the_suse_build_service">Installing Packages from the SuSE Build Service</a></h2>
109 <div class="level2">
110 <ol>
111 <li class="level1"><div class="li"> Start Yast and go to “Change Installation Source”</div>
112 </li>
113 <li class="level1"><div class="li"> Add a <acronym title="Hyper Text Transfer Protocol">HTTP</acronym> source with the following properties: </div>
114 <ul>
115 <li class="level3"><div class="li"> <strong>Servername:</strong> software.opensuse.org</div>
116 </li>
117 <li class="level3"><div class="li"> <strong>Directory:</strong> /download/repositories/science/openSUSE_10.2/ </div>
118 </li>
119 </ul>
120 </li>
121 </ol>
124 (Choose the directory for your distribution)
125 </p>
126 <ol>
127 <li class="level1"><div class="li"> Start “Install Software” in Yast, goto “Search” and look for gEDA. All packages appear.</div>
128 </li>
129 <li class="level1"><div class="li"> Install the packages as usuall.</div>
130 </li>
131 </ol>
134 For more informations read the <a href="http://en.opensuse.org/Build_Service/User" class="urlextern" title="http://en.opensuse.org/Build_Service/User" rel="nofollow"> generic installation notes</a> of the <a href="http://en.opensuse.org/Build_Service" class="urlextern" title="http://en.opensuse.org/Build_Service" rel="nofollow"> OpenSuSE Build Service</a>
135 </p>
138 You can also browse through repositories first: <a href="http://software.opensuse.org/download/science/SUSE_Linux_10.0/repodata/" class="urlextern" title="http://software.opensuse.org/download/science/SUSE_Linux_10.0/repodata/" rel="nofollow"> SUSE_Linux_10.0 repo</a>, <a href="http://software.opensuse.org/download/science/SUSE_Linux_10.1/repodata/" class="urlextern" title="http://software.opensuse.org/download/science/SUSE_Linux_10.1/repodata/" rel="nofollow"> SUSE_Linux_10.1 repo</a>, <a href="http://software.opensuse.org/download/science/openSUSE_10.2/repodata/" class="urlextern" title="http://software.opensuse.org/download/science/openSUSE_10.2/repodata/" rel="nofollow"> openSUSE_10.2 repo</a>, <a href="http://software.opensuse.org/download/science/openSUSE_10.3/repodata/" class="urlextern" title="http://software.opensuse.org/download/science/openSUSE_10.3/repodata/" rel="nofollow"> openSUSE_10.3 repo</a>
139 </p>
141 </div>
142 <!-- SECTION "Installing Packages from the SuSE Build Service" [559-1663] -->
143 <h2><a name="distribution_specific_notes" id="distribution_specific_notes">Distribution specific notes</a></h2>
144 <div class="level2">
147 Each distribution version has it’s own issues. Please read the notes below.
148 </p>
150 </div>
151 <!-- SECTION "Distribution specific notes" [1664-1782] -->
152 <h3><a name="suse_10.0" id="suse_10.0">SuSE 10.0</a></h3>
153 <div class="level3">
154 <ul>
155 <li class="level1"><div class="li"> <strong>xgschem2pcb</strong> not available, it requires a more recent dbus library</div>
156 </li>
157 </ul>
159 </div>
160 <!-- SECTION "SuSE 10.0" [1783-1879] -->
161 <h3><a name="suse_10.1" id="suse_10.1">SuSE 10.1</a></h3>
162 <div class="level3">
163 <ul>
164 <li class="level1"><div class="li"> <strong>xgschem2pcb</strong> not available, it requires a more recent dbus library</div>
165 </li>
166 </ul>
168 </div>
169 <!-- SECTION "SuSE 10.1" [1880-1974] -->
170 <h3><a name="suse_10.2" id="suse_10.2">SuSE 10.2</a></h3>
171 <div class="level3">
172 <ul>
173 <li class="level1"><div class="li"> <strong>gwave cannot be build</strong>, it requires guile-gtk which requires libglade and gtk12. libglade is no longer part of the SuSE distribution.</div>
174 </li>
175 </ul>
177 </div>
178 <!-- SECTION "SuSE 10.2" [1975-2137] -->
179 <h3><a name="suse_10.3" id="suse_10.3">SuSE 10.3</a></h3>
180 <div class="level3">
181 <ul>
182 <li class="level1"><div class="li"> <strong>gwave cannot be build</strong>, it requires guile-gtk which requires libglade and gtk12. libglade is no longer part of the SuSE distribution.</div>
183 </li>
184 </ul>
186 </div>
187 <!-- SECTION "SuSE 10.3" [2138-2301] -->
188 <h2><a name="desktop_integration" id="desktop_integration">Desktop Integration</a></h2>
189 <div class="level2">
192 This is a summary how the gEDA and other electronic packages are integrated into the desktop of openSUSE.
193 </p>
195 </div>
196 <!-- SECTION "Desktop Integration" [2302-2441] -->
197 <h3><a name="electronics_menu" id="electronics_menu">Electronics Menu</a></h3>
198 <div class="level3">
201 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 <strong>electronics-menu</strong> rpm. It contains the menu item and some icons for it. The menu categorie is called <strong>Edutainment&ndash;&gt;Electronics</strong> in openSUSE.
202 </p>
205 If it is installed, it looks like this in KDE (manually combined with gimp):
206 </p>
209 <a href="_detail/geda_suse_electronics_menu.html" class="media" title="geda:suse_electronics_menu.png"><img src="_media/geda_suse_electronics_menu.png" class="media" alt="" /></a>
210 </p>
212 </div>
213 <!-- SECTION "Electronics Menu" [2442-2942] -->
214 <h3><a name="notes_about_rpm_spec_file" id="notes_about_rpm_spec_file">Notes about rpm spec file</a></h3>
215 <div class="level3">
218 openSUSE calls it’s <em>SuSEconfig</em> program after every installation of rpm packages with YaST. Thus it’s not necessary to integrate all configuration calls into the <em>post</em> and <em>postun</em> rpm sections.
219 </p>
222 The only additions in the <acronym title="specification">spec</acronym> files are for the <em>Shared <acronym title="Multipurpose Internet Mail Extension">MIME</acronym> Info</em>. It is described in this openSUSE <a href="http://en.opensuse.org/Packaging/SUSE_Package_Conventions/Specific_Packages#10.1.3._Shared_MIME_Info" class="urlextern" title="http://en.opensuse.org/Packaging/SUSE_Package_Conventions/Specific_Packages#10.1.3._Shared_MIME_Info" rel="nofollow">SUSE_Package_Conventions/Specific_Packages</a> article.
223 </p>
224 <pre class="code">PreReq: shared-mime-info
225 [...]</pre>
226 <pre class="code">%post
227 /usr/bin/update-mime-database /opt/gnome/share/mime &gt;/dev/null</pre>
228 <pre class="code">%postun
229 /usr/bin/update-mime-database /opt/gnome/share/mime &gt;/dev/null</pre>
232 Another addition is required to install the mimelnks properly in the KDE environment. KDE does not take care of the mimelnks installed in <em>/usr/share/mimelnk</em>/, thus they have to be copied to the KDE directory <em>/opt/kde3/mimelnk</em>/. This is done in the rpm <acronym title="specification">spec</acronym> file inside the %install section
233 </p>
234 <pre class="code">%install
235 %makeinstall
236 kdemimedir=$(kde-config --install mime)
237 mkdir -p &quot;$RPM_BUILD_ROOT&quot;&quot;$kdemimedir&quot;&quot;/application&quot;
238 cp &quot;$RPM_BUILD_ROOT&quot;/usr/share/mimelnk/application/* &quot;$RPM_BUILD_ROOT&quot;&quot;$kdemimedir&quot;&quot;/application/&quot;</pre>
240 </div>
241 <!-- SECTION "Notes about rpm spec file" [2943-4164] -->
242 <h3><a name="installing_rpm_packages_manually" id="installing_rpm_packages_manually">Installing rpm packages manually</a></h3>
243 <div class="level3">
246 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
247 </p>
248 <pre class="code">/sbin/SuSEconfig </pre>
251 or call only the two required subconfiguration tools
252 </p>
253 <pre class="code">/sbin/conf.d/SuSEconfig.desktop-file-utils </pre>
256 which calls
257 </p>
258 <pre class="code">/usr/bin/update-desktop-database</pre>
261 and
262 </p>
263 <pre class="code">/sbin/conf.d/SuSEconfig.gtk2</pre>
266 which calls
267 </p>
268 <pre class="code">/usr/bin/gtk-update-icon-cache --quiet --ignore-theme-index --remove-empty-cache &quot;$SUBDIR&quot;</pre>
270 </div>
271 <!-- SECTION "Installing rpm packages manually" [4165-] --></div>
272 </body>
273 </html>