From 474162c73ec8cfdcbf0627d5f049e4b69d24fbcb295480500e49dd46849d25e8 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 12 Dec 2011 10:40:01 +0000 Subject: [PATCH] Accepting request 96332 from home:badshah400 New package: equalx - graphical interface for TeX/LaTeX equations OBS-URL: https://build.opensuse.org/request/show/96332 OBS-URL: https://build.opensuse.org/package/show/Publishing/equalx?expand=0&rev=1 --- .gitattributes | 23 +++++++ equalx-0.51.tar.bz2 | 3 + ...lx-fix-no-return-in-nonvoid-function.patch | 50 ++++++++++++++ equalx.changes | 5 ++ equalx.spec | 68 +++++++++++++++++++ 5 files changed, 149 insertions(+) create mode 100644 .gitattributes create mode 100644 equalx-0.51.tar.bz2 create mode 100644 equalx-fix-no-return-in-nonvoid-function.patch create mode 100644 equalx.changes create mode 100644 equalx.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/equalx-0.51.tar.bz2 b/equalx-0.51.tar.bz2 new file mode 100644 index 0000000..65f89dc --- /dev/null +++ b/equalx-0.51.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f533b2576f62eef58e7a3881fe33a6a52eae1dc6884f5043e1834ae7fd350525 +size 198329 diff --git a/equalx-fix-no-return-in-nonvoid-function.patch b/equalx-fix-no-return-in-nonvoid-function.patch new file mode 100644 index 0000000..1e4f550 --- /dev/null +++ b/equalx-fix-no-return-in-nonvoid-function.patch @@ -0,0 +1,50 @@ +Index: equalx-0.51/src/LatexEditor.cpp +=================================================================== +--- equalx-0.51.orig/src/LatexEditor.cpp ++++ equalx-0.51/src/LatexEditor.cpp +@@ -207,6 +207,7 @@ bool LatexEditor::findAll(const QString + bool LatexEditor::findNext() + { + find(findExpr, findFlags); ++ return true; + } + + bool LatexEditor::findPrevious() +@@ -214,6 +215,7 @@ bool LatexEditor::findPrevious() + findFlags = findFlags | QTextDocument::FindBackward; + + find(findExpr, findFlags); ++ return true; + } + + void LatexEditor::insertCompletion(const QString &completion) +Index: equalx-0.51/src/MainWindow.cpp +=================================================================== +--- equalx-0.51.orig/src/MainWindow.cpp ++++ equalx-0.51/src/MainWindow.cpp +@@ -649,6 +649,7 @@ bool MainWindow::exportToDVI() + if(!status) + QMessageBox::critical(this, "Error", mess ); + ++ return true; + } + + bool MainWindow::exportToGIF() +@@ -728,6 +729,8 @@ bool MainWindow::exportToTeX() + + if(!status) + QMessageBox::critical(this, "Error", mess ); ++ ++ return true; + } + + bool MainWindow::exportToROOT() +@@ -1018,7 +1021,7 @@ bool MainWindow::runCommand(const QStrin + else + qDebug() << "[Output]" << process.readAll(); + +- ++ return true; + } + + void MainWindow::setupParser() diff --git a/equalx.changes b/equalx.changes new file mode 100644 index 0000000..ada2165 --- /dev/null +++ b/equalx.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Dec 12 09:48:38 UTC 2011 - badshah400@gmail.com + +- Initial package (version 0.51) + diff --git a/equalx.spec b/equalx.spec new file mode 100644 index 0000000..a4a1a28 --- /dev/null +++ b/equalx.spec @@ -0,0 +1,68 @@ +# +# spec file for package equalx +# +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: equalx +Version: 0.51 +Release: 1 +License: GPL-3.0+ +Summary: Editor for writing and exporting TeX/LaTeX equations +Url: http://equalx.sourceforge.net/ +Group: Productivity/Publishing/TeX/Frontends +# Original source is in zip format. Recompressed to tar.bz2. +Source: %{name}-%{version}.tar.bz2 +# PATCH-FIX-UPSTREAM equalx-fix-no-return-in-nonvoid-function.patch badshah400@gmail.com -- Fix returning random data in non-void functions +Patch0: equalx-fix-no-return-in-nonvoid-function.patch +BuildRequires: libqt4-devel +Requires: texlive-latex +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +EqualX is a helpful graphical interface to LaTeX programs. +It gives you the power and beauty for writing TeX/LaTeX equations +in a simple to use editor. + +Features included: +* Highlight find results in the Equation Preview; +* 3 modes for Refreshing the Preview +* Customise the export commands +* Professional & customisable window layout +* Equation font is computed according to desktop DPI +* Reshaping the Symbols toolbar and Templates toolbar + +%prep +%setup -q +%patch0 -p1 +sed -i 's/\r$//' LICENSE README + +%build +qmake QMAKE_CFLAGS="%optflags" QMAKE_CXXFLAGS="%optflags" + +make + +%install +make INSTALL_ROOT=%{buildroot} install + +%clean +%{?buildroot:%__rm -rf "%{buildroot}"} + +%files +%defattr(-,root,root) +%doc changelog README COPYING LICENSE +%{_bindir}/%{name} + +%changelog +