# # spec file for package plotutils (Version 2.5.1) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: plotutils BuildRequires: bison flex gcc-c++ libpng-devel xorg-x11-devel zlib-devel License: GPL v2 or later; GPL v3 or later Url: http://www.gnu.org/software/plotutils/plotutils.html Group: Productivity/Graphics/Visualization/Graph PreReq: %install_info_prereq %suseconfig_fonts_prereq Version: 2.5.1 Release: 1 Summary: GNU Plotting Utilities Source: %{name}-%{version}.tar.bz2 Patch: plotutils-man.patch Patch1: plotutils-uninitialized.patch Patch2: plotutils-dasharray-format.patch Patch3: plotutils-autoreconf.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define fontdir %{_datadir}/fonts/misc %description The GNU plotting utilities consist of seven command line programs: the graphics programs `graph', `plot', `tek2plot', and `plotfont', and the mathematical programs `spline', `ode', and `double'. GNU `libplot' is distributed with these programs; it is the library on which the graphics programs are based. `Libplot' is a function library for device-independent two-dimensional vector graphics, including vector graphics animations under the X Window System. Authors: -------- Rich Murphey Robert Maier Edward Moy Nick Tufillaro James J. Clark %package devel License: GPL v2 or later; GPL v3 or later Summary: GNU Plotting Utilities Group: Development/Libraries/C and C++ Requires: %{name} = %{version} glibc-devel libpng-devel zlib-devel %description devel The GNU plotting utilities consist of seven command line programs: the graphics programs `graph', `plot', `tek2plot', and `plotfont', and the mathematical programs `spline', `ode', and `double'. GNU `libplot' is distributed with these programs; it is the library on which the graphics programs are based. `Libplot' is a function library for device-independent two-dimensional vector graphics, including vector graphics animations under the X Window System. Authors: -------- Rich Murphey Robert Maier Edward Moy Nick Tufillaro James J. Clark %package -n libplot2 License: GPL v2 or later; GPL v3 or later Summary: GNU Plotting Utilities Group: System/Libraries %description -n libplot2 The GNU plotting utilities consist of seven command line programs: the graphics programs `graph', `plot', `tek2plot', and `plotfont', and the mathematical programs `spline', `ode', and `double'. GNU `libplot' is distributed with these programs; it is the library on which the graphics programs are based. `Libplot' is a function library for device-independent two-dimensional vector graphics, including vector graphics animations under the X Window System. Authors: -------- Rich Murphey Robert Maier Edward Moy Nick Tufillaro James J. Clark %package -n libplotter2 License: GPL v2 or later; GPL v3 or later Summary: GNU Plotting Utilities Group: System/Libraries %description -n libplotter2 The GNU plotting utilities consist of seven command line programs: the graphics programs `graph', `plot', `tek2plot', and `plotfont', and the mathematical programs `spline', `ode', and `double'. GNU `libplot' is distributed with these programs; it is the library on which the graphics programs are based. `Libplot' is a function library for device-independent two-dimensional vector graphics, including vector graphics animations under the X Window System. Authors: -------- Rich Murphey Robert Maier Edward Moy Nick Tufillaro James J. Clark %package -n libxmi0 License: GPL v2 or later; GPL v3 or later Summary: GNU Plotting Utilities Group: System/Libraries %description -n libxmi0 The GNU plotting utilities consist of seven command line programs: the graphics programs `graph', `plot', `tek2plot', and `plotfont', and the mathematical programs `spline', `ode', and `double'. GNU `libplot' is distributed with these programs; it is the library on which the graphics programs are based. `Libplot' is a function library for device-independent two-dimensional vector graphics, including vector graphics animations under the X Window System. Authors: -------- Robert Maier Brian Kelleher Joel McCormack Todd Newman Keith Packard Bob Scheifler Ken Whaley %prep %setup -q %patch %patch1 %patch2 %patch3 # Force update lex and bison code: rm $(fgrep -rl "made by GNU Bison" . ; fgrep -rl "A Bison parser, made from" . ; fgrep -rl '"lex.yy.c"' .) %build autoreconf -f -i %configure\ --disable-static\ --enable-libplotter\ --enable-libxmi # FIXME: lex/bison update break parallel build: #make %{?jobs:-j%jobs} make %install %makeinstall\ libplotdatadir=%{_docdir}/%{name}/libplot\ odedatadir=%{_docdir}/%{name}/ode\ tek2plotdatadir=%{_docdir}/%{name}/tek2plot\ pic2plotdatadir=%{_docdir}/%{name}/pic2plot # install -m 0644\ AUTHORS COMPAT COPYING INSTALL.fonts KNOWN_BUGS PROBLEMS README THANKS\ TODO $RPM_BUILD_ROOT%{_defaultdocdir}/%{name} # install -d $RPM_BUILD_ROOT%{fontdir} install -m 0644 fonts/pcf/*.pcf $RPM_BUILD_ROOT%{fontdir} gzip -9 ${RPM_BUILD_ROOT}%{fontdir}/*.pcf # install -m 0644 manpage.1 $RPM_BUILD_ROOT%{_mandir}/man1/plotutils.1 ln -s plotutils.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/double.1.gz ln -s plotutils.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/graph.1.gz ln -s plotutils.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/pic2plot.1.gz %post %install_info --info-dir=%{_infodir} %{_infodir}/plotutils.info.gz %run_suseconfig_fonts %postun %install_info_delete --info-dir=%{_infodir} %{_infodir}/plotutils.info.gz %run_suseconfig_fonts %post devel %install_info --info-dir=%{_infodir} %{_infodir}/libxmi.info.gz %postun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/libxmi.info.gz %post -n libplot2 -p /sbin/ldconfig %postun -n libplot2 -p /sbin/ldconfig %post -n libplotter2 -p /sbin/ldconfig %postun -n libplotter2 -p /sbin/ldconfig %post -n libxmi0 -p /sbin/ldconfig %postun -n libxmi0 -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc %{_docdir}/%{name} %{_bindir}/* %doc %{_infodir}/plotutils*.info* %doc %{_mandir}/man?/*.* %{fontdir} %files devel %defattr(-,root,root) %{_libdir}/lib*.so %{_libdir}/lib*.*a %{_includedir}/*.h %doc %{_infodir}/libxmi*.info* %files -n libplot2 %defattr(-,root,root) %{_libdir}/libplot.so.* %files -n libplotter2 %defattr(-,root,root) %{_libdir}/libplotter.so.* %files -n libxmi0 %defattr(-,root,root) %{_libdir}/libxmi.so.* %changelog * Thu Jan 08 2009 sbrabec@suse.cz - Updated to version 2.5.1: * Minor SVG output format fixes for compatability with SVG 1.1. * Error formatting changes. * New license: GPL version 3. - Install upstream man pages. - Split package and patch according to packaging rules. - Simplified spec file. - Disabled static libraries. - Update lex & bison files. - Removed obsolete version checks. * Thu Jan 08 2009 werner@suse.de - Add a fix in libplot/s_path.c to get valid SVG files (bnc#464381) * Thu Aug 10 2006 mfabian@suse.de - move fonts to /usr/share/fonts/misc (because of X11R7). * Mon May 22 2006 werner@suse.de - Update to plotutils 2.5 libplot: * support for rotated and sheared (i.e., "anamorphically transformed") X Window System fonts has been completely rewritten. * URW versions of the standard 35 Adobe fonts (Helvetica, Times-Roman etc.) are now checked for under their own names on any X Window System display, as well as under the Adobe names. * SVG output is now conformant SVG 1.1 * vertical positioning of text strings by the SVG driver improved * the ROTATION parameter can now take values other than 0, 90, 180, and 270. * modifiers fixed, such as appended "xsize=6in", "yoffset=8cm" * problems with PS output triggering an error in some versions of ghostscript now fixed * most external symbols not meant to be publicly accessible now have names beginning with the prefix "_pl_", to reduce the possibility of namespace collisions. This will be completed in a later release. graph: * plotting of rotated y-axis labels by the `-Y' option, when `-T X' is specified * new short `-Q' option, equivalent to `--toggle-rotate-y-axis-label'. graph,plot,tek2plot,plotfont,pic2plot: * `--display-type' long option, the name of which confused some users, has been changed to `--output-format'. * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Fri Dec 03 2004 mfabian@suse.de - use new macro "%%run_suseconfig_fonts". * Wed Dec 01 2004 werner@suse.de - Do not be fooled by missing SuSEconfig module on non X11 systems * Fri Mar 19 2004 mfabian@suse.de - use %%suseconfig_fonts_prereq - run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun * Sun Jan 11 2004 adrian@suse.de - build as user * Sat Jan 10 2004 adrian@suse.de - add %%run_ldconfig * Thu Apr 24 2003 ro@suse.de - fix install_info --delete call and move from preun to postun * Fri Feb 28 2003 werner@suse.de - Fix bug #23452: use intall-info for info file * Fri Nov 22 2002 olh@suse.de - obsoletes/provides plotutil (#21848) * Tue Sep 17 2002 ro@suse.de - removed bogus self-provides * Tue Jun 18 2002 meissner@suse.de - rerun auto* tools. * Fri May 03 2002 werner@suse.de - Set correct X11 library path - Automagic update of config.guess and config.sub * Mon Dec 17 2001 werner@suse.de - Update to 2.4.1 - Use BuildRoot - Rename package from plotutil to plotutils * Tue Jun 26 2001 schwab@suse.de - Fix for gcc 3.0. * Tue May 08 2001 mfabian@suse.de - bzip2 sources * Wed May 31 2000 werner@suse.de - Use %%{_defaultdocdir} * Wed Mar 08 2000 bs@suse.de - no ldconfig in %%post please. * Fri Feb 11 2000 werner@suse.de - Fix call of ldconfig, only if called in real root file system * Thu Jan 20 2000 ro@suse.de - update to 2.3 to make it build - info,man: use macros to move to /usr/share * Mon Sep 13 1999 bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Mon Apr 05 1999 bs@suse.de - fixed date strings in .changes. * Fri Mar 26 1999 werner@suse.de - Update to version 2.2 * Wed Mar 03 1999 werner@suse.de - New package, version 2.1.6