115 |
Source95: https://github.com/KiCad/Wire_Connections_Bridges.pretty/archive/%{version}/Wire_Connections_Bridges.pretty-%{version}.tar.gz |
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 |
Source96: https://github.com/KiCad/Wire_Pads.pretty/archive/%{version}/Wire_Pads.pretty-%{version}.tar.gz |
117 |
|
|
118 |
Patch1: kicad-4.0.6-no-strip.patch |
Patch1: kicad-4.0.0-nostrip.patch |
119 |
Patch4: kicad-4.0.5-boost.patch |
Patch4: kicad-4.0.5-boost.patch |
120 |
|
|
121 |
BuildRequires: wxgtk-devel >= 3.0 |
BuildRequires: wxgtk-devel >= 3.0 |
214 |
Kicad-library is a set of library needed by kicad. |
Kicad-library is a set of library needed by kicad. |
215 |
|
|
216 |
%prep |
%prep |
217 |
%setup -q -a 1 -a 2 -a 3 -c %{name}-%{version} |
%setup -q -a 1 -a 2 -a 3 |
218 |
%patch1 -p1 -b .strip |
%patch1 -p1 -b .strip |
219 |
%patch4 -p1 |
%patch4 -p1 |
220 |
|
|
222 |
export LC_ALL=C |
export LC_ALL=C |
223 |
|
|
224 |
# Building kicad |
# Building kicad |
|
pushd %{name}-%{version} |
|
225 |
%cmake \ |
%cmake \ |
226 |
-DBUILD_SHARED_LIBS:BOOL=OFF \ |
-DBUILD_SHARED_LIBS:BOOL=OFF \ |
227 |
-DKICAD_STABLE_VERSION:BOOL=ON \ |
-DKICAD_STABLE_VERSION:BOOL=ON \ |
235 |
-DKICAD_SCRIPTING_WXPYTHON=ON \ |
-DKICAD_SCRIPTING_WXPYTHON=ON \ |
236 |
-DCPACK_DO_STRIP=OFF |
-DCPACK_DO_STRIP=OFF |
237 |
%make_build |
%make_build |
|
popd |
|
238 |
|
|
239 |
# Building kicad-doc |
# Building kicad-doc |
240 |
pushd %{docname}-%{version} |
pushd %{docname}-%{version} |
264 |
popd |
popd |
265 |
|
|
266 |
%install |
%install |
|
# Installing kicad-doc |
|
267 |
pushd %{docname}-%{version} |
pushd %{docname}-%{version} |
268 |
|
# Installing kicad-doc |
269 |
%make_install -C build |
%make_install -C build |
270 |
popd |
popd |
271 |
|
|
291 |
%find_lang %{name} |
%find_lang %{name} |
292 |
|
|
293 |
# Installing kicad |
# Installing kicad |
|
pushd %{name}-%{version} |
|
294 |
%make_install -C build |
%make_install -C build |
295 |
|
|
296 |
# create desktop file |
# create desktop file |
299 |
--add-category='Science;Electronics;Education' \ |
--add-category='Science;Electronics;Education' \ |
300 |
--dir=%buildroot%{_datadir}/applications \ |
--dir=%buildroot%{_datadir}/applications \ |
301 |
%buildroot%{_datadir}/applications/*.desktop |
%buildroot%{_datadir}/applications/*.desktop |
|
popd |
|
302 |
|
|
303 |
|
|
304 |
%files |
%files |