Accepting request 449855 from home:plater

Update to 4.0.5

OBS-URL: https://build.opensuse.org/request/show/449855
OBS-URL: https://build.opensuse.org/package/show/electronics/kicad?expand=0&rev=31
This commit is contained in:
2017-01-14 16:31:05 +00:00
committed by Git OBS Bridge
parent 040f22fa99
commit 071d6b4d4f
4 changed files with 51 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package kicad
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: kicad
Version: 4.0.4
Version: 4.0.5
Release: 0
Summary: EDA software suite for the creation of schematics and PCB
License: GPL-2.0+ and GPL-3.0+
@@ -31,7 +31,7 @@ Source2: COPYRIGHT.txt
Patch1: kicad-user-library.patch
# PATCH-FEATURE-OPENSUSE kicad-library-repos-install.patch
Patch2: kicad-library-repos-install.patch
# kicad looks in /usr/share/doc/kicad for help files and doesn't find them.
# 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.
Patch3: kicad-suse-help-path.patch
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
@@ -63,9 +63,11 @@ BuildRequires: pkgconfig(zlib)
BuildRequires: hicolor-icon-theme
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python-wxWidgets-3_0 >= 3
Recommends: %{name}-doc
# The help function doesn't work without the doc package
Requires: %{name}-doc = %{version}
Recommends: %{name}-library = %{version}
Recommends: %{name}-library-install = %{version}
Recommends: %{name}-footprints = %{version}
Obsoletes: kicad = 20140120
%description
@@ -125,6 +127,10 @@ make %{?_smp_mflags}
%install
%cmake_install
find %{buildroot}%{_datadir}/kicad/scripting/plugins -name "*.py" -exec chmod 0644 "{}" "+"
#Change permissions back for executable scripts
chmod -f 0755 `find %{buildroot}%{_datadir}/kicad/scripting/plugins -name "*.py" -perm 0644 -print0|xargs -0r grep -l '#!/usr'`
%suse_update_desktop_file -r bitmap2component "Education;Engineering"
%suse_update_desktop_file -r cvpcb "Education;Engineering"
%suse_update_desktop_file -r eeschema "Education;Engineering"