Fix flatpak build
This commit is contained in:
parent
fb4cfc7967
commit
d6293d9c93
34
gnuplot.spec
34
gnuplot.spec
@ -42,8 +42,8 @@ Patch9: gnuplot-config.patch
|
|||||||
|
|
||||||
Requires: %{name}-common = %{version}-%{release}
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
Requires: dejavu-sans-fonts
|
Requires: dejavu-sans-fonts
|
||||||
Requires(post): %{_sbindir}/alternatives
|
Requires(post): /usr/sbin/alternatives
|
||||||
Requires(preun): %{_sbindir}/alternatives
|
Requires(preun): /usr/sbin/alternatives
|
||||||
|
|
||||||
#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
|
||||||
BuildRequires: cairo-devel, emacs, gd-devel, giflib-devel, libotf, libpng-devel
|
BuildRequires: cairo-devel, emacs, gd-devel, giflib-devel, libotf, libpng-devel
|
||||||
@ -94,8 +94,8 @@ This subpackage contains common parts needed for all versions of gnuplot.
|
|||||||
%package minimal
|
%package minimal
|
||||||
Summary: Minimal version of program for plotting mathematical expressions and data
|
Summary: Minimal version of program for plotting mathematical expressions and data
|
||||||
Requires: %{name}-common = %{version}-%{release}
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
Requires(post): %{_sbindir}/alternatives
|
Requires(post): /usr/sbin/alternatives
|
||||||
Requires(preun): %{_sbindir}/alternatives
|
Requires(preun): /usr/sbin/alternatives
|
||||||
|
|
||||||
%description minimal
|
%description minimal
|
||||||
Gnuplot is a command-line driven, interactive function plotting
|
Gnuplot is a command-line driven, interactive function plotting
|
||||||
@ -110,8 +110,8 @@ for scientific data representation.
|
|||||||
%package wx
|
%package wx
|
||||||
Summary: wxGTK interface for gnuplot
|
Summary: wxGTK interface for gnuplot
|
||||||
Requires: %{name}-common = %{version}-%{release}
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
Requires(post): %{_sbindir}/alternatives
|
Requires(post): /usr/sbin/alternatives
|
||||||
Requires(preun): %{_sbindir}/alternatives
|
Requires(preun): /usr/sbin/alternatives
|
||||||
Provides: gnuplot
|
Provides: gnuplot
|
||||||
Obsoletes: gnuplot < 5.0.0-4
|
Obsoletes: gnuplot < 5.0.0-4
|
||||||
|
|
||||||
@ -267,30 +267,30 @@ ln -s gnuplot.1 $RPM_BUILD_ROOT/%{_mandir}/man1/gnuplot-wx.1
|
|||||||
touch $RPM_BUILD_ROOT%{_bindir}/gnuplot
|
touch $RPM_BUILD_ROOT%{_bindir}/gnuplot
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
%{_sbindir}/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-qt 61
|
/usr/sbin/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-qt 61
|
||||||
|
|
||||||
%posttrans minimal
|
%posttrans minimal
|
||||||
%{_sbindir}/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-minimal 40
|
/usr/sbin/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-minimal 40
|
||||||
|
|
||||||
%if %{with wx}
|
%if %{with wx}
|
||||||
%posttrans wx
|
%posttrans wx
|
||||||
%{_sbindir}/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-wx 50
|
/usr/sbin/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-wx 50
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
%{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-qt || :
|
/usr/sbin/alternatives --remove gnuplot %{_bindir}/gnuplot-qt || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%preun minimal
|
%preun minimal
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
%{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-minimal || :
|
/usr/sbin/alternatives --remove gnuplot %{_bindir}/gnuplot-minimal || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%if %{with wx}
|
%if %{with wx}
|
||||||
%preun wx
|
%preun wx
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
%{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-wx || :
|
/usr/sbin/alternatives --remove gnuplot %{_bindir}/gnuplot-wx || :
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -311,8 +311,8 @@ fi
|
|||||||
|
|
||||||
%files common
|
%files common
|
||||||
%doc BUGS Copyright FAQ.pdf NEWS README RELEASE_NOTES
|
%doc BUGS Copyright FAQ.pdf NEWS README RELEASE_NOTES
|
||||||
%{_mandir}/man1/gnuplot.1.gz
|
%{_mandir}/man1/gnuplot.1*
|
||||||
%{_mandir}/man1/gnuplot-qt.1.gz
|
%{_mandir}/man1/gnuplot-qt.1*
|
||||||
%dir %{_datadir}/gnuplot
|
%dir %{_datadir}/gnuplot
|
||||||
%dir %{_datadir}/gnuplot/%{major}.%{minor}
|
%dir %{_datadir}/gnuplot/%{major}.%{minor}
|
||||||
%dir %{_datadir}/gnuplot/%{major}.%{minor}/PostScript
|
%dir %{_datadir}/gnuplot/%{major}.%{minor}/PostScript
|
||||||
@ -329,7 +329,7 @@ fi
|
|||||||
%dir %{_libexecdir}/gnuplot/%{major}.%{minor}
|
%dir %{_libexecdir}/gnuplot/%{major}.%{minor}
|
||||||
%{_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.*
|
%{_infodir}/gnuplot.info*
|
||||||
|
|
||||||
%files minimal
|
%files minimal
|
||||||
%ghost %attr(0755,-,-) %{_bindir}/gnuplot
|
%ghost %attr(0755,-,-) %{_bindir}/gnuplot
|
||||||
@ -339,7 +339,7 @@ fi
|
|||||||
%if %{with wx}
|
%if %{with wx}
|
||||||
%files wx
|
%files wx
|
||||||
%ghost %attr(0755,-,-) %{_bindir}/gnuplot
|
%ghost %attr(0755,-,-) %{_bindir}/gnuplot
|
||||||
%{_mandir}/man1/gnuplot-wx.1.gz
|
%{_mandir}/man1/gnuplot-wx.1*
|
||||||
%doc Copyright
|
%doc Copyright
|
||||||
%{_bindir}/gnuplot-wx
|
%{_bindir}/gnuplot-wx
|
||||||
%endif
|
%endif
|
||||||
@ -358,7 +358,7 @@ fi
|
|||||||
|
|
||||||
%files latex
|
%files latex
|
||||||
%doc Copyright
|
%doc Copyright
|
||||||
%{_datadir}/texlive/texmf-dist/tex/latex/gnuplot/
|
%{_texmf_vendor}/tex/latex/gnuplot/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.5-2
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.5-2
|
||||||
|
Loading…
Reference in New Issue
Block a user