1 |
%define Werror_cflags %nil |
2 |
|
3 |
# To create source package: |
4 |
# bzr branch lp:kicad/stable |
5 |
# |
6 |
# You can get the date by querying: |
7 |
# $ bzr log -r-1 --line stable/ |
8 |
# 3009: jean-pierre charras 2011-05-25 Libedit: actual line thickness taken in account by collector. Thick lines are now more easy t... |
9 |
# |
10 |
# $ bzr export --format=tbz2 --root=kicad kicad-sources-bzr$(bzr revno stable/).tar.bz2 stable/ |
11 |
|
12 |
# For library, |
13 |
# See http://iut-tice.ujf-grenoble.fr/cao/how_to_download_sources.txt |
14 |
# bzr branch lp:~kicad-lib-committers/kicad/library |
15 |
# |
16 |
# You can get the date by querying: |
17 |
# $ bzr log -r-1 --line library/ |
18 |
# 109: xtony 2010-12-08 Add various modules. |
19 |
# |
20 |
# $ bzr export --format=tbz2 --root=kicad-library kicad-library-bzr$(bzr revno library/).tar.bz2 library/ |
21 |
|
22 |
# For doc, |
23 |
# See http://iut-tice.ujf-grenoble.fr/cao/how_to_download_sources.txt |
24 |
# bzr branch lp:~kicad-developers/kicad/doc |
25 |
# |
26 |
# You can get the date by querying: |
27 |
# $ bzr log -r-1 --line doc/ |
28 |
# 216: Andrey Fedorushkov 2011-06-02 update russian GUI |
29 |
|
30 |
%define name kicad |
31 |
%define date 20110525 |
32 |
%define revision 3009 |
33 |
%define version %{date}.bzr%{revision} |
34 |
|
35 |
%define docname kicad-doc |
36 |
%define docdate 20110602 |
37 |
%define docrevision 216 |
38 |
%define docversion %{docdate}.bzr%{docrevision} |
39 |
|
40 |
%define libname kicad-library |
41 |
%define libdate 20101208 |
42 |
%define librevision 109 |
43 |
%define libversion %{libdate}.bzr%{librevision} |
44 |
|
45 |
%define release %mkrel 7 |
46 |
|
47 |
Name: %{name} |
48 |
Summary: An open source software for the creation of electronic schematic diagrams |
49 |
Version: %{version} |
50 |
Release: %{release} |
51 |
Source0: %{name}-sources-bzr%{revision}.tar.bz2 |
52 |
Source1: %{docname}-bzr%{docrevision}.tar.bz2 |
53 |
Source2: %{libname}-bzr%{librevision}.tar.bz2 |
54 |
License: GPLv2+ |
55 |
Group: Sciences/Computer science |
56 |
Url: http://www.lis.inpg.fr/realise_au_lis/kicad/ |
57 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
58 |
BuildRequires: wxGTK-devel >= 2.6 |
59 |
BuildRequires: mesa-common-devel |
60 |
BuildRequires: imagemagick |
61 |
BuildRequires: boost-devel |
62 |
BuildRequires: cmake |
63 |
BuildRequires: desktop-file-utils |
64 |
Requires: %{libname} = %{libversion}-%{release} |
65 |
Requires: %{docname} = %{docversion}-%{release} |
66 |
Suggests: %{name}-locale |
67 |
|
68 |
%description |
69 |
Kicad is an open source (GPL) software for the creation of electronic |
70 |
schematic diagrams and printed circuit board artwork. |
71 |
|
72 |
Kicad is a set of four softwares and a project manager: |
73 |
|
74 |
Eeschema : Schematic entry. |
75 |
Pcbnew : Board editor. |
76 |
Gerbview : GERBER viewer (photoplotter documents). |
77 |
Cvpcb : footprint selector for components used in the circuit design. |
78 |
Kicad: project manager. |
79 |
|
80 |
%package doc |
81 |
Summary: Documentation for kicad (creation of electronic schematic diagrams) |
82 |
Version: %{docversion} |
83 |
Release: %{release} |
84 |
License: GPL |
85 |
Requires: %{name} |
86 |
BuildArch: noarch |
87 |
|
88 |
%description doc |
89 |
Kicad is an open source (GPL) software for the creation of electronic |
90 |
schematic diagrams and printed circuit board artwork. |
91 |
|
92 |
Kicad-doc is the documentation for kicad. |
93 |
|
94 |
%package locales-ca |
95 |
Summary: Catalan Kicad locales |
96 |
Version: %{docversion} |
97 |
Release: %{release} |
98 |
License: GPL |
99 |
Requires: %{name} |
100 |
Provides: %{name}-locale |
101 |
BuildArch: noarch |
102 |
|
103 |
%description locales-ca |
104 |
Kicad is an open source (GPL) software for the creation of electronic |
105 |
schematic diagrams and printed circuit board artwork. |
106 |
|
107 |
Kicad-locales provides Catalan locales for kicad. |
108 |
|
109 |
%package locales-cs |
110 |
Summary: Czech Kicad locales |
111 |
Version: %{docversion} |
112 |
Release: %{release} |
113 |
License: GPL |
114 |
Requires: %{name} |
115 |
Provides: %{name}-locale |
116 |
BuildArch: noarch |
117 |
|
118 |
%description locales-cs |
119 |
Kicad is an open source (GPL) software for the creation of electronic |
120 |
schematic diagrams and printed circuit board artwork. |
121 |
|
122 |
Kicad-locales provides Czech locales for kicad. |
123 |
|
124 |
%package locales-de |
125 |
Summary: German Kicad locales |
126 |
Version: %{docversion} |
127 |
Release: %{release} |
128 |
License: GPL |
129 |
Requires: %{name} |
130 |
Provides: %{name}-locale |
131 |
BuildArch: noarch |
132 |
|
133 |
%description locales-de |
134 |
Kicad is an open source (GPL) software for the creation of electronic |
135 |
schematic diagrams and printed circuit board artwork. |
136 |
|
137 |
Kicad-locales provides German locales for kicad. |
138 |
|
139 |
%package locales-es |
140 |
Summary: Spanish Kicad locales |
141 |
Version: %{docversion} |
142 |
Release: %{release} |
143 |
License: GPL |
144 |
Requires: %{name} |
145 |
Provides: %{name}-locale |
146 |
BuildArch: noarch |
147 |
|
148 |
%description locales-es |
149 |
Kicad is an open source (GPL) software for the creation of electronic |
150 |
schematic diagrams and printed circuit board artwork. |
151 |
|
152 |
Kicad-locales provides Spanish locales for kicad. |
153 |
|
154 |
%package locales-fi |
155 |
Summary: Finnish Kicad locales |
156 |
Version: %{docversion} |
157 |
Release: %{release} |
158 |
License: GPL |
159 |
Requires: %{name} |
160 |
Provides: %{name}-locale |
161 |
BuildArch: noarch |
162 |
|
163 |
%description locales-fi |
164 |
Kicad is an open source (GPL) software for the creation of electronic |
165 |
schematic diagrams and printed circuit board artwork. |
166 |
|
167 |
Kicad-locales provides Finnish locales for kicad. |
168 |
|
169 |
%package locales-fr |
170 |
Summary: French Kicad locales |
171 |
Version: %{docversion} |
172 |
Release: %{release} |
173 |
License: GPL |
174 |
Requires: %{name} |
175 |
Provides: %{name}-locale |
176 |
BuildArch: noarch |
177 |
|
178 |
%description locales-fr |
179 |
Kicad is an open source (GPL) software for the creation of electronic |
180 |
schematic diagrams and printed circuit board artwork. |
181 |
|
182 |
Kicad-locales provides French locales for kicad. |
183 |
|
184 |
%package locales-hu |
185 |
Summary: Hungarian Kicad locales |
186 |
Version: %{docversion} |
187 |
Release: %{release} |
188 |
License: GPL |
189 |
Requires: %{name} |
190 |
Provides: %{name}-locale |
191 |
BuildArch: noarch |
192 |
|
193 |
%description locales-hu |
194 |
Kicad is an open source (GPL) software for the creation of electronic |
195 |
schematic diagrams and printed circuit board artwork. |
196 |
|
197 |
Kicad-locales provides Hungarian locales for kicad. |
198 |
|
199 |
%package locales-it |
200 |
Summary: Italian Kicad locales |
201 |
Version: %{docversion} |
202 |
Release: %{release} |
203 |
License: GPL |
204 |
Requires: %{name} |
205 |
Provides: %{name}-locale |
206 |
BuildArch: noarch |
207 |
|
208 |
%description locales-it |
209 |
Kicad is an open source (GPL) software for the creation of electronic |
210 |
schematic diagrams and printed circuit board artwork. |
211 |
|
212 |
Kicad-locales provides Italian locales for kicad. |
213 |
|
214 |
%package locales-ja |
215 |
Summary: Japanese Kicad locales |
216 |
Version: %{docversion} |
217 |
Release: %{release} |
218 |
License: GPL |
219 |
Requires: %{name} |
220 |
Provides: %{name}-locale |
221 |
BuildArch: noarch |
222 |
|
223 |
%description locales-ja |
224 |
Kicad is an open source (GPL) software for the creation of electronic |
225 |
schematic diagrams and printed circuit board artwork. |
226 |
|
227 |
Kicad-locales provides Japanese locales for kicad. |
228 |
|
229 |
%package locales-ko |
230 |
Summary: Korean Kicad locales |
231 |
Version: %{docversion} |
232 |
Release: %{release} |
233 |
License: GPL |
234 |
Requires: %{name} |
235 |
Provides: %{name}-locale |
236 |
BuildArch: noarch |
237 |
|
238 |
%description locales-ko |
239 |
Kicad is an open source (GPL) software for the creation of electronic |
240 |
schematic diagrams and printed circuit board artwork. |
241 |
|
242 |
Kicad-locales provides Korean locales for kicad. |
243 |
|
244 |
%package locales-nl |
245 |
Summary: Dutch Kicad locales |
246 |
Version: %{docversion} |
247 |
Release: %{release} |
248 |
License: GPL |
249 |
Requires: %{name} |
250 |
Provides: %{name}-locale |
251 |
BuildArch: noarch |
252 |
|
253 |
%description locales-nl |
254 |
Kicad is an open source (GPL) software for the creation of electronic |
255 |
schematic diagrams and printed circuit board artwork. |
256 |
|
257 |
Kicad-locales provides Dutch locales for kicad. |
258 |
|
259 |
%package locales-pl |
260 |
Summary: Polish Kicad locales |
261 |
Version: %{docversion} |
262 |
Release: %{release} |
263 |
License: GPL |
264 |
Requires: %{name} |
265 |
Provides: %{name}-locale |
266 |
BuildArch: noarch |
267 |
|
268 |
%description locales-pl |
269 |
Kicad is an open source (GPL) software for the creation of electronic |
270 |
schematic diagrams and printed circuit board artwork. |
271 |
|
272 |
Kicad-locales provides Polish locales for kicad. |
273 |
|
274 |
%package locales-pt |
275 |
Summary: Portuguese Kicad locales |
276 |
Version: %{docversion} |
277 |
Release: %{release} |
278 |
License: GPL |
279 |
Requires: %{name} |
280 |
Provides: %{name}-locale |
281 |
BuildArch: noarch |
282 |
|
283 |
%description locales-pt |
284 |
Kicad is an open source (GPL) software for the creation of electronic |
285 |
schematic diagrams and printed circuit board artwork. |
286 |
|
287 |
Kicad-locales provides Portuguese locales for kicad. |
288 |
|
289 |
%package locales-ru |
290 |
Summary: Russian Kicad locales |
291 |
Version: %{docversion} |
292 |
Release: %{release} |
293 |
License: GPL |
294 |
Requires: %{name} |
295 |
Provides: %{name}-locale |
296 |
BuildArch: noarch |
297 |
|
298 |
%description locales-ru |
299 |
Kicad is an open source (GPL) software for the creation of electronic |
300 |
schematic diagrams and printed circuit board artwork. |
301 |
|
302 |
Kicad-locales provides Russian locales for kicad. |
303 |
|
304 |
%package locales-sl |
305 |
Summary: Slovenian Kicad locales |
306 |
Version: %{docversion} |
307 |
Release: %{release} |
308 |
License: GPL |
309 |
Requires: %{name} |
310 |
Provides: %{name}-locale |
311 |
BuildArch: noarch |
312 |
|
313 |
%description locales-sl |
314 |
Kicad is an open source (GPL) software for the creation of electronic |
315 |
schematic diagrams and printed circuit board artwork. |
316 |
|
317 |
Kicad-locales provides Slovenian locales for kicad. |
318 |
|
319 |
%package locales-sv |
320 |
Summary: Salvadoran Kicad locales |
321 |
Version: %{docversion} |
322 |
Release: %{release} |
323 |
License: GPL |
324 |
Requires: %{name} |
325 |
Provides: %{name}-locale |
326 |
BuildArch: noarch |
327 |
|
328 |
%description locales-sv |
329 |
Kicad is an open source (GPL) software for the creation of electronic |
330 |
schematic diagrams and printed circuit board artwork. |
331 |
|
332 |
Kicad-locales provides Salvadoran locales for kicad. |
333 |
|
334 |
%package locales-zh-cn |
335 |
Summary: Chinese Kicad locales |
336 |
Version: %{docversion} |
337 |
Release: %{release} |
338 |
License: GPL |
339 |
Requires: %{name} |
340 |
Provides: %{name}-locale |
341 |
BuildArch: noarch |
342 |
|
343 |
%description locales-zh-cn |
344 |
Kicad is an open source (GPL) software for the creation of electronic |
345 |
schematic diagrams and printed circuit board artwork. |
346 |
|
347 |
Kicad-locales provides Chinese locales for kicad. |
348 |
|
349 |
%package library |
350 |
Summary: Library for kicad (creation of electronic schematic diagrams) |
351 |
Version: %{libversion} |
352 |
Release: %{release} |
353 |
License: GPL |
354 |
Requires: %{name} |
355 |
BuildArch: noarch |
356 |
|
357 |
%description library |
358 |
Kicad is an open source (GPL) software for the creation of electronic |
359 |
schematic diagrams and printed circuit board artwork. |
360 |
|
361 |
Kicad-library is a set of library needed by kicad. |
362 |
|
363 |
%prep |
364 |
%setup -q -T -b 0 -n %{name} |
365 |
%setup -q -T -b 1 -n %{docname} |
366 |
%setup -q -T -b 2 -n %{libname} |
367 |
|
368 |
%build |
369 |
export LC_ALL=C |
370 |
cd ../ |
371 |
|
372 |
# Building kicad-doc |
373 |
pushd %{docname} |
374 |
%cmake \ |
375 |
-DKICAD_STABLE_VERSION:BOOL=ON \ |
376 |
-DCMAKE_BUILD_TYPE=Release |
377 |
%make |
378 |
popd |
379 |
|
380 |
# Building kicad-library |
381 |
pushd %{libname} |
382 |
%cmake \ |
383 |
-DKICAD_STABLE_VERSION:BOOL=ON \ |
384 |
-DCMAKE_BUILD_TYPE=Release |
385 |
%make |
386 |
popd |
387 |
|
388 |
# Building kicad |
389 |
pushd %{name} |
390 |
%cmake \ |
391 |
-DBUILD_SHARED_LIBS:BOOL=OFF \ |
392 |
-DKICAD_STABLE_VERSION:BOOL=ON \ |
393 |
-DCMAKE_BUILD_TYPE=Release |
394 |
%make |
395 |
popd |
396 |
|
397 |
%install |
398 |
rm -rf %{buildroot} |
399 |
|
400 |
cd ../ |
401 |
|
402 |
# Installing kicad-doc |
403 |
pushd %{docname} |
404 |
make -C build DESTDIR=%buildroot install |
405 |
popd |
406 |
|
407 |
# Installing kicad-library |
408 |
pushd %{libname} |
409 |
make -C build DESTDIR=%buildroot install |
410 |
popd |
411 |
|
412 |
# Installing kicad |
413 |
pushd %{name} |
414 |
make -C build DESTDIR=%buildroot install |
415 |
|
416 |
# create desktop file |
417 |
desktop-file-install --vendor='' \ |
418 |
--remove-category='Scientific' \ |
419 |
--add-category='Science;Electronics;Education' \ |
420 |
--dir=%buildroot%{_datadir}/applications \ |
421 |
%buildroot%{_datadir}/applications/*.desktop |
422 |
|
423 |
# create icons |
424 |
mkdir -p %{buildroot}%{_miconsdir} %{buildroot}%{_iconsdir} %{buildroot}%{_liconsdir} |
425 |
convert -resize 16x16 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{buildroot}%{_miconsdir}/%{name}.png |
426 |
convert -resize 32x32 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{buildroot}%{_iconsdir}/%{name}.png |
427 |
convert -resize 48x48 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{buildroot}%{_liconsdir}/%{name}.png |
428 |
popd |
429 |
|
430 |
%clean |
431 |
rm -rf %{buildroot} |
432 |
|
433 |
%files |
434 |
%defattr(-,root,root) |
435 |
%{_bindir}/* |
436 |
%{_prefix}/lib/%{name}/plugins/netlist_form_pads-pcb.xsl |
437 |
%{_iconsdir}/*/*/* |
438 |
%{_iconsdir}/%{name}.png |
439 |
%{_liconsdir}/%{name}.png |
440 |
%{_miconsdir}/%{name}.png |
441 |
%{_datadir}/%{name}/demos/ |
442 |
%{_datadir}/%{name}/template/ |
443 |
%{_datadir}/applications |
444 |
%{_datadir}/mime/packages/kicad.xml |
445 |
%{_datadir}/mimelnk/application/x-kicad-project.desktop |
446 |
%{_datadir}/mimelnk/application/x-kicad-schematic.desktop |
447 |
|
448 |
%files doc |
449 |
%defattr(-,root,root) |
450 |
%doc %{_datadir}/doc/%{name} |
451 |
|
452 |
%files locales-ca |
453 |
%defattr(-,root,root) |
454 |
%{_datadir}/%{name}/internat/ca/ |
455 |
|
456 |
%files locales-cs |
457 |
%defattr(-,root,root) |
458 |
%{_datadir}/%{name}/internat/cs/ |
459 |
|
460 |
%files locales-de |
461 |
%defattr(-,root,root) |
462 |
%{_datadir}/%{name}/internat/de/ |
463 |
|
464 |
%files locales-es |
465 |
%defattr(-,root,root) |
466 |
%{_datadir}/%{name}/internat/es/ |
467 |
|
468 |
%files locales-fi |
469 |
%defattr(-,root,root) |
470 |
%{_datadir}/%{name}/internat/fi/ |
471 |
|
472 |
%files locales-fr |
473 |
%defattr(-,root,root) |
474 |
%{_datadir}/%{name}/internat/fr/ |
475 |
|
476 |
%files locales-hu |
477 |
%defattr(-,root,root) |
478 |
%{_datadir}/%{name}/internat/hu/ |
479 |
|
480 |
%files locales-it |
481 |
%defattr(-,root,root) |
482 |
%{_datadir}/%{name}/internat/it/ |
483 |
|
484 |
%files locales-ja |
485 |
%defattr(-,root,root) |
486 |
%{_datadir}/%{name}/internat/ja/ |
487 |
|
488 |
%files locales-ko |
489 |
%defattr(-,root,root) |
490 |
%{_datadir}/%{name}/internat/ko/ |
491 |
|
492 |
%files locales-nl |
493 |
%defattr(-,root,root) |
494 |
%{_datadir}/%{name}/internat/nl/ |
495 |
|
496 |
%files locales-pl |
497 |
%defattr(-,root,root) |
498 |
%{_datadir}/%{name}/internat/pl/ |
499 |
|
500 |
%files locales-pt |
501 |
%defattr(-,root,root) |
502 |
%{_datadir}/%{name}/internat/pt/ |
503 |
|
504 |
%files locales-ru |
505 |
%defattr(-,root,root) |
506 |
%{_datadir}/%{name}/internat/ru/ |
507 |
|
508 |
%files locales-sl |
509 |
%defattr(-,root,root) |
510 |
%{_datadir}/%{name}/internat/sl |
511 |
|
512 |
%files locales-sv |
513 |
%defattr(-,root,root) |
514 |
%{_datadir}/%{name}/internat/sv/ |
515 |
|
516 |
%files locales-zh-cn |
517 |
%defattr(-,root,root) |
518 |
%{_datadir}/%{name}/internat/zh_CN/ |
519 |
|
520 |
%files library |
521 |
%defattr(-,root,root) |
522 |
%{_datadir}/%{name}/library |
523 |
%{_datadir}/%{name}/modules |
524 |
|
525 |
|