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
This commit is contained in:
parent
4a4b0d7a9e
commit
b3344fa8df
12
kicad-suse-help-path.patch
Normal file
12
kicad-suse-help-path.patch
Normal file
@ -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" ) );
|
||||
|
@ -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
|
||||
|
||||
|
14
kicad.spec
14
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
|
||||
|
Loading…
Reference in New Issue
Block a user