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