gnuplot/gnuplot.spec

231 lines
7.8 KiB
RPMSpec

Name: gnuplot
Version: 5.2.5
Release: 1mamba
Summary: Command-line driven interactive datafile and function plotting utility
Group: Applications/Mathematics
Distribution: openmamba
Vendor: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.gnuplot.info
Source0: http://downloads.sourceforge.net/project/gnuplot/gnuplot/%{version}/gnuplot-%{version}.tar.gz
Source1: %{name}-icon.png
Source2: ftp://ftp.gnuplot.info/pub/gnuplot/gnuplot.pdf.gz
Patch0: gnuplot-4.6.2-texinfo-5.patch
Patch1: gnuplot-4.6.3-lua-5.1.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libgd-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk2-devel
BuildRequires: libjpeg-devel
BuildRequires: liblua-devel
BuildRequires: libncurses-devel
BuildRequires: libpango-devel
BuildRequires: libpng12-devel
BuildRequires: libpng-devel
BuildRequires: libreadline-devel
BuildRequires: libstdc++6-devel
BuildRequires: libwxBase-unicode-devel
BuildRequires: libwxGTK-unicode-devel
BuildRequires: libX11-devel
BuildRequires: libXpm-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: tetex
BuildRequires: tetex-latex
BuildRequires: tetex-dvips
BuildRequires: groff >= 1.19.2
BuildRequires: texinfo >= 4.8
BuildRequires: emacs >= 21.4
Requires(post):%{__install_info}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# FIXME :
# checking for pdflib-config... no
# checking for PDF_get_majorversion in -lpdf... no
%description
Gnuplot is a portable command-line driven interactive datafile (text or binary) and function plotting utility for UNIX, IBM OS/2, MS Windows, DOS, Apple Macintosh, VMS, Atari and many other platforms.
It was originally intended as graphical program which would allow scientists and students to visualize mathematical functions and data.
It does this job pretty well, and in addition it serves as non-interactive plotting engine for miscellaneous portable third-party applications, like Octave.
Gnuplot is developed and supported since 1986, and having its scripts and commands easy to understand text files, it is time-portable as well.
%package doc
Group: Documentation
Summary: Gnuplot documentation
%description doc
Gnuplot is a portable command-line driven interactive datafile (text or binary) and function plotting utility for UNIX, IBM OS/2, MS Windows, DOS, Apple Macintosh, VMS, Atari and many other platforms.
It was originally intended as graphical program which would allow scientists and students to visualize mathematical functions and data.
It does this job pretty well, and in addition it serves as non-interactive plotting engine for miscellaneous portable third-party applications, like Octave.
This package contains the gnuplot manual in PDF format.
%prep
%setup -q
cp %{SOURCE2} .
#%patch0 -p1
#%patch1 -p1
%build
#autoreconf
%configure \
WX_CONFIG=%{_bindir}/wx-config-unicode \
--with-texdir=%{_datadir}/texmf/tex/latex/gnuplot
%make
make -C docs/psdoc || make -C docs/psdoc
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/gnuplot.png
# create the system menu entry
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Gnuplot
GenericName=Function plotting utility
GenericName[it]=Strumento per generare grafici
Comment=Function plotting utility
Comment[it]=Strumento per disegnare e generare grafici
Exec=konsole --notoolbar --nomenubar -e gnuplot
Icon=%{_datadir}/pixmaps/gnuplot.png
Type=Application
X-KDE-StartupNotify=false
Categories=Utility;
EOF
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
#% post
#% install_info %{name}.info
#% preun
#% uninstall_info %{name}.info
#exit 0
%files
%defattr(-,root,root)
%{_bindir}/gnuplot
%{_datadir}/applications/%{name}.desktop
#%{_libdir}/X11/app-defaults/Gnuplot
%{_libexecdir}/*
%{_datadir}/gnuplot/*
%{_datadir}/pixmaps/gnuplot.png
#%{_datadir}/emacs/*
%dir %{_datadir}/texmf/tex/latex/gnuplot
%{_datadir}/texmf/tex/latex/gnuplot/*
#%{_infodir}/gnuplot.info.*
%{_mandir}/man1/gnuplot.1*
%{_mandir}/man1/gnuplot-ja.1*
%doc Copyright
%files doc
%defattr(-,root,root)
%doc gnuplot.pdf.gz
%doc README NEWS VERSION
%doc docs/psdoc/ps_*
%doc ChangeLog
%changelog
* Wed Oct 10 2018 Automatic Build System <autodist@mambasoft.it> 5.2.5-1mamba
- automatic version update by autodist
* Sun Jun 10 2018 Automatic Build System <autodist@mambasoft.it> 5.2.4-1mamba
- automatic version update by autodist
* Sun May 20 2018 Automatic Build System <autodist@mambasoft.it> 5.2.3-1mamba
- automatic version update by autodist
* Sat Jan 06 2018 Automatic Build System <autodist@mambasoft.it> 5.2.2-1mamba
- automatic version update by autodist
* Fri Sep 08 2017 Automatic Build System <autodist@mambasoft.it> 5.2.0-1mamba
- automatic version update by autodist
* Tue Mar 28 2017 Automatic Build System <autodist@mambasoft.it> 5.0.6-1mamba
- automatic version update by autodist
* Sun Nov 06 2016 Automatic Build System <autodist@mambasoft.it> 5.0.5-1mamba
- automatic version update by autodist
* Wed Aug 03 2016 Automatic Build System <autodist@mambasoft.it> 5.0.4-1mamba
- automatic version update by autodist
* Thu Apr 21 2016 Automatic Build System <autodist@mambasoft.it> 5.0.3-1mamba
- automatic version update by autodist
* Wed Feb 03 2016 Automatic Build System <autodist@mambasoft.it> 5.0.2-1mamba
- automatic version update by autodist
* Thu Sep 17 2015 Automatic Build System <autodist@mambasoft.it> 5.0.1-1mamba
- automatic version update by autodist
* Tue Apr 21 2015 Automatic Build System <autodist@mambasoft.it> 5.0.0-1mamba
- automatic version update by autodist
* Tue Oct 21 2014 Automatic Build System <autodist@mambasoft.it> 4.6.6-1mamba
- automatic update by autodist
* Sun Apr 13 2014 Automatic Build System <autodist@mambasoft.it> 4.6.5-1mamba
- automatic version update by autodist
* Thu Oct 17 2013 Automatic Build System <autodist@mambasoft.it> 4.6.4-1mamba
- automatic update by autodist
* Tue Jun 11 2013 Automatic Build System <autodist@mambasoft.it> 4.6.3-1mamba
- automatic version update by autodist
* Fri May 10 2013 Automatic Build System <autodist@mambasoft.it> 4.6.2-1mamba
- automatic version update by autodist
* Sun Dec 02 2012 Automatic Build System <autodist@mambasoft.it> 4.6.1-1mamba
- automatic version update by autodist
* Sun Jul 08 2012 Automatic Build System <autodist@mambasoft.it> 4.6.0-1mamba
- update to 4.6.0
* Sat Mar 05 2011 Automatic Build System <autodist@mambasoft.it> 4.4.3-1mamba
- automatic update by autodist
* Thu May 13 2010 Automatic Build System <autodist@mambasoft.it> 4.4.0-1mamba
- automatic update by autodist
* Sun Sep 06 2009 Automatic Build System <autodist@mambasoft.it> 4.2.6-1mamba
- automatic update by autodist
* Mon Mar 30 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.5-1mamba
- automatic update by autodist
* Thu Jan 29 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.4-1mamba
- automatic update by autodist
* Mon Jun 16 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.3-1mamba
- update to 4.2.3
* Tue Oct 04 2005 Davide Madrisan <davide.madrisan@qilinux.it> 4.0.0-3qilnx
- specfile updates
- fixed package group
- install/uninstall info pages
- desktop file rewritten
- do not install all the stuff find in docs/, just install documentation
- new package doc with the PDF manual
* Fri Apr 15 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 4.0.0-2qilnx
- rebuild and moved from devel-contrib repository to devel repository
* Mon Sep 27 2004 Matteo Bernasconi <voyagernm@virgilio.it> 4.0.0-1qilnx
- first build