- add minimal package for server SIG purposes
This commit is contained in:
parent
fa15d831a0
commit
3f66f16bdc
88
gnuplot.spec
88
gnuplot.spec
@ -17,7 +17,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: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
# Modifications are to be distributed as patches to the released version.
|
# Modifications are to be distributed as patches to the released version.
|
||||||
License: gnuplot and GPLv2
|
License: gnuplot and GPLv2
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
@ -28,8 +28,9 @@ Patch1: gnuplot-4.2.0-refers_to.patch
|
|||||||
BuildRequires: libpng-devel, tetex-latex, zlib-devel, libX11-devel, emacs
|
BuildRequires: libpng-devel, tetex-latex, zlib-devel, libX11-devel, emacs
|
||||||
BuildRequires: texinfo, readline-devel, libXt-devel, gd-devel, wxGTK-devel
|
BuildRequires: texinfo, readline-devel, libXt-devel, gd-devel, wxGTK-devel
|
||||||
BuildRequires: latex2html
|
BuildRequires: latex2html
|
||||||
Requires(post): /sbin/install-info
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
Requires(preun): /sbin/install-info
|
Requires(post): %{_sbindir}/alternatives
|
||||||
|
Requires(preun): %{_sbindir}/alternatives
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -41,6 +42,36 @@ dimensions and in many different formats.
|
|||||||
Install gnuplot if you need a graphics package for scientific data
|
Install gnuplot if you need a graphics package for scientific data
|
||||||
representation.
|
representation.
|
||||||
|
|
||||||
|
%package common
|
||||||
|
Group: Applications/Engineering
|
||||||
|
Summary: common gnuplot parts
|
||||||
|
Requires(post): %{_sbindir}/install-info
|
||||||
|
Requires(preun): %{_sbindir}/install-info
|
||||||
|
|
||||||
|
%description common
|
||||||
|
Gnuplot is a command-line driven, interactive function plotting
|
||||||
|
program especially suited for scientific data representation. Gnuplot
|
||||||
|
can be used to plot functions and data points in both two and three
|
||||||
|
dimensions and in many different formats.
|
||||||
|
|
||||||
|
This subpackage contains common parts needed for arbitrary version of gnuplot
|
||||||
|
|
||||||
|
%package minimal
|
||||||
|
Group: Applications/Engineering
|
||||||
|
Summary: Minimal version of program for plotting mathematical expressions and data
|
||||||
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
|
Requires(post): %{_sbindir}/alternatives
|
||||||
|
Requires(preun): %{_sbindir}/alternatives
|
||||||
|
|
||||||
|
%description minimal
|
||||||
|
Gnuplot is a command-line driven, interactive function plotting
|
||||||
|
program especially suited for scientific data representation. Gnuplot
|
||||||
|
can be used to plot functions and data points in both two and three
|
||||||
|
dimensions and in many different formats.
|
||||||
|
|
||||||
|
Install gnuplot-minimal if you need a minimal version of graphics package
|
||||||
|
for scientific data representation.
|
||||||
|
|
||||||
%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
|
||||||
@ -75,9 +106,17 @@ chmod 644 src/getcolor.h
|
|||||||
chmod 644 demo/html/webify.pl
|
chmod 644 demo/html/webify.pl
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# at first create minimal version of gnuplot for server SIG purposes
|
||||||
|
%configure --with-readline=gnu --with-png --without-linux-vga \
|
||||||
|
--enable-history-file --disable-wxwidgets
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
mv src/gnuplot src/gnuplot-minimal
|
||||||
|
|
||||||
|
# clean all settings
|
||||||
|
make clean
|
||||||
|
# create full version of gnuplot
|
||||||
%configure --with-readline=gnu --with-png --without-linux-vga \
|
%configure --with-readline=gnu --with-png --without-linux-vga \
|
||||||
--enable-history-file
|
--enable-history-file
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
cd docs
|
cd docs
|
||||||
@ -103,32 +142,56 @@ mkdir -p $RPM_BUILD_ROOT%{x11_app_defaults_dir}
|
|||||||
mv $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults/Gnuplot $RPM_BUILD_ROOT%{x11_app_defaults_dir}/Gnuplot
|
mv $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults/Gnuplot $RPM_BUILD_ROOT%{x11_app_defaults_dir}/Gnuplot
|
||||||
rm -rf $RPM_BUILD_ROOT%{_libdir}/
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/
|
||||||
|
|
||||||
|
# rename binary
|
||||||
|
mv $RPM_BUILD_ROOT%{_bindir}/gnuplot $RPM_BUILD_ROOT%{_bindir}/gnuplot-wx
|
||||||
|
# install minimal binary
|
||||||
|
install -p -m 755 ./src/gnuplot-minimal $RPM_BUILD_ROOT%{_bindir}/gnuplot-minimal
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
%{_sbindir}/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-wx 60
|
||||||
|
|
||||||
|
%post common
|
||||||
/sbin/install-info %{_infodir}/gnuplot.info %{_infodir}/dir || :
|
/sbin/install-info %{_infodir}/gnuplot.info %{_infodir}/dir || :
|
||||||
|
|
||||||
|
%post minimal
|
||||||
|
%{_sbindir}/alternatives --install %{_bindir}/gnuplot gnuplot %{_bindir}/gnuplot-minimal 40
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" = "0" ] ; then # last uninstall
|
if [ $1 = 0 ]; then
|
||||||
|
%{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-wx
|
||||||
|
fi
|
||||||
|
|
||||||
|
%preun common
|
||||||
|
if [ $1 = 0 ] ; then # last uninstall
|
||||||
/sbin/install-info --delete %{_infodir}/gnuplot.info %{_infodir}/dir || :
|
/sbin/install-info --delete %{_infodir}/gnuplot.info %{_infodir}/dir || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%preun minimal
|
||||||
|
if [ $1 = 0 ]; then
|
||||||
|
%{_sbindir}/alternatives --remove gnuplot %{_bindir}/gnuplot-minimal
|
||||||
|
fi
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/gnuplot-wx
|
||||||
|
|
||||||
|
%files common
|
||||||
|
%defattr(-,root,root,-)
|
||||||
%doc BUGS ChangeLog Copyright FAQ NEWS README TODO
|
%doc BUGS ChangeLog Copyright FAQ NEWS README TODO
|
||||||
%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 demo docs/psdoc/ps_file.doc
|
||||||
%doc docs/psdoc/ps_fontfile_doc.pdf docs/htmldocs tutorial/eg7.eps
|
%doc docs/psdoc/ps_fontfile_doc.pdf docs/htmldocs tutorial/eg7.eps
|
||||||
%dir %{_libexecdir}/gnuplot
|
|
||||||
%dir %{_libexecdir}/gnuplot/%{major}.%{minor}
|
|
||||||
%{_libexecdir}/gnuplot/%{major}.%{minor}/gnuplot_x11
|
|
||||||
%{_bindir}/gnuplot
|
|
||||||
%{_mandir}/man1/gnuplot.1.gz
|
%{_mandir}/man1/gnuplot.1.gz
|
||||||
%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
|
||||||
%{_datadir}/gnuplot/%{major}.%{minor}/PostScript/*.ps
|
%{_datadir}/gnuplot/%{major}.%{minor}/PostScript/*.ps
|
||||||
%{_datadir}/gnuplot/%{major}.%{minor}/gnuplot.gih
|
%{_datadir}/gnuplot/%{major}.%{minor}/gnuplot.gih
|
||||||
|
%dir %{_libexecdir}/gnuplot
|
||||||
|
%dir %{_libexecdir}/gnuplot/%{major}.%{minor}
|
||||||
|
%{_libexecdir}/gnuplot/%{major}.%{minor}/gnuplot_x11
|
||||||
%dir %{_datadir}/texmf
|
%dir %{_datadir}/texmf
|
||||||
%dir %{_datadir}/texmf/tex
|
%dir %{_datadir}/texmf/tex
|
||||||
%dir %{_datadir}/texmf/tex/latex
|
%dir %{_datadir}/texmf/tex/latex
|
||||||
@ -137,6 +200,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{x11_app_defaults_dir}/Gnuplot
|
%{x11_app_defaults_dir}/Gnuplot
|
||||||
%{_infodir}/gnuplot.info.gz
|
%{_infodir}/gnuplot.info.gz
|
||||||
|
|
||||||
|
%files minimal
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/gnuplot-minimal
|
||||||
|
|
||||||
%files -n emacs-%{name}
|
%files -n emacs-%{name}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc ChangeLog Copyright
|
%doc ChangeLog Copyright
|
||||||
@ -150,6 +217,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{emacs_lispdir}/%{name}/*.el
|
%{emacs_lispdir}/%{name}/*.el
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 13 2008 Ivana Varekova <varekova@redhat.com> - 4.2.4-2
|
||||||
|
- add minimal package for server SIG purposes
|
||||||
|
|
||||||
* Fri Nov 7 2008 Ivana Varekova <varekova@redhat.com> - 4.2.4-1
|
* Fri Nov 7 2008 Ivana Varekova <varekova@redhat.com> - 4.2.4-1
|
||||||
- update to 4.2.4
|
- update to 4.2.4
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user