[equalx] Initial import (#782786).

Martin Gieseking mgieseki at fedoraproject.org
Fri Jan 20 14:29:02 UTC 2012


commit 0c140ea33f58700f88c51d6d87b0e8eff02d97ca
Author: Martin Gieseking <martin.gieseking at uos.de>
Date:   Fri Jan 20 15:28:32 2012 +0100

    Initial import (#782786).

 .gitignore              |    1 +
 equalx-init-order.patch |   12 ++++++++
 equalx-return.patch     |   66 ++++++++++++++++++++++++++++++++++++++++++++
 equalx.desktop          |   16 +++++++++++
 equalx.spec             |   69 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 6 files changed, 165 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9026234 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/equalx_0.51.orig.zip
diff --git a/equalx-init-order.patch b/equalx-init-order.patch
new file mode 100644
index 0000000..e2ef45d
--- /dev/null
+++ b/equalx-init-order.patch
@@ -0,0 +1,12 @@
+diff -r 1d21ae317498 src/MainWindow.cpp
+--- a/src/MainWindow.cpp	Wed Jan 18 19:04:24 2012 +0100
++++ b/src/MainWindow.cpp	Wed Jan 18 19:07:25 2012 +0100
+@@ -62,7 +62,7 @@
+     : QMainWindow(parent),
+     ui(new Ui::MainWindowClass),
+     equation(0),
+-    isDirty(false), nUpdates(0), zoomFactor(100)
++    isDirty(false), zoomFactor(100), nUpdates(0)
+ 
+ {
+     ui->setupUi(this);
diff --git a/equalx-return.patch b/equalx-return.patch
new file mode 100644
index 0000000..6232ddf
--- /dev/null
+++ b/equalx-return.patch
@@ -0,0 +1,66 @@
+diff -r b5941b52fa15 src/LatexEditor.cpp
+--- a/src/LatexEditor.cpp	Wed Jan 18 19:08:53 2012 +0100
++++ b/src/LatexEditor.cpp	Wed Jan 18 19:09:46 2012 +0100
+@@ -206,14 +206,14 @@
+ 
+ bool LatexEditor::findNext()
+ {
+-    find(findExpr, findFlags);
++    return find(findExpr, findFlags);
+ }
+ 
+ bool LatexEditor::findPrevious()
+ {
+     findFlags = findFlags | QTextDocument::FindBackward;
+ 
+-    find(findExpr, findFlags);
++    return find(findExpr, findFlags);
+ }
+ 
+ void LatexEditor::insertCompletion(const QString &completion)
+diff -r b5941b52fa15 src/MainWindow.cpp
+--- a/src/MainWindow.cpp	Wed Jan 18 19:08:53 2012 +0100
++++ b/src/MainWindow.cpp	Wed Jan 18 19:09:46 2012 +0100
+@@ -314,7 +314,7 @@
+     toolSums->addAction(ui->actionSum_sum);
+     toolSums->addAction(ui->actionSum_sumArgs);
+     toolSums->addAction(ui->actionSum_sumArgs2);
+-    
++
+     toolIntegrals = new WidgetToolMenu(2,1, this);
+     toolIntegrals->addAction(ui->actionInt_simple);
+     toolIntegrals->addAction(ui->actionInt_oint);
+@@ -648,7 +648,7 @@
+ 
+     if(!status)
+         QMessageBox::critical(this, "Error", mess );
+-
++	 return status;
+ }
+ 
+ bool MainWindow::exportToGIF()
+@@ -728,6 +728,7 @@
+ 
+     if(!status)
+         QMessageBox::critical(this, "Error", mess );
++	 return status;
+ }
+ 
+ bool MainWindow::exportToROOT()
+@@ -1013,12 +1014,13 @@
+ 
+     process.start(commandStr);
+ 
+-    if (!process.waitForFinished())
++    if (!process.waitForFinished()) {
+         qDebug() << "[Failed] " << process.errorString();
++		  return false;
++	 }
+     else
+         qDebug() << "[Output]" << process.readAll();
+-
+-
++	 return true;
+ }
+ 
+ void MainWindow::setupParser()
diff --git a/equalx.desktop b/equalx.desktop
new file mode 100644
index 0000000..84c9b7c
--- /dev/null
+++ b/equalx.desktop
@@ -0,0 +1,16 @@
+[Desktop Entry]
+Exec=equalx
+Terminal=false
+Type=Application
+StartupNotify=false
+Icon=equalx
+Categories=Qt;Office;
+X-DBUS-StartupType=Unique
+Name=EqualX
+Name[ro]=EgalX
+GenericName=LaTeX Equation Editor
+GenericName[ro]=Editor LaTeX de ecuații 
+Comment=Create equations in LaTeX
+Comment[ro]=Creează ecuații folosind LaTeX
+
+
diff --git a/equalx.spec b/equalx.spec
new file mode 100644
index 0000000..fb7bf07
--- /dev/null
+++ b/equalx.spec
@@ -0,0 +1,69 @@
+%global version_tag 0.51
+
+Name:           equalx
+Version:        0.5.1
+Release:        2%{?dist}
+Summary:        A graphical editor for writing LaTeX equations
+
+License:        GPLv3+
+URL:            http://equalx.sourceforge.net
+Source0:        http://downloads.sourceforge.net/%{name}/%{name}_%{version_tag}.orig.zip
+Source1:        %{name}.desktop
+
+# https://bugs.launchpad.net/equalx/+bug/918337
+Patch0:         %{name}-return.patch
+Patch1:         %{name}-init-order.patch
+
+BuildRequires:  desktop-file-utils
+BuildRequires:  qt4-devel 
+Requires:       tex(dvips)
+Requires:       tex(latex)
+Requires:       dvipdfm
+Requires:       dvipng
+
+
+%description
+EqualX is an application that helps you write equations in LaTeX
+and preview them in real-time.
+
+%prep
+%setup -q -n %{name}-%{version_tag}
+%patch0 -p1
+%patch1 -p1
+
+# fix line endings
+sed 's|\r||g' LICENSE >LICENSE.new
+touch -r LICENSE LICENSE.new
+mv LICENSE.new LICENSE
+
+
+%build
+qmake-qt4
+make %{?_smp_mflags}
+
+
+%install
+install -D -p bin/%{name} %{buildroot}%{_bindir}/%{name}
+install -D -p resources/icons/%{name}-icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
+
+desktop-file-install \
+  --dir %{buildroot}%{_datadir}/applications \
+  %{SOURCE1}
+
+
+%files
+%doc COPYING LICENSE THANKS changelog 
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/pixmaps/%{name}.png
+
+
+%changelog
+* Wed Jan 18 2012 Martin Gieseking <martin.gieseking at uos.de> 0.5.1-2
+- added patches to fix serious warnings
+- preserve timestamps in %%install
+- more descriptive summary
+
+* Tue Jan 17 2012 Martin Gieseking <martin.gieseking at uos.de> 0.5.1-1
+- initial package
+
diff --git a/sources b/sources
index e69de29..3e11f64 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+397d5cfb6036212d66dd7baa0bba2a47  equalx_0.51.orig.zip


More information about the scm-commits mailing list