/[packages]/backports/8/kicad/current/SPECS/kicad.spec
ViewVC logotype

Annotation of /backports/8/kicad/current/SPECS/kicad.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 166800 - (hide annotations) (download)
Fri Nov 11 19:31:47 2011 UTC (12 years, 5 months ago) by mcb30
Original Path: cauldron/kicad/current/SPECS/kicad.spec
File size: 13059 byte(s)
Remove specfile cruft

1 mcb30 166798 %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     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) software for the creation of electronic
69     schematic diagrams and printed circuit board artwork.
70    
71     Kicad is a set of four softwares 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) software 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     Provides: %{name}-locale
100     BuildArch: noarch
101    
102     %description locales-ca
103     Kicad is an open source (GPL) software for the creation of electronic
104     schematic diagrams and printed circuit board artwork.
105    
106     Kicad-locales provides Catalan locales for kicad.
107    
108     %package locales-cs
109     Summary: Czech Kicad locales
110     Version: %{docversion}
111     Release: %{release}
112     License: GPL
113     Requires: %{name}
114     Provides: %{name}-locale
115     BuildArch: noarch
116    
117     %description locales-cs
118     Kicad is an open source (GPL) software for the creation of electronic
119     schematic diagrams and printed circuit board artwork.
120    
121     Kicad-locales provides Czech locales for kicad.
122    
123     %package locales-de
124     Summary: German Kicad locales
125     Version: %{docversion}
126     Release: %{release}
127     License: GPL
128     Requires: %{name}
129     Provides: %{name}-locale
130     BuildArch: noarch
131    
132     %description locales-de
133     Kicad is an open source (GPL) software for the creation of electronic
134     schematic diagrams and printed circuit board artwork.
135    
136     Kicad-locales provides German locales for kicad.
137    
138     %package locales-es
139     Summary: Spanish Kicad locales
140     Version: %{docversion}
141     Release: %{release}
142     License: GPL
143     Requires: %{name}
144     Provides: %{name}-locale
145     BuildArch: noarch
146    
147     %description locales-es
148     Kicad is an open source (GPL) software for the creation of electronic
149     schematic diagrams and printed circuit board artwork.
150    
151     Kicad-locales provides Spanish locales for kicad.
152    
153     %package locales-fi
154     Summary: Finnish Kicad locales
155     Version: %{docversion}
156     Release: %{release}
157     License: GPL
158     Requires: %{name}
159     Provides: %{name}-locale
160     BuildArch: noarch
161    
162     %description locales-fi
163     Kicad is an open source (GPL) software for the creation of electronic
164     schematic diagrams and printed circuit board artwork.
165    
166     Kicad-locales provides Finnish locales for kicad.
167    
168     %package locales-fr
169     Summary: French Kicad locales
170     Version: %{docversion}
171     Release: %{release}
172     License: GPL
173     Requires: %{name}
174     Provides: %{name}-locale
175     BuildArch: noarch
176    
177     %description locales-fr
178     Kicad is an open source (GPL) software for the creation of electronic
179     schematic diagrams and printed circuit board artwork.
180    
181     Kicad-locales provides French locales for kicad.
182    
183     %package locales-hu
184     Summary: Hungarian Kicad locales
185     Version: %{docversion}
186     Release: %{release}
187     License: GPL
188     Requires: %{name}
189     Provides: %{name}-locale
190     BuildArch: noarch
191    
192     %description locales-hu
193     Kicad is an open source (GPL) software for the creation of electronic
194     schematic diagrams and printed circuit board artwork.
195    
196     Kicad-locales provides Hungarian locales for kicad.
197    
198     %package locales-it
199     Summary: Italian Kicad locales
200     Version: %{docversion}
201     Release: %{release}
202     License: GPL
203     Requires: %{name}
204     Provides: %{name}-locale
205     BuildArch: noarch
206    
207     %description locales-it
208     Kicad is an open source (GPL) software for the creation of electronic
209     schematic diagrams and printed circuit board artwork.
210    
211     Kicad-locales provides Italian locales for kicad.
212    
213     %package locales-ja
214     Summary: Japanese Kicad locales
215     Version: %{docversion}
216     Release: %{release}
217     License: GPL
218     Requires: %{name}
219     Provides: %{name}-locale
220     BuildArch: noarch
221    
222     %description locales-ja
223     Kicad is an open source (GPL) software for the creation of electronic
224     schematic diagrams and printed circuit board artwork.
225    
226     Kicad-locales provides Japanese locales for kicad.
227    
228     %package locales-ko
229     Summary: Korean Kicad locales
230     Version: %{docversion}
231     Release: %{release}
232     License: GPL
233     Requires: %{name}
234     Provides: %{name}-locale
235     BuildArch: noarch
236    
237     %description locales-ko
238     Kicad is an open source (GPL) software for the creation of electronic
239     schematic diagrams and printed circuit board artwork.
240    
241     Kicad-locales provides Korean locales for kicad.
242    
243     %package locales-nl
244     Summary: Dutch Kicad locales
245     Version: %{docversion}
246     Release: %{release}
247     License: GPL
248     Requires: %{name}
249     Provides: %{name}-locale
250     BuildArch: noarch
251    
252     %description locales-nl
253     Kicad is an open source (GPL) software for the creation of electronic
254     schematic diagrams and printed circuit board artwork.
255    
256     Kicad-locales provides Dutch locales for kicad.
257    
258     %package locales-pl
259     Summary: Polish Kicad locales
260     Version: %{docversion}
261     Release: %{release}
262     License: GPL
263     Requires: %{name}
264     Provides: %{name}-locale
265     BuildArch: noarch
266    
267     %description locales-pl
268     Kicad is an open source (GPL) software for the creation of electronic
269     schematic diagrams and printed circuit board artwork.
270    
271     Kicad-locales provides Polish locales for kicad.
272    
273     %package locales-pt
274     Summary: Portuguese Kicad locales
275     Version: %{docversion}
276     Release: %{release}
277     License: GPL
278     Requires: %{name}
279     Provides: %{name}-locale
280     BuildArch: noarch
281    
282     %description locales-pt
283     Kicad is an open source (GPL) software for the creation of electronic
284     schematic diagrams and printed circuit board artwork.
285    
286     Kicad-locales provides Portuguese locales for kicad.
287    
288     %package locales-ru
289     Summary: Russian Kicad locales
290     Version: %{docversion}
291     Release: %{release}
292     License: GPL
293     Requires: %{name}
294     Provides: %{name}-locale
295     BuildArch: noarch
296    
297     %description locales-ru
298     Kicad is an open source (GPL) software for the creation of electronic
299     schematic diagrams and printed circuit board artwork.
300    
301     Kicad-locales provides Russian locales for kicad.
302    
303     %package locales-sl
304     Summary: Slovenian Kicad locales
305     Version: %{docversion}
306     Release: %{release}
307     License: GPL
308     Requires: %{name}
309     Provides: %{name}-locale
310     BuildArch: noarch
311    
312     %description locales-sl
313     Kicad is an open source (GPL) software for the creation of electronic
314     schematic diagrams and printed circuit board artwork.
315    
316     Kicad-locales provides Slovenian locales for kicad.
317    
318     %package locales-sv
319     Summary: Salvadoran Kicad locales
320     Version: %{docversion}
321     Release: %{release}
322     License: GPL
323     Requires: %{name}
324     Provides: %{name}-locale
325     BuildArch: noarch
326    
327     %description locales-sv
328     Kicad is an open source (GPL) software for the creation of electronic
329     schematic diagrams and printed circuit board artwork.
330    
331     Kicad-locales provides Salvadoran locales for kicad.
332    
333     %package locales-zh-cn
334     Summary: Chinese Kicad locales
335     Version: %{docversion}
336     Release: %{release}
337     License: GPL
338     Requires: %{name}
339     Provides: %{name}-locale
340     BuildArch: noarch
341    
342     %description locales-zh-cn
343     Kicad is an open source (GPL) software for the creation of electronic
344     schematic diagrams and printed circuit board artwork.
345    
346     Kicad-locales provides Chinese locales for kicad.
347    
348     %package library
349     Summary: Library for kicad (creation of electronic schematic diagrams)
350     Version: %{libversion}
351     Release: %{release}
352     License: GPL
353     Requires: %{name}
354     BuildArch: noarch
355    
356     %description library
357     Kicad is an open source (GPL) software for the creation of electronic
358     schematic diagrams and printed circuit board artwork.
359    
360     Kicad-library is a set of library needed by kicad.
361    
362     %prep
363     %setup -q -T -b 0 -n %{name}
364     %setup -q -T -b 1 -n %{docname}
365     %setup -q -T -b 2 -n %{libname}
366    
367     %build
368     export LC_ALL=C
369     cd ../
370    
371     # Building kicad-doc
372     pushd %{docname}
373     %cmake \
374     -DKICAD_STABLE_VERSION:BOOL=ON \
375     -DCMAKE_BUILD_TYPE=Release
376     %make
377     popd
378    
379     # Building kicad-library
380     pushd %{libname}
381     %cmake \
382     -DKICAD_STABLE_VERSION:BOOL=ON \
383     -DCMAKE_BUILD_TYPE=Release
384     %make
385     popd
386    
387     # Building kicad
388     pushd %{name}
389     %cmake \
390     -DBUILD_SHARED_LIBS:BOOL=OFF \
391     -DKICAD_STABLE_VERSION:BOOL=ON \
392     -DCMAKE_BUILD_TYPE=Release
393     %make
394     popd
395    
396     %install
397     rm -rf %{buildroot}
398    
399     cd ../
400    
401     # Installing kicad-doc
402     pushd %{docname}
403     make -C build DESTDIR=%buildroot install
404     popd
405    
406     # Installing kicad-library
407     pushd %{libname}
408     make -C build DESTDIR=%buildroot install
409     popd
410    
411     # Installing kicad
412     pushd %{name}
413     make -C build DESTDIR=%buildroot install
414    
415     # create desktop file
416     desktop-file-install --vendor='' \
417     --remove-category='Scientific' \
418     --add-category='Science;Electronics;Education' \
419     --dir=%buildroot%{_datadir}/applications \
420     %buildroot%{_datadir}/applications/*.desktop
421    
422     # create icons
423     mkdir -p %{buildroot}%{_miconsdir} %{buildroot}%{_iconsdir} %{buildroot}%{_liconsdir}
424     convert -resize 16x16 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{buildroot}%{_miconsdir}/%{name}.png
425     convert -resize 32x32 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{buildroot}%{_iconsdir}/%{name}.png
426     convert -resize 48x48 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{buildroot}%{_liconsdir}/%{name}.png
427     popd
428    
429     %files
430     %{_bindir}/*
431     %{_prefix}/lib/%{name}/plugins/netlist_form_pads-pcb.xsl
432     %{_iconsdir}/*/*/*
433     %{_iconsdir}/%{name}.png
434     %{_liconsdir}/%{name}.png
435     %{_miconsdir}/%{name}.png
436     %{_datadir}/%{name}/demos/
437     %{_datadir}/%{name}/template/
438     %{_datadir}/applications
439     %{_datadir}/mime/packages/kicad.xml
440     %{_datadir}/mimelnk/application/x-kicad-project.desktop
441     %{_datadir}/mimelnk/application/x-kicad-schematic.desktop
442    
443     %files doc
444     %defattr(-,root,root)
445     %doc %{_datadir}/doc/%{name}
446    
447     %files locales-ca
448     %defattr(-,root,root)
449     %{_datadir}/%{name}/internat/ca/
450    
451     %files locales-cs
452     %defattr(-,root,root)
453     %{_datadir}/%{name}/internat/cs/
454    
455     %files locales-de
456     %defattr(-,root,root)
457     %{_datadir}/%{name}/internat/de/
458    
459     %files locales-es
460     %defattr(-,root,root)
461     %{_datadir}/%{name}/internat/es/
462    
463     %files locales-fi
464     %defattr(-,root,root)
465     %{_datadir}/%{name}/internat/fi/
466    
467     %files locales-fr
468     %defattr(-,root,root)
469     %{_datadir}/%{name}/internat/fr/
470    
471     %files locales-hu
472     %defattr(-,root,root)
473     %{_datadir}/%{name}/internat/hu/
474    
475     %files locales-it
476     %defattr(-,root,root)
477     %{_datadir}/%{name}/internat/it/
478    
479     %files locales-ja
480     %defattr(-,root,root)
481     %{_datadir}/%{name}/internat/ja/
482    
483     %files locales-ko
484     %defattr(-,root,root)
485     %{_datadir}/%{name}/internat/ko/
486    
487     %files locales-nl
488     %defattr(-,root,root)
489     %{_datadir}/%{name}/internat/nl/
490    
491     %files locales-pl
492     %defattr(-,root,root)
493     %{_datadir}/%{name}/internat/pl/
494    
495     %files locales-pt
496     %defattr(-,root,root)
497     %{_datadir}/%{name}/internat/pt/
498    
499     %files locales-ru
500     %defattr(-,root,root)
501     %{_datadir}/%{name}/internat/ru/
502    
503     %files locales-sl
504     %defattr(-,root,root)
505     %{_datadir}/%{name}/internat/sl
506    
507     %files locales-sv
508     %defattr(-,root,root)
509     %{_datadir}/%{name}/internat/sv/
510    
511     %files locales-zh-cn
512     %defattr(-,root,root)
513     %{_datadir}/%{name}/internat/zh_CN/
514    
515     %files library
516     %defattr(-,root,root)
517     %{_datadir}/%{name}/library
518     %{_datadir}/%{name}/modules
519    
520    

  ViewVC Help
Powered by ViewVC 1.1.30