[kicad] Use local autorouter

Lubomir Rintel lkundrak at fedoraproject.org
Fri Jan 2 19:55:11 UTC 2015


commit 15862148cfb70ebf41b437441361c375263fc2ee
Author: Lubomir Rintel <lkundrak at v3.sk>
Date:   Fri Jan 2 20:53:49 2015 +0100

    Use local autorouter

 kicad-2014.03.13-freerouting.patch |   35 +++++++++++++++++++++++++++++++++++
 kicad.spec                         |   11 ++++++++++-
 2 files changed, 45 insertions(+), 1 deletions(-)
---
diff --git a/kicad-2014.03.13-freerouting.patch b/kicad-2014.03.13-freerouting.patch
new file mode 100644
index 0000000..1a4b10b
--- /dev/null
+++ b/kicad-2014.03.13-freerouting.patch
@@ -0,0 +1,35 @@
+From 9d88c45740d48d4fd5c77c6012731189c2acb6e6 Mon Sep 17 00:00:00 2001
+From: Lubomir Rintel <lkundrak at v3.sk>
+Date: Wed, 24 Dec 2014 09:53:49 +0100
+Subject: [PATCH] Try to run freerouting locally
+
+The web site is no longer available and freerouting turned free software.
+Fedora ships it.
+---
+ pcbnew/dialogs/dialog_freeroute_exchange.cpp | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/pcbnew/dialogs/dialog_freeroute_exchange.cpp b/pcbnew/dialogs/dialog_freeroute_exchange.cpp
+index ca3bef0..2dca971 100644
+--- a/pcbnew/dialogs/dialog_freeroute_exchange.cpp
++++ b/pcbnew/dialogs/dialog_freeroute_exchange.cpp
+@@ -126,7 +126,15 @@ void DIALOG_FREEROUTE::OnLaunchButtonClick( wxCommandEvent& event )
+ {
+     wxString url;
+     wxString command;
+-    wxFileName fileName( FindKicadFile( wxT( "freeroute.jnlp" ) ), wxPATH_UNIX );
++    wxFileName fileName( FindKicadFile( wxT( "freerouting" ) ), wxPATH_UNIX );
++
++    if( fileName.FileExists() )
++    {
++        ProcessExecute( fileName.GetFullPath() );
++        return;
++    } else {
++        fileName.Assign ( FindKicadFile( wxT( "freeroute.jnlp" ) ), wxPATH_UNIX );
++    }
+ 
+     if( fileName.FileExists() )
+     {
+-- 
+2.1.0
+
diff --git a/kicad.spec b/kicad.spec
index 1436c49..97d8807 100644
--- a/kicad.spec
+++ b/kicad.spec
@@ -1,6 +1,6 @@
 Name:           kicad
 Version:        2014.03.13
-Release:        9.rev4744%{?dist}
+Release:        10.rev4744%{?dist}
 Summary:        Electronic schematic diagrams and printed circuit board artwork
 Summary(fr):    Saisie de schéma électronique et routage de circuit imprimé
 
@@ -28,6 +28,7 @@ Source8:        %{name}-walter-libraries-%{version}.tar.xz
 Patch0:         pcb_calculator-desktop-fix.patch
 Patch1:         kicad-2014.03.13-nostrip.patch
 Patch2:         kicad-2014.03.13-fp-lib.patch
+Patch3:         kicad-2014.03.13-freerouting.patch
 
 BuildRequires:  desktop-file-utils
 BuildRequires:  wxGTK-devel
@@ -37,6 +38,7 @@ BuildRequires:  doxygen
 BuildRequires:  glew-devel
 
 Requires:       electronics-menu
+Requires:       freerouting
 
 %description
 Kicad is an EDA software to design electronic schematic
@@ -184,6 +186,7 @@ Documentation and tutorials for Kicad in Chinese
 
 %patch0 -p1
 %patch1 -p1
+%patch3 -p1
 
 cd %{name}-libraries-%{version}
 %patch2 -p1
@@ -279,6 +282,9 @@ ln -f %{buildroot}%{_datadir}/%{name}/template/fp-lib-table{.for-pretty,}
 %{__cp} -pr %{name}-doc-%{version}/doc/* %{buildroot}%{_docdir}/%{name}
 %{__cp} -pr AUTHORS.txt CHANGELOG* %{buildroot}%{_docdir}/%{name}
 
+# Drop this, it's no longer able to webstart the freerouter
+# and we have it available locally anyway
+rm %{buildroot}%{_bindir}/*.jnlp
 
 %find_lang %{name}
 
@@ -367,6 +373,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 
 
 %changelog
+* Fri Jan 02 2015 Lubomir Rintel <lkundrak at v3.sk> - 2014.03.13-10.rev4744
+- Use local autorouter
+
 * Sun Nov 30 2014 Lubomir Rintel <lkundrak at v3.sk> - 2014.03.13-9.rev4744
 - Install library footprints
 


More information about the scm-commits mailing list