0c140ea
Name:           equalx
9fc8899
Version:        0.6.0
68d675b
Release:        3%{?dist}
0c140ea
Summary:        A graphical editor for writing LaTeX equations
0c140ea
0c140ea
License:        GPLv3+
0c140ea
URL:            http://equalx.sourceforge.net
9fc8899
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
0c140ea
Source1:        %{name}.desktop
0c140ea
0c140ea
BuildRequires:  desktop-file-utils
9fc8899
BuildRequires:  exempi-devel
0c140ea
BuildRequires:  qt4-devel 
0c140ea
Requires:       tex(dvips)
0c140ea
Requires:       tex(latex)
0c140ea
Requires:       dvipdfm
0c140ea
Requires:       dvipng
0c140ea
0c140ea
0c140ea
%description
0c140ea
EqualX is an application that helps you write equations in LaTeX
0c140ea
and preview them in real-time.
0c140ea
0c140ea
%prep
9fc8899
%setup -q
0c140ea
0c140ea
# fix line endings
0c140ea
sed 's|\r||g' LICENSE >LICENSE.new
0c140ea
touch -r LICENSE LICENSE.new
0c140ea
mv LICENSE.new LICENSE
0c140ea
0c140ea
0c140ea
%build
0c140ea
qmake-qt4
0c140ea
make %{?_smp_mflags}
0c140ea
0c140ea
0c140ea
%install
0c140ea
install -D -p bin/%{name} %{buildroot}%{_bindir}/%{name}
9fc8899
install -D -p resources/icons/%{name}/%{name}.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg
0c140ea
0c140ea
desktop-file-install \
0c140ea
  --dir %{buildroot}%{_datadir}/applications \
0c140ea
  %{SOURCE1}
0c140ea
0c140ea
0c140ea
%files
9fc8899
%doc LICENSE THANKS changelog
0c140ea
%{_bindir}/%{name}
0c140ea
%{_datadir}/applications/%{name}.desktop
9fc8899
%{_datadir}/pixmaps/%{name}.svg
0c140ea
0c140ea
0c140ea
%changelog
68d675b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-3
68d675b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
68d675b
ed49167
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
ed49167
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ed49167
9fc8899
* Sat Jun 22 2013 Martin Gieseking <martin.gieseking@uos.de> 0.6.0-1
9fc8899
- Updated to version 0.6.0.
9fc8899
- Dropped patches as they have been applied upstream.
9fc8899
5e79ec9
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4
5e79ec9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5e79ec9
6c6dc52
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-3
6c6dc52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6c6dc52
0c140ea
* Wed Jan 18 2012 Martin Gieseking <martin.gieseking@uos.de> 0.5.1-2
0c140ea
- added patches to fix serious warnings
0c140ea
- preserve timestamps in %%install
0c140ea
- more descriptive summary
0c140ea
0c140ea
* Tue Jan 17 2012 Martin Gieseking <martin.gieseking@uos.de> 0.5.1-1
0c140ea
- initial package
0c140ea