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