/[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 1057109 - (hide annotations) (download)
Tue Sep 27 13:48:15 2016 UTC (7 years, 6 months ago) by daviddavid
Original Path: cauldron/kicad/current/SPECS/kicad.spec
File size: 15349 byte(s)
SILENT: cleanup a bit spec file

1 akien 487685 %define Werror_cflags %nil
2 mcb30 166798
3 daviddavid 1057109 %define docname kicad-doc
4     %define libname kicad-library
5     %define i18nname kicad-i18n
6 mcb30 166798
7 ycantin 908574
8 ovitters 645338 Name: kicad
9 shlomif 166921 Summary: An open source program for the creation of electronic schematic diagrams
10 ycantin 908579 Epoch: 1
11 ycantin 912497 Version: 4.0.1
12 luigiwalser 1046898 Release: %mkrel 6
13 daviddavid 1057109 License: GPLv3+
14     Group: Sciences/Computer science
15     Url: http://kicad-pcb.org/
16 ycantin 908574 Source0: https://launchpad.net/%{name}/4.0/%{version}/+download/%{name}-%{version}.tar.xz
17 ycantin 912497 Source1: https://github.com/KiCad/%{docname}/archive/%{version}.tar.gz#/%{docname}-%{version}.tar.gz
18     Source2: https://github.com/KiCad/%{libname}/archive/%{version}.tar.gz#/%{libname}-%{version}.tar.gz
19     Source3: https://github.com/KiCad/%{i18nname}/archive/%{version}.tar.gz#/%{i18nname}-%{version}.tar.gz
20 ycantin 913195
21     # This needs to be aligned with kicad-library-*/template/fp-lib-table.for-pretty
22     Source4: https://github.com/KiCad/Air_Coils_SML_NEOSID.pretty/archive/%{version}.tar.gz#/Air_Coils_SML_NEOSID.pretty-%{version}.tar.gz
23     Source5: https://github.com/KiCad/Buttons_Switches_SMD.pretty/archive/%{version}.tar.gz#/Buttons_Switches_SMD.pretty-%{version}.tar.gz
24     Source6: https://github.com/KiCad/Buttons_Switches_ThroughHole.pretty/archive/%{version}.tar.gz#/Buttons_Switches_ThroughHole.pretty-%{version}.tar.gz
25     Source7: https://github.com/KiCad/Buzzers_Beepers.pretty/archive/%{version}.tar.gz#/Buzzers_Beepers.pretty-%{version}.tar.gz
26     Source8: https://github.com/KiCad/Capacitors_SMD.pretty/archive/%{version}.tar.gz#/Capacitors_SMD.pretty-%{version}.tar.gz
27     Source9: https://github.com/KiCad/Capacitors_Tantalum_SMD.pretty/archive/%{version}.tar.gz#/Capacitors_Tantalum_SMD.pretty-%{version}.tar.gz
28     Source10: https://github.com/KiCad/Capacitors_ThroughHole.pretty/archive/%{version}.tar.gz#/Capacitors_ThroughHole.pretty-%{version}.tar.gz
29     Source11: https://github.com/KiCad/Choke_Axial_ThroughHole.pretty/archive/%{version}.tar.gz#/Choke_Axial_ThroughHole.pretty-%{version}.tar.gz
30     Source12: https://github.com/KiCad/Choke_Common-Mode_Wurth.pretty/archive/%{version}.tar.gz#/Choke_Common-Mode_Wurth.pretty-%{version}.tar.gz
31     Source13: https://github.com/KiCad/Choke_Radial_ThroughHole.pretty/archive/%{version}.tar.gz#/Choke_Radial_ThroughHole.pretty-%{version}.tar.gz
32     Source14: https://github.com/KiCad/Choke_SMD.pretty/archive/%{version}.tar.gz#/Choke_SMD.pretty-%{version}.tar.gz
33     Source15: https://github.com/KiCad/Choke_Toroid_ThroughHole.pretty/archive/%{version}.tar.gz#/Choke_Toroid_ThroughHole.pretty-%{version}.tar.gz
34     Source16: https://github.com/KiCad/Connectors_Molex.pretty/archive/%{version}.tar.gz#/Connectors_Molex.pretty-%{version}.tar.gz
35     Source17: https://github.com/KiCad/Connect.pretty/archive/%{version}.tar.gz#/Connect.pretty-%{version}.tar.gz
36     Source18: https://github.com/KiCad/Converters_DCDC_ACDC.pretty/archive/%{version}.tar.gz#/Converters_DCDC_ACDC.pretty-%{version}.tar.gz
37     Source19: https://github.com/KiCad/Crystals.pretty/archive/%{version}.tar.gz#/Crystals.pretty-%{version}.tar.gz
38     Source20: https://github.com/KiCad/Diodes_SMD.pretty/archive/%{version}.tar.gz#/Diodes_SMD.pretty-%{version}.tar.gz
39     Source21: https://github.com/KiCad/Diodes_ThroughHole.pretty/archive/%{version}.tar.gz#/Diodes_ThroughHole.pretty-%{version}.tar.gz
40     Source22: https://github.com/KiCad/Discret.pretty/archive/%{version}.tar.gz#/Discret.pretty-%{version}.tar.gz
41     Source23: https://github.com/KiCad/Display.pretty/archive/%{version}.tar.gz#/Display.pretty-%{version}.tar.gz
42     Source24: https://github.com/KiCad/Displays_7-Segment.pretty/archive/%{version}.tar.gz#/Displays_7-Segment.pretty-%{version}.tar.gz
43     Source25: https://github.com/KiCad/Divers.pretty/archive/%{version}.tar.gz#/Divers.pretty-%{version}.tar.gz
44     Source26: https://github.com/KiCad/EuroBoard_Outline.pretty/archive/%{version}.tar.gz#/EuroBoard_Outline.pretty-%{version}.tar.gz
45     Source27: https://github.com/KiCad/Fiducials.pretty/archive/%{version}.tar.gz#/Fiducials.pretty-%{version}.tar.gz
46     Source28: https://github.com/KiCad/Filters_HF_Coils_NEOSID.pretty/archive/%{version}.tar.gz#/Filters_HF_Coils_NEOSID.pretty-%{version}.tar.gz
47     Source29: https://github.com/KiCad/Fuse_Holders_and_Fuses.pretty/archive/%{version}.tar.gz#/Fuse_Holders_and_Fuses.pretty-%{version}.tar.gz
48     Source30: https://github.com/KiCad/Hall-Effect_Transducers_LEM.pretty/archive/%{version}.tar.gz#/Hall-Effect_Transducers_LEM.pretty-%{version}.tar.gz
49     Source31: https://github.com/KiCad/Heatsinks.pretty/archive/%{version}.tar.gz#/Heatsinks.pretty-%{version}.tar.gz
50     Source32: https://github.com/KiCad/Housings_DFN_QFN.pretty/archive/%{version}.tar.gz#/Housings_DFN_QFN.pretty-%{version}.tar.gz
51     Source33: https://github.com/KiCad/Housings_DIP.pretty/archive/%{version}.tar.gz#/Housings_DIP.pretty-%{version}.tar.gz
52     Source34: https://github.com/KiCad/Housings_QFP.pretty/archive/%{version}.tar.gz#/Housings_QFP.pretty-%{version}.tar.gz
53     Source35: https://github.com/KiCad/Housings_SIP.pretty/archive/%{version}.tar.gz#/Housings_SIP.pretty-%{version}.tar.gz
54     Source36: https://github.com/KiCad/Housings_SOIC.pretty/archive/%{version}.tar.gz#/Housings_SOIC.pretty-%{version}.tar.gz
55     Source37: https://github.com/KiCad/Housings_SSOP.pretty/archive/%{version}.tar.gz#/Housings_SSOP.pretty-%{version}.tar.gz
56     Source38: https://github.com/KiCad/Inductors_NEOSID.pretty/archive/%{version}.tar.gz#/Inductors_NEOSID.pretty-%{version}.tar.gz
57     Source39: https://github.com/KiCad/Inductors.pretty/archive/%{version}.tar.gz#/Inductors.pretty-%{version}.tar.gz
58     Source40: https://github.com/KiCad/IR-DirectFETs.pretty/archive/%{version}.tar.gz#/IR-DirectFETs.pretty-%{version}.tar.gz
59     Source41: https://github.com/KiCad/Labels.pretty/archive/%{version}.tar.gz#/Labels.pretty-%{version}.tar.gz
60     Source42: https://github.com/KiCad/LEDs.pretty/archive/%{version}.tar.gz#/LEDs.pretty-%{version}.tar.gz
61     Source43: https://github.com/KiCad/Measurement_Points.pretty/archive/%{version}.tar.gz#/Measurement_Points.pretty-%{version}.tar.gz
62     Source44: https://github.com/KiCad/Measurement_Scales.pretty/archive/%{version}.tar.gz#/Measurement_Scales.pretty-%{version}.tar.gz
63     Source45: https://github.com/KiCad/Mechanical_Sockets.pretty/archive/%{version}.tar.gz#/Mechanical_Sockets.pretty-%{version}.tar.gz
64     Source46: https://github.com/KiCad/Microwave.pretty/archive/%{version}.tar.gz#/Microwave.pretty-%{version}.tar.gz
65     Source47: https://github.com/KiCad/Mounting_Holes.pretty/archive/%{version}.tar.gz#/Mounting_Holes.pretty-%{version}.tar.gz
66     Source48: https://github.com/KiCad/NF-Transformers_ETAL.pretty/archive/%{version}.tar.gz#/NF-Transformers_ETAL.pretty-%{version}.tar.gz
67     Source49: https://github.com/KiCad/Oddities.pretty/archive/%{version}.tar.gz#/Oddities.pretty-%{version}.tar.gz
68     Source50: https://github.com/KiCad/Opto-Devices.pretty/archive/%{version}.tar.gz#/Opto-Devices.pretty-%{version}.tar.gz
69     Source51: https://github.com/KiCad/Oscillators.pretty/archive/%{version}.tar.gz#/Oscillators.pretty-%{version}.tar.gz
70     Source52: https://github.com/KiCad/PFF_PSF_PSS_Leadforms.pretty/archive/%{version}.tar.gz#/PFF_PSF_PSS_Leadforms.pretty-%{version}.tar.gz
71     Source53: https://github.com/KiCad/Pin_Headers.pretty/archive/%{version}.tar.gz#/Pin_Headers.pretty-%{version}.tar.gz
72     Source54: https://github.com/KiCad/Potentiometers.pretty/archive/%{version}.tar.gz#/Potentiometers.pretty-%{version}.tar.gz
73     Source55: https://github.com/KiCad/Power_Integrations.pretty/archive/%{version}.tar.gz#/Power_Integrations.pretty-%{version}.tar.gz
74     Source56: https://github.com/KiCad/Relays_ThroughHole.pretty/archive/%{version}.tar.gz#/Relays_ThroughHole.pretty-%{version}.tar.gz
75     Source57: https://github.com/KiCad/Resistors_SMD.pretty/archive/%{version}.tar.gz#/Resistors_SMD.pretty-%{version}.tar.gz
76     Source58: https://github.com/KiCad/Resistors_ThroughHole.pretty/archive/%{version}.tar.gz#/Resistors_ThroughHole.pretty-%{version}.tar.gz
77     Source59: https://github.com/KiCad/Resistors_Universal.pretty/archive/%{version}.tar.gz#/Resistors_Universal.pretty-%{version}.tar.gz
78     Source60: https://github.com/KiCad/SMD_Packages.pretty/archive/%{version}.tar.gz#/SMD_Packages.pretty-%{version}.tar.gz
79     Source61: https://github.com/KiCad/Sockets_BNC.pretty/archive/%{version}.tar.gz#/Sockets_BNC.pretty-%{version}.tar.gz
80     Source62: https://github.com/KiCad/Sockets_Mini-Universal.pretty/archive/%{version}.tar.gz#/Sockets_Mini-Universal.pretty-%{version}.tar.gz
81     Source63: https://github.com/KiCad/Sockets_MOLEX_KK-System.pretty/archive/%{version}.tar.gz#/Sockets_MOLEX_KK-System.pretty-%{version}.tar.gz
82     Source64: https://github.com/KiCad/Sockets.pretty/archive/%{version}.tar.gz#/Sockets.pretty-%{version}.tar.gz
83     Source65: https://github.com/KiCad/Socket_Strips.pretty/archive/%{version}.tar.gz#/Socket_Strips.pretty-%{version}.tar.gz
84     Source66: https://github.com/KiCad/Sockets_WAGO734.pretty/archive/%{version}.tar.gz#/Sockets_WAGO734.pretty-%{version}.tar.gz
85     Source67: https://github.com/KiCad/Symbols.pretty/archive/%{version}.tar.gz#/Symbols.pretty-%{version}.tar.gz
86     Source68: https://github.com/KiCad/Terminal_Blocks.pretty/archive/%{version}.tar.gz#/Terminal_Blocks.pretty-%{version}.tar.gz
87     Source69: https://github.com/KiCad/TO_SOT_Packages_SMD.pretty/archive/%{version}.tar.gz#/TO_SOT_Packages_SMD.pretty-%{version}.tar.gz
88     Source70: https://github.com/KiCad/TO_SOT_Packages_THT.pretty/archive/%{version}.tar.gz#/TO_SOT_Packages_THT.pretty-%{version}.tar.gz
89     Source71: https://github.com/KiCad/Transformers_CHK.pretty/archive/%{version}.tar.gz#/Transformers_CHK.pretty-%{version}.tar.gz
90     Source72: https://github.com/KiCad/Transformers_SMPS_ThroughHole.pretty/archive/%{version}.tar.gz#/Transformers_SMPS_ThroughHole.pretty-%{version}.tar.gz
91     Source73: https://github.com/KiCad/Transistors_OldSowjetAera.pretty/archive/%{version}.tar.gz#/Transistors_OldSowjetAera.pretty-%{version}.tar.gz
92     Source74: https://github.com/KiCad/Valves.pretty/archive/%{version}.tar.gz#/Valves.pretty-%{version}.tar.gz
93     Source75: https://github.com/KiCad/Varistors.pretty/archive/%{version}.tar.gz#/Varistors.pretty-%{version}.tar.gz
94     Source76: https://github.com/KiCad/Wire_Connections_Bridges.pretty/archive/%{version}.tar.gz#/Wire_Connections_Bridges.pretty-%{version}.tar.gz
95     Source77: https://github.com/KiCad/Wire_Pads.pretty/archive/%{version}.tar.gz#/Wire_Pads.pretty-%{version}.tar.gz
96    
97 luigiwalser 1046898 Patch0: kicad-swig-3.0.10.patch
98 ycantin 908574 BuildRequires: wxgtk-devel >= 3.0
99 mcb30 166798 BuildRequires: mesa-common-devel
100     BuildRequires: imagemagick
101     BuildRequires: boost-devel
102 ycantin 908574 BuildRequires: glew-devel
103     BuildRequires: cairo-devel
104     BuildRequires: openssl-devel
105     BuildRequires: libgomp-devel
106 mcb30 166798 BuildRequires: cmake
107 ycantin 908574 # doc
108     BuildRequires: dblatex
109     BuildRequires: po4a
110     BuildRequires: asciidoc
111     BuildRequires: git
112     BuildRequires: perl(Unicode::GCString)
113     BuildRequires: source-highlight
114     # python scripting
115     BuildRequires: python-devel
116     BuildRequires: libwxPython-devel
117     BuildRequires: swig
118    
119 mcb30 166798 BuildRequires: desktop-file-utils
120 mcb30 189425 Requires: %{libname}
121     Requires: %{docname}
122 ycantin 908574 Requires: %{i18nname}
123 mcb30 166798
124     %description
125 akien 487685 Kicad is an open source (GPL) program for the creation of electronic
126     schematic diagrams and printed circuit board artwork.
127 mcb30 166798
128 akien 487685 Kicad is a set of four programs and a project manager:
129 mcb30 166798
130 akien 487685 * Eeschema: Schematic entry.
131     * Pcbnew: Board editor.
132     * Gerbview: GERBER viewer (photoplotter documents).
133     * Cvpcb: footprint selector for components used in the circuit design.
134     * Kicad: project manager.
135    
136 mcb30 166798 %package doc
137 akien 487685 Summary: Documentation for kicad (creation of electronic schematic diagrams)
138 mcb30 166798 Requires: %{name}
139     BuildArch: noarch
140    
141     %description doc
142 akien 487685 Kicad is an open source (GPL) program for the creation of electronic
143     schematic diagrams and printed circuit board artwork.
144 mcb30 166798
145     Kicad-doc is the documentation for kicad.
146    
147 ycantin 908574 %package i18n
148     Summary: Kicad locales
149 mcb30 166798 Requires: %{name}
150     BuildArch: noarch
151    
152 ycantin 908579 Obsoletes: kicad-locales-ca
153     Obsoletes: kicad-locales-cs
154     Obsoletes: kicad-locales-de
155     Obsoletes: kicad-locales-en
156     Obsoletes: kicad-locales-es
157     Obsoletes: kicad-locales-fi
158     Obsoletes: kicad-locales-fr
159     Obsoletes: kicad-locales-hu
160     Obsoletes: kicad-locales-it
161     Obsoletes: kicad-locales-ja
162     Obsoletes: kicad-locales-ko
163     Obsoletes: kicad-locales-lt
164     Obsoletes: kicad-locales-nl
165     Obsoletes: kicad-locales-pl
166     Obsoletes: kicad-locales-pt
167     Obsoletes: kicad-locales-ru
168     Obsoletes: kicad-locales-sl
169     Obsoletes: kicad-locales-sv
170     Obsoletes: kicad-locales-zh-cn
171 mcb30 166798
172 ycantin 908574 %description i18n
173 akien 487685 Kicad is an open source (GPL) program for the creation of electronic
174     schematic diagrams and printed circuit board artwork.
175 mcb30 166798
176 ycantin 908574 Kicad-i18n provides locales for kicad.
177 mcb30 166798
178    
179     %package library
180 akien 487685 Summary: Library for kicad (creation of electronic schematic diagrams)
181 ycantin 908586 License: LGPLv2
182 mcb30 166798 Requires: %{name}
183     BuildArch: noarch
184    
185     %description library
186 akien 487685 Kicad is an open source (GPL) program for the creation of electronic
187     schematic diagrams and printed circuit board artwork.
188 mcb30 166798
189     Kicad-library is a set of library needed by kicad.
190    
191     %prep
192 ycantin 908574 %setup -q -T -b 0 -n %{name}-%{version}
193 luigiwalser 1046898 %patch0 -p1
194 ycantin 912497 %setup -q -T -b 1 -n %{docname}-%{version}
195     %setup -q -T -b 2 -n %{libname}-%{version}
196     %setup -q -T -b 3 -n %{i18nname}-%{version}
197 juancho 326831 cd ..
198 mcb30 166798
199     %build
200     export LC_ALL=C
201     cd ../
202    
203 ycantin 908574 # Building kicad
204     pushd %{name}-%{version}
205     %cmake \
206     -DBUILD_SHARED_LIBS:BOOL=OFF \
207     -DKICAD_STABLE_VERSION:BOOL=ON \
208     -DCMAKE_BUILD_TYPE=Release \
209     -DKICAD_SKIP_BOOST=ON \
210     -DKICAD_REPO_NAME=stable \
211     -DKICAD_BUILD_VERSION=%{version} \
212     -DBUILD_GITHUB_PLUGIN=ON \
213     -DKICAD_SCRIPTING=ON \
214     -DKICAD_SCRIPTING_MODULES=ON \
215     -DKICAD_SCRIPTING_WXPYTHON=ON
216 daviddavid 1019816 %make_build
217 ycantin 908574 popd
218    
219 mcb30 166798 # Building kicad-doc
220 ycantin 912497 pushd %{docname}-%{version}
221 mcb30 166798 %cmake \
222     -DKICAD_STABLE_VERSION:BOOL=ON \
223 ycantin 908574 -DCMAKE_BUILD_TYPE=Release \
224     -DBUILD_FORMATS=html
225 daviddavid 1019816 %make_build
226 mcb30 166798 popd
227    
228     # Building kicad-library
229 ycantin 912497 pushd %{libname}-%{version}
230 mcb30 166798 %cmake \
231     -DKICAD_STABLE_VERSION:BOOL=ON \
232     -DCMAKE_BUILD_TYPE=Release
233 daviddavid 1019816 %make_build
234 mcb30 166798 popd
235    
236 ycantin 913195
237 ycantin 908574 # Building kicad-i18n
238 ycantin 912497 pushd %{i18nname}-%{version}
239 mcb30 166798 %cmake \
240     -DKICAD_STABLE_VERSION:BOOL=ON \
241 ycantin 908574 -DCMAKE_BUILD_TYPE=Release \
242     -DKICAD_I18N_UNIX_STRICT_PATH=ON
243 daviddavid 1019816 %make_build
244 mcb30 166798 popd
245    
246     %install
247     cd ../
248    
249     # Installing kicad-doc
250 ycantin 912497 pushd %{docname}-%{version}
251 daviddavid 1019816 %make_install -C build
252 mcb30 166798 popd
253    
254     # Installing kicad-library
255 ycantin 912497 pushd %{libname}-%{version}
256 daviddavid 1019816 %make_install -C build
257 mcb30 166798 popd
258    
259 ycantin 913195 # Footprints
260     mkdir -p %{buildroot}%{_datadir}/%{name}/modules
261     for S in %{sources}; do
262     P=$(basename $S |sed -n 's/\.pretty-.*/.pretty/p')
263     [ "$P" ] || continue
264     mkdir -p %{buildroot}%{_datadir}/%{name}/modules/$P
265     tar xzf $S --strip-components=1 -C %{buildroot}%{_datadir}/%{name}/modules/$P
266     done
267     ln -f %{buildroot}%{_datadir}/%{name}/template/fp-lib-table{.for-pretty,}
268    
269 ycantin 908574 # Installing kicad-i18n
270 ycantin 912497 pushd %{i18nname}-%{version}
271 daviddavid 1019816 %make_install -C build
272 ycantin 908574 %find_lang %{name}
273     popd
274    
275 mcb30 166798 # Installing kicad
276 ycantin 908574 pushd %{name}-%{version}
277 daviddavid 1019816 %make_install -C build
278 mcb30 166798
279     # create desktop file
280     desktop-file-install --vendor='' \
281     --remove-category='Scientific' \
282     --add-category='Science;Electronics;Education' \
283     --dir=%buildroot%{_datadir}/applications \
284     %buildroot%{_datadir}/applications/*.desktop
285     popd
286    
287 ycantin 908574
288 mcb30 166798 %files
289     %{_bindir}/*
290 ycantin 908574 %{_prefix}/lib/%{name}/plugins/*.xsl
291 mcb30 166798 %{_iconsdir}/*/*/*
292 ycantin 908574 %{_datadir}/%{name}/scripting/plugins/
293     %{python2_sitelib}/_pcbnew.so
294 ycantin 908586 %{python2_sitelib}/pcbnew.*
295 mcb30 166798 %{_datadir}/%{name}/demos/
296     %{_datadir}/%{name}/template/
297     %{_datadir}/applications
298     %{_datadir}/mime/packages/kicad.xml
299     %{_datadir}/mimelnk/application/x-kicad-project.desktop
300     %{_datadir}/mimelnk/application/x-kicad-schematic.desktop
301 ycantin 908574 %{_datadir}/mimelnk/application/x-kicad-pcb.desktop
302 mcb30 166798
303     %files doc
304     %doc %{_datadir}/doc/%{name}
305    
306 ycantin 908574 %files i18n -f %{name}.lang
307 mcb30 166798
308     %files library
309     %{_datadir}/%{name}/library
310     %{_datadir}/%{name}/modules

  ViewVC Help
Powered by ViewVC 1.1.30