rebase
- rhbz#759964 submitted upstream: http://sourceforge.net/tracker/?func=detail&aid=3558970&group_id=2055&atid=302055 patch gnuplot-4.6.1-xcopygc-sigsegv.patch dropped, hopefully resolved by now - added buildrequires: latex2html - emacs bindings are separate project now - https://github.com/rudi/gnuplot-el
This commit is contained in:
parent
1a210830d8
commit
7a8f8b469f
@ -1,33 +0,0 @@
|
|||||||
diff -upr gnuplot.orig/src/gplt_x11.c gnuplot/src/gplt_x11.c
|
|
||||||
--- gnuplot.orig/src/gplt_x11.c 2012-03-18 18:30:43.000000000 +0100
|
|
||||||
+++ gnuplot/src/gplt_x11.c 2012-08-17 15:11:31.888654269 +0200
|
|
||||||
@@ -2231,7 +2231,8 @@ exec_cmd(plot_struct *plot, char *comman
|
|
||||||
/* Load selected pattern or fill into a separate gc */
|
|
||||||
if (!fill_gc)
|
|
||||||
fill_gc = XCreateGC(dpy, plot->window, 0, 0);
|
|
||||||
- XCopyGC(dpy, *current_gc, ~0, fill_gc);
|
|
||||||
+ if (current_gc)
|
|
||||||
+ XCopyGC(dpy, *current_gc, ~0, fill_gc);
|
|
||||||
x11_setfill(&fill_gc, style);
|
|
||||||
|
|
||||||
/* gnuplot has origin at bottom left, but X uses top left
|
|
||||||
@@ -2560,7 +2561,8 @@ exec_cmd(plot_struct *plot, char *comman
|
|
||||||
/* Load selected pattern or fill into a separate gc */
|
|
||||||
if (!fill_gc)
|
|
||||||
fill_gc = XCreateGC(dpy, plot->window, 0, 0);
|
|
||||||
- XCopyGC(dpy, *current_gc, ~0, fill_gc);
|
|
||||||
+ if (current_gc)
|
|
||||||
+ XCopyGC(dpy, *current_gc, ~0, fill_gc);
|
|
||||||
|
|
||||||
x11_setfill(&fill_gc, style);
|
|
||||||
|
|
||||||
@@ -2668,7 +2670,8 @@ exec_cmd(plot_struct *plot, char *comman
|
|
||||||
/* Load selected pattern or fill into a separate gc */
|
|
||||||
if (!fill_gc)
|
|
||||||
fill_gc = XCreateGC(dpy, plot->window, 0, 0);
|
|
||||||
- XCopyGC(dpy, *current_gc, ~0, fill_gc);
|
|
||||||
+ if (current_gc)
|
|
||||||
+ XCopyGC(dpy, *current_gc, ~0, fill_gc);
|
|
||||||
|
|
||||||
x11_setfill(&fill_gc, style);
|
|
||||||
|
|
109
gnuplot.spec
109
gnuplot.spec
@ -1,13 +1,13 @@
|
|||||||
%global major 4
|
%global major 5
|
||||||
%global minor 6
|
%global minor 0
|
||||||
%global patchlevel 5
|
%global patchlevel 0
|
||||||
|
|
||||||
%global x11_app_defaults_dir %{_datadir}/X11/app-defaults
|
%global x11_app_defaults_dir %{_datadir}/X11/app-defaults
|
||||||
|
|
||||||
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: 4%{?dist}
|
Release: 1%{?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
|
||||||
@ -17,9 +17,6 @@ Source1: gnuplot-init.el
|
|||||||
|
|
||||||
Patch0: gnuplot-4.2.0-refers_to.patch
|
Patch0: gnuplot-4.2.0-refers_to.patch
|
||||||
Patch1: gnuplot-4.2.0-fonts.patch
|
Patch1: gnuplot-4.2.0-fonts.patch
|
||||||
# resolves: #759964
|
|
||||||
# submitted upstream: http://sourceforge.net/tracker/?func=detail&aid=3558970&group_id=2055&atid=302055
|
|
||||||
Patch2: gnuplot-4.6.1-xcopygc-sigsegv.patch
|
|
||||||
# resolves: #812225
|
# resolves: #812225
|
||||||
# submitted upstream: http://sourceforge.net/tracker/?func=detail&aid=3558973&group_id=2055&atid=302055
|
# submitted upstream: http://sourceforge.net/tracker/?func=detail&aid=3558973&group_id=2055&atid=302055
|
||||||
Patch3: gnuplot-4.6.1-plot-sigsegv.patch
|
Patch3: gnuplot-4.6.1-plot-sigsegv.patch
|
||||||
@ -36,7 +33,7 @@ BuildRequires: librsvg2, libX11-devel, libXt-devel, lua-devel, m17n-lib
|
|||||||
BuildRequires: pango-devel, tex(latex), tex(subfigure.sty)
|
BuildRequires: pango-devel, tex(latex), tex(subfigure.sty)
|
||||||
BuildRequires: tex(cm-super-t1.enc), tex(pdftex.map), tex-tex4ht, texinfo
|
BuildRequires: tex(cm-super-t1.enc), tex(pdftex.map), tex-tex4ht, texinfo
|
||||||
BuildRequires: /usr/bin/texi2dvi
|
BuildRequires: /usr/bin/texi2dvi
|
||||||
BuildRequires: zlib-devel, libjpeg-turbo-devel, tex(ecrm1000.tfm)
|
BuildRequires: zlib-devel, libjpeg-turbo-devel, tex(ecrm1000.tfm), latex2html
|
||||||
#for some reason, ImageMagick disappeared from emacs dependecies
|
#for some reason, ImageMagick disappeared from emacs dependecies
|
||||||
BuildRequires: ImageMagick
|
BuildRequires: ImageMagick
|
||||||
#qt-terminal requires libqt >= 4.5
|
#qt-terminal requires libqt >= 4.5
|
||||||
@ -99,33 +96,34 @@ dimensions and in many different formats.
|
|||||||
|
|
||||||
This package provides a Qt based terminal version of gnuplot
|
This package provides a Qt based terminal version of gnuplot
|
||||||
|
|
||||||
%package -n emacs-%{name}
|
#%package -n emacs-%{name}
|
||||||
Group: Applications/Engineering
|
#Group: Applications/Engineering
|
||||||
Summary: Emacs bindings for the gnuplot main application
|
#Summary: Emacs bindings for the gnuplot main application
|
||||||
Requires: %{name} = %{version}-%{release}
|
#Requires: %{name} = %{version}-%{release}
|
||||||
Requires: emacs >= %{_emacs_version}
|
#Requires: emacs >= %{_emacs_version}
|
||||||
BuildRequires: emacs-el pkgconfig
|
#BuildRequires: emacs-el pkgconfig
|
||||||
BuildArch: noarch
|
#BuildArch: noarch
|
||||||
Provides: gnuplot-emacs = %{version}-%{release}
|
#Provides: gnuplot-emacs = %{version}-%{release}
|
||||||
|
|
||||||
%description -n emacs-%{name}
|
#%description -n emacs-%{name}
|
||||||
The gnuplot-emacs package contains the emacs related .elc files so that gnuplot
|
#The gnuplot-emacs package contains the emacs related .elc files so that gnuplot
|
||||||
nicely interacts and integrates into emacs.
|
#nicely interacts and integrates into emacs.
|
||||||
|
|
||||||
%package -n emacs-%{name}-el
|
#%package -n emacs-%{name}-el
|
||||||
Group: Applications/Engineering
|
#Group: Applications/Engineering
|
||||||
Summary: Emacs bindings for the gnuplot main application
|
#Summary: Emacs bindings for the gnuplot main application
|
||||||
Requires: emacs-%{name} = %{version}-%{release}
|
#Requires: emacs-%{name} = %{version}-%{release}
|
||||||
BuildArch: noarch
|
#BuildArch: noarch
|
||||||
|
|
||||||
%description -n emacs-%{name}-el
|
#%description -n emacs-%{name}-el
|
||||||
The gnuplot-emacs package contains the emacs related .el files so that gnuplot
|
#The gnuplot-emacs package contains the emacs related .el files so that gnuplot
|
||||||
nicely interacts and integrates into emacs.
|
#nicely interacts and integrates into emacs.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
Summary: Documentation fo bindings for the gnuplot main application
|
Summary: Documentation fo bindings for the gnuplot main application
|
||||||
BuildArch: noarch
|
#no longer noarch, demo contains compiled binary plugin
|
||||||
|
#BuildArch: noarch
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
The gnuplot-doc package contains the documentation related to gnuplot
|
The gnuplot-doc package contains the documentation related to gnuplot
|
||||||
@ -146,7 +144,6 @@ plotting tool.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .refto
|
%patch0 -p1 -b .refto
|
||||||
%patch1 -p1 -b .font
|
%patch1 -p1 -b .font
|
||||||
%patch2 -p1 -b .xcopygc
|
|
||||||
%patch3 -p1 -b .plot-sigsegv
|
%patch3 -p1 -b .plot-sigsegv
|
||||||
%patch4 -p1 -b .isinglethread
|
%patch4 -p1 -b .isinglethread
|
||||||
sed -i -e 's:"/usr/lib/X11/app-defaults":"%{x11_app_defaults_dir}":' src/gplt_x11.c
|
sed -i -e 's:"/usr/lib/X11/app-defaults":"%{x11_app_defaults_dir}":' src/gplt_x11.c
|
||||||
@ -177,13 +174,14 @@ ln -s ../configure .
|
|||||||
%configure %{configure_opts}
|
%configure %{configure_opts}
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
cd -
|
cd -
|
||||||
%endif
|
|
||||||
mkdir qt
|
mkdir qt
|
||||||
cd qt
|
cd qt
|
||||||
ln -s ../configure .
|
ln -s ../configure .
|
||||||
%configure %{configure_opts} --disable-wxwidgets --enable-qt
|
%configure %{configure_opts} --disable-wxwidgets --enable-qt
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
cd -
|
cd -
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# Docs don't build properly out of tree
|
# Docs don't build properly out of tree
|
||||||
%configure %{configure_opts} --with-tutorial
|
%configure %{configure_opts} --with-tutorial
|
||||||
@ -200,30 +198,33 @@ make -C tutorial
|
|||||||
make -C wx install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
make -C wx install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
||||||
# rename binary
|
# rename binary
|
||||||
mv $RPM_BUILD_ROOT%{_bindir}/gnuplot $RPM_BUILD_ROOT%{_bindir}/gnuplot-wx
|
mv $RPM_BUILD_ROOT%{_bindir}/gnuplot $RPM_BUILD_ROOT%{_bindir}/gnuplot-wx
|
||||||
%endif
|
|
||||||
# install qt
|
# install qt
|
||||||
make -C qt install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
make -C qt install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
||||||
# rename binary
|
# rename binary
|
||||||
mv $RPM_BUILD_ROOT%{_bindir}/gnuplot $RPM_BUILD_ROOT%{_bindir}/gnuplot-qt
|
mv $RPM_BUILD_ROOT%{_bindir}/gnuplot $RPM_BUILD_ROOT%{_bindir}/gnuplot-qt
|
||||||
# install minimal binary
|
# install minimal binary
|
||||||
install -p -m 755 minimal/src/gnuplot $RPM_BUILD_ROOT%{_bindir}/gnuplot-minimal
|
install -p -m 755 minimal/src/gnuplot $RPM_BUILD_ROOT%{_bindir}/gnuplot-minimal
|
||||||
|
%endif
|
||||||
|
|
||||||
# install info
|
# install info
|
||||||
make -C docs install-info DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
make -C docs install-info DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
||||||
|
|
||||||
# install emacs files
|
# install emacs files
|
||||||
install -d ${RPM_BUILD_ROOT}/%{_emacs_sitestartdir}/
|
#install -d ${RPM_BUILD_ROOT}/%{_emacs_sitestartdir}/
|
||||||
install -p -m 644 %SOURCE1 ${RPM_BUILD_ROOT}/%{_emacs_sitestartdir}/gnuplot-init.el
|
#install -p -m 644 %SOURCE1 ${RPM_BUILD_ROOT}/%{_emacs_sitestartdir}/gnuplot-init.el
|
||||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
#rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/info-look*.el*
|
#rm -f $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/info-look*.el*
|
||||||
install -d ${RPM_BUILD_ROOT}/%{_emacs_sitelispdir}/%{name}
|
#install -d ${RPM_BUILD_ROOT}/%{_emacs_sitelispdir}/%{name}
|
||||||
mv $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/gnuplot.el{,c} $RPM_BUILD_ROOT/%{_emacs_sitelispdir}/%{name}
|
#mv $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/gnuplot.el{,c} $RPM_BUILD_ROOT/%{_emacs_sitelispdir}/%{name}
|
||||||
mv $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/gnuplot-gui.el{,c} $RPM_BUILD_ROOT/%{_emacs_sitelispdir}/%{name}
|
#mv $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/gnuplot-gui.el{,c} $RPM_BUILD_ROOT/%{_emacs_sitelispdir}/%{name}
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{x11_app_defaults_dir}
|
mkdir -p $RPM_BUILD_ROOT%{x11_app_defaults_dir}
|
||||||
mv $RPM_BUILD_ROOT%{_datadir}/gnuplot/%{major}.%{minor}/app-defaults/Gnuplot $RPM_BUILD_ROOT%{x11_app_defaults_dir}/Gnuplot
|
mv $RPM_BUILD_ROOT%{_datadir}/gnuplot/%{major}.%{minor}/app-defaults/Gnuplot $RPM_BUILD_ROOT%{x11_app_defaults_dir}/Gnuplot
|
||||||
rm -rf $RPM_BUILD_ROOT%{_libdir}/
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/
|
||||||
|
|
||||||
|
mkdir -p $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-wx 60
|
||||||
|
|
||||||
@ -269,7 +270,7 @@ fi
|
|||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc ChangeLog Copyright
|
%doc ChangeLog Copyright
|
||||||
%doc docs/psdoc/ps_guide.ps docs/psdoc/ps_symbols.ps tutorial/tutorial.dvi demo docs/psdoc/ps_file.doc
|
%doc docs/psdoc/ps_guide.ps docs/psdoc/ps_symbols.ps tutorial/tutorial.dvi docs/psdoc/ps_file.doc demo
|
||||||
%doc docs/psdoc/ps_fontfile_doc.pdf docs/htmldocs tutorial/eg7.eps
|
%doc docs/psdoc/ps_fontfile_doc.pdf docs/htmldocs tutorial/eg7.eps
|
||||||
|
|
||||||
%files common
|
%files common
|
||||||
@ -292,6 +293,8 @@ fi
|
|||||||
%{_libexecdir}/gnuplot/%{major}.%{minor}/gnuplot_x11
|
%{_libexecdir}/gnuplot/%{major}.%{minor}/gnuplot_x11
|
||||||
%{x11_app_defaults_dir}/Gnuplot
|
%{x11_app_defaults_dir}/Gnuplot
|
||||||
%{_infodir}/gnuplot.info.gz
|
%{_infodir}/gnuplot.info.gz
|
||||||
|
%{_infodir}/dir
|
||||||
|
%{_mandir}/ja/man1/gnuplot-ja.1.gz
|
||||||
|
|
||||||
%files minimal
|
%files minimal
|
||||||
%doc ChangeLog Copyright
|
%doc ChangeLog Copyright
|
||||||
@ -303,23 +306,31 @@ fi
|
|||||||
%{_libexecdir}/gnuplot/%{major}.%{minor}/gnuplot_qt
|
%{_libexecdir}/gnuplot/%{major}.%{minor}/gnuplot_qt
|
||||||
%{_datadir}/gnuplot/%{major}.%{minor}/qt/
|
%{_datadir}/gnuplot/%{major}.%{minor}/qt/
|
||||||
|
|
||||||
%files -n emacs-%{name}
|
#%files -n emacs-%{name}
|
||||||
%doc ChangeLog Copyright
|
#%doc ChangeLog Copyright
|
||||||
%dir %{_emacs_sitelispdir}/%{name}
|
#%dir %{_emacs_sitelispdir}/%{name}
|
||||||
%{_emacs_sitelispdir}/*.elc
|
#%{_emacs_sitelispdir}/*.elc
|
||||||
%{_emacs_sitelispdir}/%{name}/*.elc
|
#%{_emacs_sitelispdir}/%{name}/*.elc
|
||||||
%{_emacs_sitestartdir}/*.el
|
#%{_emacs_sitestartdir}/*.el
|
||||||
|
|
||||||
%files -n emacs-%{name}-el
|
#%files -n emacs-%{name}-el
|
||||||
%doc ChangeLog Copyright
|
#%doc ChangeLog Copyright
|
||||||
%{_emacs_sitelispdir}/%{name}/*.el
|
#%{_emacs_sitelispdir}/%{name}/*.el
|
||||||
%{_emacs_sitelispdir}/*.el
|
#%{_emacs_sitelispdir}/*.el
|
||||||
|
|
||||||
%files latex
|
%files latex
|
||||||
%doc ChangeLog Copyright
|
%doc ChangeLog Copyright
|
||||||
%{_datadir}/texmf/tex/latex/gnuplot/
|
%{_datadir}/texmf/tex/latex/gnuplot/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 08 2015 Frantisek Kluknavsky <fkluknav@redhat.com> - 5.0.0-1
|
||||||
|
- rebase
|
||||||
|
- rhbz#759964 submitted upstream: http://sourceforge.net/tracker/?func=detail&aid=3558970&group_id=2055&atid=302055
|
||||||
|
patch gnuplot-4.6.1-xcopygc-sigsegv.patch dropped, hopefully resolved by now
|
||||||
|
- added buildrequires: latex2html
|
||||||
|
- emacs bindings are separate project now - https://github.com/rudi/gnuplot-el
|
||||||
|
|
||||||
|
|
||||||
* Wed Nov 19 2014 Frantisek Kluknavsky <fkluknav@redhat.com> - 4.6.5-4
|
* Wed Nov 19 2014 Frantisek Kluknavsky <fkluknav@redhat.com> - 4.6.5-4
|
||||||
- libedit-devel can not handle utf8, readline-devel is not legal with gnuplot, stick to builtin
|
- libedit-devel can not handle utf8, readline-devel is not legal with gnuplot, stick to builtin
|
||||||
https://bugzilla.redhat.com/show_bug.cgi?id=1039102
|
https://bugzilla.redhat.com/show_bug.cgi?id=1039102
|
||||||
|
Loading…
Reference in New Issue
Block a user