From b3344fa8df86143e0c1357c4db763de3cc8231a78566516957a3e4bcadda4c8a Mon Sep 17 00:00:00 2001 From: Dmitry Roshchin Date: Sun, 8 May 2016 07:04:37 +0000 Subject: [PATCH] Accepting request 394109 from home:plater Fixed help function and added %post and %postun for desktop and mime data. OBS-URL: https://build.opensuse.org/request/show/394109 OBS-URL: https://build.opensuse.org/package/show/electronics/kicad?expand=0&rev=20 --- kicad-suse-help-path.patch | 12 ++++++++++++ kicad.changes | 7 +++++++ kicad.spec | 14 ++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 kicad-suse-help-path.patch diff --git a/kicad-suse-help-path.patch b/kicad-suse-help-path.patch new file mode 100644 index 0000000..6141b2f --- /dev/null +++ b/kicad-suse-help-path.patch @@ -0,0 +1,12 @@ +Index: common/searchhelpfilefullpath.cpp +=================================================================== +--- common/searchhelpfilefullpath.cpp.orig ++++ common/searchhelpfilefullpath.cpp +@@ -107,6 +107,7 @@ wxString SearchHelpFileFullPath( const S + // Below we account for an international subdirectory. + subdirs.Add( wxT( "share" ) ); + subdirs.Add( wxT( "doc" ) ); ++ subdirs.Add( wxT( "packages" ) ); + subdirs.Add( wxT( "kicad" ) ); + subdirs.Add( wxT( "help" ) ); + diff --git a/kicad.changes b/kicad.changes index 3a8f232..2311fd5 100644 --- a/kicad.changes +++ b/kicad.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri May 6 17:10:15 UTC 2016 - davejplater@gmail.com + +- Added kicad-suse-help-path.patch to enable help in kicad. +- Added post and postun macros to allow proper integration with + various gui systems. + ------------------------------------------------------------------- Mon Mar 21 09:00:54 UTC 2016 - dmitry_r@opensuse.org diff --git a/kicad.spec b/kicad.spec index 53c08f5..5936d36 100644 --- a/kicad.spec +++ b/kicad.spec @@ -31,6 +31,9 @@ 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. +# this patch adds packges/ befor kicad. +Patch3: kicad-suse-help-path.patch %if 0%{?suse_version} > 1320 BuildRequires: boost-devel >= 1.56 %else @@ -91,6 +94,7 @@ This package contains script for KiCad libraries downloading. %setup -q -n kicad-%{version} %patch1 -p1 %patch2 -p1 +%patch3 cp %{SOURCE2} . @@ -127,6 +131,16 @@ install -D scripts/library-repos-install.sh %{buildroot}%{_bindir}/kicad-library %fdupes -s %{buildroot}%{_datadir}/kicad %fdupes -s %{buildroot}%{_datadir}/icons/hicolor +%post +%desktop_database_post +%icon_theme_cache_post +%mime_database_post + +%postun +%desktop_database_postun +%icon_theme_cache_postun +%mime_database_postun + %files %defattr(-,root,root) %doc CHANGELOG.txt COPYRIGHT.txt