equalx/equalx.spec

69 lines
2.1 KiB
RPMSpec
Raw Normal View History

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