make qt terminal default instead of outdated wx

This commit is contained in:
Frantisek Kluknavsky 2015-01-24 00:13:43 +01:00
parent 797500759d
commit 81b718b04f

View File

@ -7,7 +7,7 @@
Summary: A program for plotting mathematical expressions and data Summary: A program for plotting mathematical expressions and data
Name: gnuplot Name: gnuplot
Version: %{major}.%{minor}.%{patchlevel} Version: %{major}.%{minor}.%{patchlevel}
Release: 3%{?dist} Release: 4%{?dist}
# MIT .. term/PostScript/aglfn.txt # MIT .. term/PostScript/aglfn.txt
License: gnuplot and MIT License: gnuplot and MIT
Group: Applications/Engineering Group: Applications/Engineering
@ -79,20 +79,20 @@ dimensions and in many different formats.
Install gnuplot-minimal if you need a minimal version of graphics package Install gnuplot-minimal if you need a minimal version of graphics package
for scientific data representation. for scientific data representation.
%package qt %package wx
Group: Applications/Engineering Group: Applications/Engineering
Summary: Qt interface for gnuplot Summary: Qt interface for gnuplot
Requires: %{name}-common = %{version}-%{release} Requires: %{name}-common = %{version}-%{release}
Requires(post): %{_sbindir}/alternatives Requires(post): %{_sbindir}/alternatives
Requires(preun): %{_sbindir}/alternatives Requires(preun): %{_sbindir}/alternatives
%description qt %description wx
Gnuplot is a command-line driven, interactive function plotting Gnuplot is a command-line driven, interactive function plotting
program especially suited for scientific data representation. Gnuplot program especially suited for scientific data representation. Gnuplot
can be used to plot functions and data points in both two and three can be used to plot functions and data points in both two and three
dimensions and in many different formats. dimensions and in many different formats.
This package provides a Qt based terminal version of gnuplot This package provides a wxGTK based terminal version of gnuplot
#%package -n emacs-%{name} #%package -n emacs-%{name}
#Group: Applications/Engineering #Group: Applications/Engineering
@ -226,7 +226,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_mandir}/ja/man1
mv $RPM_BUILD_ROOT%{_mandir}/man1/gnuplot-ja.1 $RPM_BUILD_ROOT/%{_mandir}/ja/man1/ mv $RPM_BUILD_ROOT%{_mandir}/man1/gnuplot-ja.1 $RPM_BUILD_ROOT/%{_mandir}/ja/man1/
%posttrans %posttrans
%{_sbindir}/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-wx 60 %{_sbindir}/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-qt 60
%post common %post common
if [ -f %{_infodir}/gnuplot.info* ]; then if [ -f %{_infodir}/gnuplot.info* ]; then
@ -236,12 +236,12 @@ fi
%posttrans minimal %posttrans minimal
%{_sbindir}/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-minimal 40 %{_sbindir}/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-minimal 40
%posttrans qt %posttrans wx
%{_sbindir}/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-qt 50 %{_sbindir}/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-wx 50
%preun %preun
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
%{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-wx || : %{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-qt || :
fi fi
%preun common %preun common
@ -256,9 +256,9 @@ if [ $1 = 0 ]; then
%{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-minimal || : %{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-minimal || :
fi fi
%preun qt %preun wx
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
%{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-qt || : %{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-wx || :
fi fi
%post latex %post latex
@ -266,7 +266,9 @@ fi
%files %files
%doc ChangeLog Copyright %doc ChangeLog Copyright
%{_bindir}/gnuplot-wx %{_bindir}/gnuplot-qt
%{_libexecdir}/gnuplot/%{major}.%{minor}/gnuplot_qt
%{_datadir}/gnuplot/%{major}.%{minor}/qt/
%files doc %files doc
%doc ChangeLog Copyright %doc ChangeLog Copyright
@ -299,11 +301,9 @@ fi
%doc ChangeLog Copyright %doc ChangeLog Copyright
%{_bindir}/gnuplot-minimal %{_bindir}/gnuplot-minimal
%files qt %files wx
%doc ChangeLog Copyright %doc ChangeLog Copyright
%{_bindir}/gnuplot-qt %{_bindir}/gnuplot-wx
%{_libexecdir}/gnuplot/%{major}.%{minor}/gnuplot_qt
%{_datadir}/gnuplot/%{major}.%{minor}/qt/
#%files -n emacs-%{name} #%files -n emacs-%{name}
#%doc ChangeLog Copyright #%doc ChangeLog Copyright
@ -322,6 +322,9 @@ fi
%{_datadir}/texmf/tex/latex/gnuplot/ %{_datadir}/texmf/tex/latex/gnuplot/
%changelog %changelog
* Fri Jan 23 2015 Frantisek Kluknavsky <fkluknav@redhat.com> - 5.0.0-4
- make qt terminal default instead of outdated wx
* Tue Jan 13 2015 Frantisek Kluknavsky <fkluknav@redhat.com> - 5.0.0-3 * Tue Jan 13 2015 Frantisek Kluknavsky <fkluknav@redhat.com> - 5.0.0-3
- qt should not be enabled automatically - qt should not be enabled automatically
- remove BuildRequires: ImageMagick - remove BuildRequires: ImageMagick