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