]>
Commit | Line | Data |
---|---|---|
74131d84 AM |
1 | # TODO: |
2 | # - fix mimelnk installation | |
3 | # | |
4b5aca64 | 4 | Summary: KiCad - is a GPL'd suite of programs for EDA |
34a5277b | 5 | Summary(pl.UTF-8): KiCad - zestaw programów na licencji GPL zaliczany do kategorii EDA |
4b5aca64 | 6 | Name: kicad |
84732aaf | 7 | Version: 5.1.0 |
296364aa | 8 | Release: 2 |
14ef21aa | 9 | Epoch: 1 |
22291059 | 10 | License: GPL v2+ |
34a5277b | 11 | Group: X11/Applications |
26c94a74 | 12 | Source0: https://launchpad.net/kicad/5.0/%{version}/+download/%{name}-%{version}.tar.xz |
84732aaf | 13 | # Source0-md5: 735cb4d87d3819bf309495746eb13792 |
c4549a7b | 14 | Source1: https://github.com/KiCad/kicad-doc/archive/%{version}/%{name}-doc-%{version}.tar.gz |
84732aaf | 15 | # Source1-md5: 47142ec31256c1dea25bcd6f4dcd7071 |
26c94a74 | 16 | Source2: https://github.com/KiCad/kicad-i18n/archive/%{version}/%{name}-i18n-%{version}.tar.gz |
84732aaf | 17 | # Source2-md5: c1e8fdd7bf4d1377f7ee0968fb5ab1d6 |
26c94a74 | 18 | Source3: https://github.com/KiCad/kicad-symbols/archive/%{version}/%{name}-symbols-%{version}.tar.gz |
84732aaf | 19 | # Source3-md5: f78847a49329c9d8bfd4f5aac7dc36b1 |
26c94a74 | 20 | Source4: https://github.com/KiCad/kicad-footprints/archive/%{version}/%{name}-footprints-%{version}.tar.gz |
84732aaf | 21 | # Source4-md5: cbdc858a0657878df24cec5eb0ab64a0 |
26c94a74 | 22 | Source5: https://github.com/KiCad/kicad-packages3D/archive/%{version}/%{name}-packages3D-%{version}.tar.gz |
84732aaf | 23 | # Source5-md5: dde395e19f69881930a8820a922f239a |
26c94a74 | 24 | Source6: https://github.com/KiCad/kicad-templates/archive/%{version}/%{name}-templates-%{version}.tar.gz |
84732aaf | 25 | # Source6-md5: 451fc7de145ff122f1de08dfcef368d6 |
c4549a7b | 26 | Patch0: nostrip.patch |
26c94a74 | 27 | Patch1: lto.patch |
74131d84 | 28 | URL: http://www.kicad-pcb.org/ |
84732aaf | 29 | BuildRequires: GLM >= 0.9.9.4 |
26c94a74 | 30 | BuildRequires: OCE-devel |
c4549a7b JR |
31 | BuildRequires: appstream-glib |
32 | BuildRequires: asciidoc | |
254fbc44 | 33 | BuildRequires: boost-devel |
b3e6c3ec | 34 | BuildRequires: cmake >= 2.6.4 |
c4549a7b JR |
35 | BuildRequires: curl-devel |
36 | BuildRequires: dblatex | |
37 | BuildRequires: desktop-file-utils | |
38 | BuildRequires: doxygen | |
39 | BuildRequires: glew-devel | |
26c94a74 | 40 | BuildRequires: ngspice-devel |
c4549a7b JR |
41 | BuildRequires: openssl-devel |
42 | BuildRequires: perl-Unicode-LineBreak | |
43 | BuildRequires: po4a >= 0.51 | |
dc404520 | 44 | BuildRequires: python-wxPython-devel |
22291059 | 45 | BuildRequires: rpmbuild(macros) >= 1.600 |
34a5277b | 46 | BuildRequires: sed >= 4.0 |
254fbc44 | 47 | BuildRequires: which |
c4549a7b | 48 | BuildRequires: wxGTK2-unicode-devel >= 3.0.0 |
7e103374 AM |
49 | BuildRequires: wxGTK2-unicode-gl-devel >= 3.0.0 |
50 | BuildRequires: wxWidgets-devel >= 3.0.0 | |
b3e6c3ec | 51 | BuildRequires: zlib-devel |
14ef21aa JR |
52 | Obsoletes: kicad-doc-hu < 1:4.0.6-1 |
53 | Obsoletes: kicad-doc-pt < 1:4.0.6-1 | |
54 | Obsoletes: kicad-doc-zh_CN < 1:4.0.6-1 | |
4b5aca64 | 55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56 | ||
57 | %description | |
58 | KiCad consists of a project manager and four main programs: | |
59 | - kicad - the project manager. | |
60 | - eeschema - the schematic editor. | |
61 | - cvpcb - the footprint selector for components used in the circuit | |
62 | design. | |
63 | - pcbnew - the PCB layout program. | |
64 | - gerbview - the Gerber (photoplotter documents) viewer. | |
65 | ||
66 | %description -l pl.UTF-8 | |
22291059 | 67 | KiCad składa się z menadżera projektów oraz czterech głównych |
4b5aca64 | 68 | programów: |
69 | - kicad - menadżer projektów. | |
70 | - eeschema - edytor schematów. | |
34a5277b JB |
71 | - cvpcb - narzędzie do wybierania elementów używanych przy |
72 | projektowaniu płytek drukowanych. | |
73 | - pcbnew - program do projektowania płytek drukowanych. | |
74 | - gerbview - przeglądarka plików Gerber (dokumentów dla fotoplotera). | |
4b5aca64 | 75 | |
26c94a74 BS |
76 | %package library |
77 | Summary: Symbols, footprints and templates for kicad | |
78 | Summary(pl.UTF-8): Symbole, obudowy i wzorce dla kicad | |
79 | %if "%{_rpmversion}" >= "5" | |
80 | BuildArch: noarch | |
81 | %endif | |
82 | Requires: kicad >= 1:5.0.0 | |
83 | ||
84 | %description library | |
85 | Symbols, footprints and templates for kicad. | |
86 | ||
87 | %description -l pl.UTF-8 | |
88 | Symbole, obudowy i wzorce dla kicad. | |
89 | ||
90 | %package packages3D | |
91 | Summary: Packages3D for kicad | |
92 | Summary(pl.UTF-8): Trójwymiarowe modele obudów dla kicad | |
93 | %if "%{_rpmversion}" >= "5" | |
94 | BuildArch: noarch | |
95 | %endif | |
96 | Requires: kicad >= 1:5.0.0 | |
97 | ||
98 | %description packages3D | |
99 | Packages3D for kicad | |
100 | ||
101 | %description -l pl.UTF-8 | |
102 | Trójwymiarowe modele obudów dla kicad. | |
103 | ||
88bfc3ad ER |
104 | %package doc |
105 | Summary: Documentation for kicad | |
106 | Summary(fr.UTF-8): Documentations pour kicad en anglais | |
107 | License: GPL v2+ | |
108 | Group: Documentation | |
109 | %if "%{_rpmversion}" >= "5" | |
110 | BuildArch: noarch | |
111 | %endif | |
112 | ||
113 | %description doc | |
114 | Documentation and tutorials for kicad in English | |
115 | ||
c4549a7b | 116 | %package doc-ca |
0af3e185 | 117 | Summary: Documentation for Kicad in Catalan |
c4549a7b | 118 | Group: Documentation |
d2529fc6 | 119 | Requires: %{name}-doc = %{epoch}:%{version}-%{release} |
c4549a7b JR |
120 | %if "%{_rpmversion}" >= "5" |
121 | BuildArch: noarch | |
122 | %endif | |
123 | ||
124 | %description doc-ca | |
0af3e185 | 125 | Documentation and tutorials for Kicad in Catalan. |
c4549a7b | 126 | |
88bfc3ad ER |
127 | %package doc-de |
128 | Summary: Documentation for Kicad in German | |
129 | Summary(fr.UTF-8): Documentations pour kicad en allemand | |
130 | Group: Documentation | |
d2529fc6 | 131 | Requires: %{name}-doc = %{epoch}:%{version}-%{release} |
88bfc3ad ER |
132 | %if "%{_rpmversion}" >= "5" |
133 | BuildArch: noarch | |
134 | %endif | |
135 | ||
136 | %description doc-de | |
0af3e185 | 137 | Documentation and tutorials for Kicad in German. |
88bfc3ad ER |
138 | |
139 | %package doc-es | |
140 | Summary: Documentation for Kicad in Spanish | |
141 | Summary(fr.UTF-8): Documentations pour kicad en espagnol | |
142 | Group: Documentation | |
d2529fc6 | 143 | Requires: %{name}-doc = %{epoch}:%{version}-%{release} |
88bfc3ad ER |
144 | %if "%{_rpmversion}" >= "5" |
145 | BuildArch: noarch | |
146 | %endif | |
147 | ||
148 | %description doc-es | |
0af3e185 | 149 | Documentation and tutorials for Kicad in Spanish. |
88bfc3ad ER |
150 | |
151 | %package doc-fr | |
152 | Summary: Documentation for Kicad in French | |
153 | Summary(fr.UTF-8): Documentations pour kicad en français | |
154 | Group: Documentation | |
d2529fc6 | 155 | Requires: %{name}-doc = %{epoch}:%{version}-%{release} |
88bfc3ad ER |
156 | %if "%{_rpmversion}" >= "5" |
157 | BuildArch: noarch | |
158 | %endif | |
159 | ||
160 | %description doc-fr | |
0af3e185 | 161 | Documentation and tutorials for Kicad in French. |
88bfc3ad | 162 | |
c4549a7b | 163 | %package doc-id |
0af3e185 | 164 | Summary: Documentation for Kicad in Indonesian |
88bfc3ad | 165 | Group: Documentation |
d2529fc6 | 166 | Requires: %{name}-doc = %{epoch}:%{version}-%{release} |
88bfc3ad ER |
167 | %if "%{_rpmversion}" >= "5" |
168 | BuildArch: noarch | |
169 | %endif | |
170 | ||
c4549a7b | 171 | %description doc-id |
0af3e185 | 172 | Documentation and tutorials for Kicad in Indonesian. |
88bfc3ad ER |
173 | |
174 | %package doc-it | |
175 | Summary: Documentation for Kicad in Italian | |
176 | Summary(fr.UTF-8): Documentations pour kicad en italien | |
177 | Group: Documentation | |
d2529fc6 | 178 | Requires: %{name}-doc = %{epoch}:%{version}-%{release} |
88bfc3ad ER |
179 | %if "%{_rpmversion}" >= "5" |
180 | BuildArch: noarch | |
181 | %endif | |
182 | ||
183 | %description doc-it | |
0af3e185 | 184 | Documentation and tutorials for Kicad in Italian. |
88bfc3ad ER |
185 | |
186 | %package doc-ja | |
187 | Summary: Documentation for Kicad in Japanese | |
188 | Summary(fr.UTF-8): Documentations pour kicad en japonais | |
189 | Group: Documentation | |
d2529fc6 | 190 | Requires: %{name}-doc = %{epoch}:%{version}-%{release} |
88bfc3ad ER |
191 | %if "%{_rpmversion}" >= "5" |
192 | BuildArch: noarch | |
193 | %endif | |
194 | ||
195 | %description doc-ja | |
0af3e185 | 196 | Documentation and tutorials for Kicad in Japanese. |
88bfc3ad | 197 | |
c4549a7b JR |
198 | %package doc-pl |
199 | Summary: Documentation for Kicad in Polish | |
200 | Summary(fr.UTF-8): Documentations pour kicad en polonais | |
88bfc3ad | 201 | Group: Documentation |
d2529fc6 | 202 | Requires: %{name}-doc = %{epoch}:%{version}-%{release} |
88bfc3ad ER |
203 | %if "%{_rpmversion}" >= "5" |
204 | BuildArch: noarch | |
205 | %endif | |
206 | ||
c4549a7b | 207 | %description doc-pl |
0af3e185 | 208 | Documentation and tutorials for Kicad in Polish. |
88bfc3ad ER |
209 | |
210 | %package doc-ru | |
211 | Summary: Documentation for Kicad in Russian | |
212 | Summary(fr.UTF-8): Documentations pour kicad en russe | |
213 | Group: Documentation | |
d2529fc6 | 214 | Requires: %{name}-doc = %{epoch}:%{version}-%{release} |
88bfc3ad ER |
215 | %if "%{_rpmversion}" >= "5" |
216 | BuildArch: noarch | |
217 | %endif | |
218 | ||
219 | %description doc-ru | |
0af3e185 | 220 | Documentation and tutorials for Kicad in Russian. |
88bfc3ad | 221 | |
26c94a74 BS |
222 | %package doc-zh |
223 | Summary: Documentation for Kicad in Chinese | |
224 | Summary(fr.UTF-8): Documentations pour kicad en chinois | |
225 | Group: Documentation | |
226 | Requires: %{name}-doc = %{epoch}:%{version}-%{release} | |
227 | %if "%{_rpmversion}" >= "5" | |
228 | BuildArch: noarch | |
229 | %endif | |
230 | ||
231 | %description doc-zh | |
232 | Documentation and tutorials for Kicad in Chinese. | |
233 | ||
4b5aca64 | 234 | %prep |
26c94a74 | 235 | %setup -q -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 |
7e103374 | 236 | %patch0 -p1 |
c4549a7b | 237 | %patch1 -p1 |
c7773671 | 238 | |
4b5aca64 | 239 | %build |
26c94a74 BS |
240 | |
241 | build_library() { | |
242 | mkdir "$1/build" | |
243 | cd "$1/build" | |
244 | %cmake .. | |
245 | %{__make} VERBOSE=1 | |
246 | cd ../.. | |
247 | } | |
c4549a7b | 248 | # Symbols libraries |
26c94a74 BS |
249 | build_library %{name}-symbols-%{version} |
250 | build_library %{name}-footprints-%{version} | |
251 | build_library %{name}-templates-%{version} | |
252 | build_library %{name}-packages3D-%{version} | |
74131d84 | 253 | |
c4549a7b | 254 | # Documentation |
ed1b91c8 JR |
255 | mkdir %{name}-doc-%{version}/build |
256 | cd %{name}-doc-%{version}/build | |
257 | %cmake .. \ | |
258 | -DBUILD_FORMATS=html | |
1046b699 | 259 | %{__make} VERBOSE=1 |
ed1b91c8 | 260 | cd ../.. |
7e103374 | 261 | |
c4549a7b JR |
262 | # Translations |
263 | mkdir %{name}-i18n-%{version}/build | |
264 | cd %{name}-i18n-%{version}/build | |
265 | %cmake .. \ | |
266 | -DKICAD_I18N_UNIX_STRICT_PATH=ON | |
1046b699 | 267 | %{__make} VERBOSE=1 |
74131d84 AM |
268 | cd ../.. |
269 | ||
7e103374 | 270 | # Core components |
ed1b91c8 JR |
271 | mkdir build |
272 | cd build | |
273 | %cmake .. \ | |
c4549a7b JR |
274 | -DKICAD_SKIP_BOOST=ON \ |
275 | -DKICAD_BUILD_VERSION="%{version}-%{release}" \ | |
26c94a74 BS |
276 | -DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/wx-gtk2-unicode-config \ |
277 | -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON -DKICAD_SCRIPTING_WXPYTHON=ON | |
c4549a7b JR |
278 | |
279 | %{__make} VERBOSE=1 | |
4b5aca64 | 280 | |
281 | %install | |
282 | rm -rf $RPM_BUILD_ROOT | |
283 | ||
26c94a74 BS |
284 | install_library() { |
285 | %{__make} -C $1/build install \ | |
286 | DESTDIR=$RPM_BUILD_ROOT | |
287 | } | |
288 | ||
c4549a7b | 289 | # KiCAD itself |
ed1b91c8 | 290 | %{__make} -C build install \ |
c4549a7b JR |
291 | DESTDIR=$RPM_BUILD_ROOT |
292 | ||
293 | # Symbols libraries | |
26c94a74 BS |
294 | install_library %{name}-symbols-%{version} |
295 | install_library %{name}-footprints-%{version} | |
296 | install_library %{name}-templates-%{version} | |
297 | install_library %{name}-packages3D-%{version} | |
ed1b91c8 JR |
298 | |
299 | # Documentation | |
300 | %{__make} -C %{name}-doc-%{version}/build install \ | |
301 | DESTDIR=$RPM_BUILD_ROOT | |
302 | ||
303 | # Translations | |
304 | %{__make} -C %{name}-i18n-%{version}/build install \ | |
c4549a7b | 305 | DESTDIR=$RPM_BUILD_ROOT |
74131d84 | 306 | |
74131d84 AM |
307 | %find_lang %{name} |
308 | ||
309 | %post | |
26c94a74 | 310 | /sbin/ldconfig |
74131d84 AM |
311 | %update_mime_database |
312 | %update_desktop_database_post | |
313 | %update_icon_cache hicolor | |
2a9578af | 314 | |
74131d84 | 315 | %postun |
26c94a74 | 316 | /sbin/ldconfig |
74131d84 AM |
317 | %update_mime_database |
318 | %update_desktop_database_postun | |
319 | %update_icon_cache hicolor | |
7a3fb9b5 | 320 | |
4b5aca64 | 321 | %clean |
322 | rm -rf $RPM_BUILD_ROOT | |
323 | ||
74131d84 | 324 | %files -f %{name}.lang |
4b5aca64 | 325 | %defattr(644,root,root,755) |
26c94a74 | 326 | %doc AUTHORS.txt Documentation |
74131d84 | 327 | %attr(755,root,root) %{_bindir}/bitmap2component |
c4549a7b JR |
328 | %attr(755,root,root) %{_bindir}/_cvpcb.kiface |
329 | %attr(755,root,root) %{_bindir}/dxf2idf | |
2d418e55 | 330 | %attr(755,root,root) %{_bindir}/eeschema |
c4549a7b | 331 | %attr(755,root,root) %{_bindir}/_eeschema.kiface |
2d418e55 | 332 | %attr(755,root,root) %{_bindir}/gerbview |
c4549a7b JR |
333 | %attr(755,root,root) %{_bindir}/_gerbview.kiface |
334 | %attr(755,root,root) %{_bindir}/idf2vrml | |
335 | %attr(755,root,root) %{_bindir}/idfcyl | |
336 | %attr(755,root,root) %{_bindir}/idfrect | |
74131d84 | 337 | %attr(755,root,root) %{_bindir}/kicad |
26c94a74 BS |
338 | %attr(755,root,root) %{_bindir}/kicad-ogltest |
339 | %attr(755,root,root) %{_bindir}/kicad2step | |
74131d84 | 340 | %attr(755,root,root) %{_bindir}/pcb_calculator |
c4549a7b | 341 | %attr(755,root,root) %{_bindir}/_pcb_calculator.kiface |
74131d84 | 342 | %attr(755,root,root) %{_bindir}/pcbnew |
c4549a7b JR |
343 | %attr(755,root,root) %{_bindir}/_pcbnew.kiface |
344 | %attr(755,root,root) %{_bindir}/pl_editor | |
345 | %attr(755,root,root) %{_bindir}/_pl_editor.kiface | |
26c94a74 BS |
346 | %attr(755,root,root) %{_libdir}/libkicad_3dsg.so.*.*.* |
347 | %ghost %{_libdir}/libkicad_3dsg.so | |
7a3fb9b5 ŁK |
348 | %dir %{_libdir}/%{name} |
349 | %dir %{_libdir}/%{name}/plugins | |
26c94a74 BS |
350 | %dir %{_libdir}/%{name}/plugins/3d |
351 | %attr(755,root,root) %{_libdir}/%{name}/plugins/3d/*.so | |
352 | #python - to subpackage? | |
353 | %attr(755,root,root) %{_libdir}/python2.7/site-packages/_pcbnew.so | |
354 | %{_libdir}/python2.7/site-packages/pcbnew.py | |
355 | %dir %{_datadir}/%{name} | |
356 | %{_datadir}/%{name}/demos | |
357 | %{_datadir}/%{name}/plugins | |
358 | %{_datadir}/%{name}/scripting | |
359 | %dir %{_datadir}/%{name}/library | |
360 | %dir %{_datadir}/%{name}/modules | |
361 | %dir %{_datadir}/%{name}/modules/packages3d | |
362 | %dir %{_datadir}/%{name}/template | |
74131d84 AM |
363 | %{_iconsdir}/hicolor/*x*/*/*.png |
364 | %{_iconsdir}/hicolor/scalable/*/*.svg | |
26c94a74 | 365 | %{_datadir}/mime/packages/kicad-*.xml |
c4549a7b JR |
366 | %{_datadir}/appdata/kicad.appdata.xml |
367 | %{_desktopdir}/eeschema.desktop | |
368 | %{_desktopdir}/%{name}.desktop | |
369 | %{_desktopdir}/bitmap2component.desktop | |
c4549a7b JR |
370 | %{_desktopdir}/gerbview.desktop |
371 | %{_desktopdir}/pcbcalculator.desktop | |
372 | %{_desktopdir}/pcbnew.desktop | |
373 | #%{_datadir}/mimelnk/application/x-kicad-pcb.desktop | |
374 | #%{_datadir}/mimelnk/application/x-kicad-project.desktop | |
375 | #%{_datadir}/mimelnk/application/x-kicad-schematic.desktop | |
88bfc3ad ER |
376 | |
377 | %dir %{_docdir}/%{name} | |
26c94a74 BS |
378 | |
379 | %files library | |
380 | %defattr(644,root,root,755) | |
381 | %{_datadir}/%{name}/library/* | |
382 | %{_datadir}/%{name}/modules/*.pretty | |
383 | %{_datadir}/%{name}/template/* | |
384 | ||
385 | %files packages3D | |
386 | %defattr(644,root,root,755) | |
387 | %{_datadir}/%{name}/modules/packages3d/* | |
88bfc3ad ER |
388 | |
389 | %files doc | |
390 | %defattr(644,root,root,755) | |
391 | %dir %{_docdir}/%{name} | |
88bfc3ad ER |
392 | %dir %{_docdir}/%{name}/help |
393 | %{_docdir}/%{name}/help/en | |
88bfc3ad ER |
394 | %{_docdir}/%{name}/scripts |
395 | ||
c4549a7b JR |
396 | %files doc-ca |
397 | %defattr(644,root,root,755) | |
398 | %lang(ca) %{_docdir}/%{name}/help/ca | |
399 | ||
88bfc3ad ER |
400 | %files doc-de |
401 | %defattr(644,root,root,755) | |
402 | %lang(de) %{_docdir}/%{name}/help/de | |
88bfc3ad ER |
403 | |
404 | %files doc-es | |
405 | %defattr(644,root,root,755) | |
406 | %lang(es) %{_docdir}/%{name}/help/es | |
88bfc3ad ER |
407 | |
408 | %files doc-fr | |
409 | %defattr(644,root,root,755) | |
410 | %lang(fr) %{_docdir}/%{name}/help/fr | |
88bfc3ad | 411 | |
c4549a7b | 412 | %files doc-id |
88bfc3ad | 413 | %defattr(644,root,root,755) |
c4549a7b | 414 | %lang(id) %{_docdir}/%{name}/help/id |
88bfc3ad ER |
415 | |
416 | %files doc-it | |
417 | %defattr(644,root,root,755) | |
418 | %lang(it) %{_docdir}/%{name}/help/it | |
88bfc3ad ER |
419 | |
420 | %files doc-ja | |
421 | %defattr(644,root,root,755) | |
422 | %lang(ja) %{_docdir}/%{name}/help/ja | |
88bfc3ad | 423 | |
c4549a7b | 424 | %files doc-pl |
88bfc3ad | 425 | %defattr(644,root,root,755) |
c4549a7b | 426 | %lang(pl) %{_docdir}/%{name}/help/pl |
88bfc3ad ER |
427 | |
428 | %files doc-ru | |
429 | %defattr(644,root,root,755) | |
430 | %lang(ru) %{_docdir}/%{name}/help/ru | |
26c94a74 BS |
431 | |
432 | %files doc-zh | |
433 | %defattr(644,root,root,755) | |
434 | %lang(zh) %{_docdir}/%{name}/help/zh |