Accepting request 685170 from home:StefanBruens:branches:electronics
- Update to minor release 5.1.0 This version contains critical bugfixes and minor improvements. See http://kicad-pcb.org/blog/2019/03/KiCad-5.1.0-Release/ for details. - Remove obsolete kicad-library-repos-install.patch - Remove upstream 0001-Use-absolute-path-CMAKE_INSTALL_FULL_LIBDIR-for-3d-v.patch OBS-URL: https://build.opensuse.org/request/show/685170 OBS-URL: https://build.opensuse.org/package/show/electronics/kicad?expand=0&rev=59
This commit is contained in:
35
kicad.spec
35
kicad.spec
@@ -16,11 +16,11 @@
|
||||
#
|
||||
|
||||
|
||||
# According to upstream, kicad 5.0.x can be used with the footprint and
|
||||
# According to upstream, kicad 5.x.y can be used with the footprint and
|
||||
# symbol libraries from version 5.0.0
|
||||
%define compatversion 5.0.0
|
||||
Name: kicad
|
||||
Version: 5.0.2
|
||||
Version: 5.1.0
|
||||
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
|
||||
@@ -29,15 +29,12 @@ Url: http://kicad-pcb.org
|
||||
Source: https://launchpad.net/kicad/5.0/%{version}/+download/kicad-%{version}.tar.xz
|
||||
# PATCH-FEATURE-OPENSUSE kicad-user-library.patch -- add user library path
|
||||
Patch1: kicad-user-library.patch
|
||||
# PATCH-FEATURE-OPENSUSE kicad-library-repos-install.patch
|
||||
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
|
||||
# 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} >= 1500
|
||||
BuildRequires: libboost_filesystem-devel
|
||||
BuildRequires: libboost_system-devel
|
||||
BuildRequires: libboost_test-devel
|
||||
%else
|
||||
@@ -78,7 +75,6 @@ Requires: %{name}-symbols = %{compatversion}
|
||||
# You cannot create a pcb layout without footprints
|
||||
Requires: %{name}-footprints = %{compatversion}
|
||||
# Kicad functions without these packages
|
||||
Recommends: %{name}-library-install = %{version}
|
||||
Recommends: %{name}-packages3D = %{compatversion}
|
||||
Recommends: %{name}-templates = %{compatversion}
|
||||
Obsoletes: kicad = 20140120
|
||||
@@ -96,26 +92,10 @@ KiCad includes a project manager and four main independent software tools:
|
||||
- Gerbview: GERBER file viewer (photoplotter documents).
|
||||
- Cvpcb: footprint selector for components association.
|
||||
|
||||
%package library-install
|
||||
Summary: Script for KiCad libraries downloading
|
||||
Group: Productivity/Scientific/Electronics
|
||||
Requires: %{name} = %{version}
|
||||
Requires: curl
|
||||
Requires: git-core
|
||||
Requires: sed
|
||||
|
||||
%description library-install
|
||||
Kicad is an open source (GPL) software for the creation of electronic schematic
|
||||
diagrams and printed circuit with up to 32 copper layers and additional techinical layers.
|
||||
|
||||
This package contains script for KiCad libraries downloading.
|
||||
|
||||
%prep
|
||||
%setup -q -n kicad-%{version}
|
||||
%patch1 -p0
|
||||
%patch2 -p1
|
||||
%patch3
|
||||
%patch4 -p1
|
||||
|
||||
%build
|
||||
# -DKICAD_PLUGINS:PATH=%%{_libdir}/kicad/plugins \
|
||||
@@ -150,10 +130,8 @@ make %{?_smp_mflags}
|
||||
# Link to library libkicad_3dsg.so.2.0.0 has no use
|
||||
rm -rf %{buildroot}%{_libdir}/libkicad_3dsg.so
|
||||
|
||||
install -D scripts/library-repos-install.sh %{buildroot}%{_bindir}/kicad-library-install.sh
|
||||
|
||||
# Delete packaging/maintenance scripts
|
||||
for f in get_libngspice_so.sh library-repos-install.sh mk_macos_icons.py mk_mime_icons.py test_kicad_plugin.py test_plugin.py ; do
|
||||
for f in test_kicad_plugin.py test_plugin.py ; do
|
||||
rm "%{buildroot}%{_docdir}/kicad/scripts/$f"
|
||||
done
|
||||
# Move remaining standalone scripts to kicad directory
|
||||
@@ -190,7 +168,6 @@ cmp --quiet %{buildroot}%{_bindir}/_pcbnew.kiface %{buildroot}%{python_sitearch}
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README.txt Documentation/changelogs
|
||||
%license LICENSE.GPLv3 LICENSE.AGPLv3 LICENSE.README
|
||||
%{_bindir}/*
|
||||
@@ -205,8 +182,4 @@ cmp --quiet %{buildroot}%{_bindir}/_pcbnew.kiface %{buildroot}%{python_sitearch}
|
||||
%{_datadir}/icons/hicolor/*/apps/*.*
|
||||
%{_libdir}/libkicad_3dsg.so.2.0.0
|
||||
|
||||
%files library-install
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/kicad-library-install.sh
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user