gsch2pcb: Make --m4-file and -m4-pcbdir arguments work again.
[geda-gaf/peter-b.git] / docs / wiki / geda-suse_rpm_installation.html
blob51fa953453ea5b1c6640f8b4c2d16d52107a4a11
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html>
4 <head>
5 <title></title>
6 <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />
7 <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />
8 <link rel="stylesheet" media="print" type="text/css" href="./print.css" />
10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11 </head>
12 <body>
15 <h1 class="sectionedit1300"><a name="installing_geda_rpm_packages_on_suse" id="installing_geda_rpm_packages_on_suse">Installing gEDA rpm packages on SuSE</a></h1>
16 <div class="level1">
18 </div>
19 <!-- EDIT1300 SECTION "Installing gEDA rpm packages on SuSE" [1-54] -->
20 <h2 class="sectionedit1301"><a name="available_rpm_packages" id="available_rpm_packages">Available rpm packages</a></h2>
21 <div class="level2">
22 <ul>
23 <li class="level1"><div class="li"> geda (1.6.1)</div>
24 </li>
25 <li class="level1"><div class="li"> gerbv (2.3.0)</div>
26 </li>
27 <li class="level1"><div class="li"> pcb (20091103)</div>
28 </li>
29 <li class="level1"><div class="li"> ng-spice-rework (20)</div>
30 </li>
31 <li class="level1"><div class="li"> gnucap (0.35)</div>
32 </li>
33 <li class="level1"><div class="li"> gspiceui (0.9.98)</div>
34 </li>
35 <li class="level1"><div class="li"> gwave (20090213)</div>
36 </li>
37 <li class="level1"><div class="li"> gtkwave (3.3.3)</div>
38 </li>
39 <li class="level1"><div class="li"> dinotrace (9.4a)</div>
40 </li>
41 <li class="level1"><div class="li"> verilog (0.9.1)</div>
42 </li>
43 <li class="level1"><div class="li"> wcalc (1.1)</div>
44 </li>
45 <li class="level1"><div class="li"> xgsch2pcb (0.1.3)</div>
46 </li>
47 <li class="level1"><div class="li"> electronics-menu (1.0)</div>
48 </li>
49 </ul>
51 </div>
52 <!-- EDIT1301 SECTION "Available rpm packages" [55-359] -->
53 <h2 class="sectionedit1302"><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>
54 <div class="level2">
55 <ol>
56 <li class="level1"><div class="li"> Start Yast and go to “Change Installation Source”</div>
57 </li>
58 <li class="level1"><div class="li"> Add a <acronym title="Hyper Text Transfer Protocol">HTTP</acronym> source with the following properties: </div>
59 <ul>
60 <li class="level3"><div class="li"> <strong>Servername:</strong> software.opensuse.org</div>
61 </li>
62 <li class="level3"><div class="li"> <strong>Directory:</strong> /download/repositories/science/openSUSE_11.0/ </div>
63 </li>
64 </ul>
65 </li>
66 </ol>
68 <p>
69 (Choose the directory for your distribution)
70 </p>
71 <ol>
72 <li class="level1"><div class="li"> Start “Install Software” in Yast, goto “Search” and look for gEDA. All packages appear.</div>
73 </li>
74 <li class="level1"><div class="li"> Install the packages as usuall.</div>
75 </li>
76 </ol>
78 <p>
80 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>
81 </p>
83 <p>
84 You can also browse through repositories first:
85 <a href="http://software.opensuse.org/download/science/openSUSE_11.0/repodata/" class="urlextern" title="http://software.opensuse.org/download/science/openSUSE_11.0/repodata/" rel="nofollow"> openSUSE_11.0 repo</a>,
86 <a href="http://software.opensuse.org/download/science/openSUSE_11.1/repodata/" class="urlextern" title="http://software.opensuse.org/download/science/openSUSE_11.1/repodata/" rel="nofollow"> openSUSE_11.1 repo</a>.
87 <a href="http://software.opensuse.org/download/science/openSUSE_11.2/repodata/" class="urlextern" title="http://software.opensuse.org/download/science/openSUSE_11.2/repodata/" rel="nofollow"> openSUSE_11.2 repo</a>.
88 </p>
90 </div>
91 <!-- EDIT1302 SECTION "Installing Packages from the SuSE Build Service" [360-1361] -->
92 <h2 class="sectionedit1303"><a name="distribution_specific_notes" id="distribution_specific_notes">Distribution specific notes</a></h2>
93 <div class="level2">
95 <p>
97 Each distribution version has it&#039;s own issues. Please read the notes below.
98 </p>
100 </div>
101 <!-- EDIT1303 SECTION "Distribution specific notes" [1362-1479] -->
102 <h3 class="sectionedit1304"><a name="opensuse_110" id="opensuse_110">openSUSE 11.0</a></h3>
103 <div class="level3">
104 <ul>
105 <li class="level1"><div class="li"></div>
106 </li>
107 </ul>
109 </div>
110 <!-- EDIT1304 SECTION "openSUSE 11.0" [1480-1512] -->
111 <h3 class="sectionedit1305"><a name="opensuse_111" id="opensuse_111">openSUSE 11.1</a></h3>
112 <div class="level3">
113 <ul>
114 <li class="level1"><div class="li"> currently no electronics menu, all programs show up in the Education→Science menu</div>
115 </li>
116 <li class="level1"><div class="li"></div>
117 </li>
118 </ul>
120 </div>
121 <!-- EDIT1305 SECTION "openSUSE 11.1" [1513-1632] -->
122 <h3 class="sectionedit1306"><a name="opensuse_112" id="opensuse_112">openSUSE 11.2</a></h3>
123 <div class="level3">
124 <ul>
125 <li class="level1"><div class="li"> currently no electronics menu, all programs show up in the Education→Science menu</div>
126 </li>
127 <li class="level1"><div class="li"></div>
128 </li>
129 </ul>
131 </div>
132 <!-- EDIT1306 SECTION "openSUSE 11.2" [1633-1752] -->
133 <h2 class="sectionedit1307"><a name="desktop_integration" id="desktop_integration">Desktop Integration</a></h2>
134 <div class="level2">
137 This is a summary how the gEDA and other electronic packages are integrated into the desktop of openSUSE.
138 </p>
140 </div>
141 <!-- EDIT1307 SECTION "Desktop Integration" [1753-1892] -->
142 <h3 class="sectionedit1308"><a name="electronics_menu" id="electronics_menu">Electronics Menu</a></h3>
143 <div class="level3">
146 Unfortunatly the openSUSE distribution does not provide a electronics menu entry for all the nice gEDA programms.
147 Peter Clifton has created a menu entry for electronics. This menu package is available in the <strong>electronics-menu</strong> rpm.
148 It contains the menu item and some icons for it. The menu categorie is called <strong>Edutainment–&gt;Electronics</strong> in openSUSE.
149 </p>
152 If it is installed, it looks like this in KDE (manually combined with gimp):
153 </p>
156 <a href="media/geda/suse_electronics_menu.png" class="media" target="_blank" title="geda:suse_electronics_menu.png"><img src="media/geda/suse_electronics_menu.png" class="media" alt="" /></a>
157 </p>
159 </div>
160 <!-- EDIT1308 SECTION "Electronics Menu" [1893-2393] -->
161 <h3 class="sectionedit1309"><a name="notes_about_rpm_spec_file" id="notes_about_rpm_spec_file">Notes about rpm spec file</a></h3>
162 <div class="level3">
165 openSUSE calls it&#039;s <em>SuSEconfig</em> program after every installation of rpm packages with YaST.
166 Thus it&#039;s not necessary to integrate all configuration calls into the <em>post</em> and <em>postun</em> rpm sections.
167 </p>
170 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>
171 article.
173 </p>
174 <pre class="code">PreReq: shared-mime-info
175 [...]</pre>
176 <pre class="code">%post
177 if test -f %{_bindir}/update-mime-database ; then
178 %{_bindir}/update-mime-database %{_datadir}/mime &gt;/dev/null
179 fi</pre>
180 <pre class="code">%postun
181 if test -f %{_bindir}/update-mime-database ; then
182 %{_bindir}/update-mime-database %{_datadir}/mime &gt;/dev/null
183 fi</pre>
187 Another addition is required to install the mimelnks properly in the KDE environment.
188 KDE does not take care of the mimelnks installed in <em>/usr/share/mimelnk</em>/, thus they have to be copied to
189 the KDE directory <em>/opt/kde3/mimelnk</em>/. This is done in the rpm <acronym title="specification">spec</acronym> file inside the %install section
191 </p>
192 <pre class="code">%install
193 %makeinstall
194 kdemimedir=$(kde-config --install mime)
195 if test %{_datadir} != $kdemimedir ; then
196 mkdir -p $RPM_BUILD_ROOT$kdemimedir
197 mv $RPM_BUILD_ROOT%{_datadir}/mimelnk/* $RPM_BUILD_ROOT$kdemimedir
198 rmdir $RPM_BUILD_ROOT%{_datadir}/mimelnk
199 fi</pre>
201 </div>
202 <!-- EDIT1309 SECTION "Notes about rpm spec file" [2394-3783] -->
203 <h3 class="sectionedit1310"><a name="installing_rpm_packages_manually" id="installing_rpm_packages_manually">Installing rpm packages manually</a></h3>
204 <div class="level3">
207 For those who don&#039;t use YaST for installation the SuSEconfig command has to be executed manually after installing or removing any rpm package.
208 You can either call the toplevel SuSEconfig command
210 </p>
211 <pre class="code">/sbin/SuSEconfig </pre>
215 or call only the two required subconfiguration tools
217 </p>
218 <pre class="code">/sbin/conf.d/SuSEconfig.desktop-file-utils </pre>
222 which calls
224 </p>
225 <pre class="code">/usr/bin/update-desktop-database</pre>
229 and
231 </p>
232 <pre class="code">/sbin/conf.d/SuSEconfig.gtk2</pre>
236 which calls
238 </p>
239 <pre class="code">/usr/bin/gtk-update-icon-cache --quiet --ignore-theme-index --remove-empty-cache &quot;$SUBDIR&quot;</pre>
241 </div>
242 <!-- EDIT1310 SECTION "Installing rpm packages manually" [3784-] --></body>
243 </html>