Accepting request 644324 from home:StefanBruens:branches:electronics

- Update to bugfix release 5.0.1
  This version contains critical bugfixes and minor improvements.
  See http://kicad-pcb.org/blog/2018/10/KiCad-5.0.1-Release/ for details.
- Do proper fix for 3d plugindir, use absolute LIBDIR instead of
  deriving it from BINDIR:
  Add 0001-Use-absolute-path-CMAKE_INSTALL_FULL_LIBDIR-for-3d-v.patch
- Drop upstream kicad-fix-boost168-build.patch.
- Add Recommends: for new kicad-templates package

OBS-URL: https://build.opensuse.org/request/show/644324
OBS-URL: https://build.opensuse.org/package/show/electronics/kicad?expand=0&rev=50
This commit is contained in:
2018-10-25 21:34:24 +00:00
committed by Git OBS Bridge
parent 47bd84ac84
commit d706ef3871
6 changed files with 82 additions and 47 deletions

View File

@@ -12,15 +12,18 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# According to upstream, kicad 5.0.x can be used with the footprint and
# symbol libraries from version 5.0.0
%define compatversion 5.0.0
Name: kicad
Version: 5.0.0
Version: 5.0.1
Release: 0
Summary: EDA software suite for the creation of schematics and PCB
License: GPL-3.0-or-later AND AGPL-3.0-or-later
License: GPL-3.0-or-later AND AGPL-3.0-or-later
Group: Productivity/Scientific/Electronics
Url: http://kicad-pcb.org
Source: https://launchpad.net/kicad/5.0/%{version}/+download/kicad-%{version}.tar.xz
@@ -36,7 +39,8 @@ Patch2: kicad-library-repos-install.patch
# PATCH-FIX-OPENSUSE davejplater@gmail.com -kicad-suse-help-path.patch - kicad looks in /usr/share/doc/kicad for help files and doesn't find them.
# this patch adds packges/ befor kicad and enables help to function.
Patch3: kicad-suse-help-path.patch
Patch4: kicad-fix-boost168-build.patch
# PATCH-FIX-UPSTREAM 0001-Use-absolute-path-CMAKE_INSTALL_FULL_LIBDIR-for-3d-v.patch
Patch4: 0001-Use-absolute-path-CMAKE_INSTALL_FULL_LIBDIR-for-3d-v.patch
%if 0%{?suse_version} > 1325
BuildRequires: libboost_system-devel
@@ -73,13 +77,15 @@ Requires: python-wxWidgets-3_0 >= 3
# The help function gives an error without the doc package
Requires: %{name}-doc = %{version}
# You cannot build a schematic without symbols
Requires: %{name}-symbols = %{version}
Requires: %{name}-symbols = %{compatversion}
# You cannot create a pcb layout without footprints
Requires: %{name}-footprints = %{version}
Requires: %{name}-footprints = %{compatversion}
# Kicad functions without these packages
Recommends: %{name}-library-install = %{version}
Recommends: %{name}-packages3D
Recommends: %{name}-templates
Obsoletes: kicad = 20140120
Provides: kicad = %{compatversion}
%description
Kicad is an open source (GPL) software for the creation of electronic schematic
@@ -110,7 +116,7 @@ This package contains script for KiCad libraries downloading.
%patch1 -p0
%patch2 -p1
%patch3
%patch4
%patch4 -p1
cp %{SOURCE2} ./LICENSE.GPLv3
cp %{SOURCE3} ./LICENSE.AGPLv3
@@ -129,7 +135,6 @@ cp %{SOURCE3} ./LICENSE.AGPLv3
-DKICAD_SCRIPTING=ON \
-DKICAD_SCRIPTING_MODULES=ON \
-DKICAD_SCRIPTING_WXPYTHON=ON \
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -pie" \
-DPYTHON_SITE_PACKAGE_PATH=%{python_sitearch} \
-DKICAD_SPICE=ON