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
This commit is contained in:
Stephan Kulow 2011-12-12 10:40:01 +00:00 committed by Git OBS Bridge
commit 474162c73e
5 changed files with 149 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

3
equalx-0.51.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f533b2576f62eef58e7a3881fe33a6a52eae1dc6884f5043e1834ae7fd350525
size 198329

View File

@ -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()

5
equalx.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Mon Dec 12 09:48:38 UTC 2011 - badshah400@gmail.com
- Initial package (version 0.51)

68
equalx.spec Normal file
View File

@ -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