2007-01-16 00:32:57 +01:00
|
|
|
#
|
2011-11-21 12:51:14 +01:00
|
|
|
# spec file for package plotutils
|
2007-01-16 00:32:57 +01:00
|
|
|
#
|
2013-03-03 13:14:21 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:32:57 +01:00
|
|
|
#
|
2008-10-23 04:44:22 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:32:57 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: plotutils
|
2012-08-06 17:00:28 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: fontpackages-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: xorg-x11-devel
|
|
|
|
BuildRequires: zlib-devel
|
2009-01-09 02:17:30 +01:00
|
|
|
Url: http://www.gnu.org/software/plotutils/plotutils.html
|
2007-01-16 00:32:57 +01:00
|
|
|
PreReq: %install_info_prereq %suseconfig_fonts_prereq
|
2009-11-27 15:14:24 +01:00
|
|
|
Version: 2.6
|
2012-08-06 17:00:28 +02:00
|
|
|
Release: 0
|
2009-01-09 01:47:43 +01:00
|
|
|
Summary: GNU Plotting Utilities
|
2013-03-03 13:14:21 +01:00
|
|
|
License: GPL-2.0+ and GPL-3.0+
|
2012-08-06 17:00:28 +02:00
|
|
|
Group: Productivity/Graphics/Visualization/Graph
|
2009-01-09 02:17:30 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Patch: plotutils-man.patch
|
|
|
|
Patch1: plotutils-uninitialized.patch
|
|
|
|
Patch2: plotutils-dasharray-format.patch
|
|
|
|
Patch3: plotutils-autoreconf.patch
|
2012-08-30 10:49:52 +02:00
|
|
|
# libpng15.patch sent 2012-08-30 at rsm@math.arizona.edu
|
2012-08-29 14:40:46 +02:00
|
|
|
Patch4: plotutils-libpng15.patch
|
2007-01-16 00:32:57 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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 <rich@freebsd.org>
|
|
|
|
Robert Maier <rsm@math.arizona.edu>
|
|
|
|
Edward Moy <moy@parc.xerox.com>
|
|
|
|
Nick Tufillaro <nbt@reed.edu>
|
2009-01-09 01:47:43 +01:00
|
|
|
James J. Clark <jjc@jclark.com>
|
2007-01-16 00:32:57 +01:00
|
|
|
|
2009-01-09 02:17:30 +01:00
|
|
|
%package devel
|
|
|
|
Summary: GNU Plotting Utilities
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-08-06 17:00:28 +02:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: libplot2 = %{version}
|
|
|
|
Requires: libplotter2 = %{version}
|
|
|
|
Requires: libstdc++-devel
|
|
|
|
Requires: libxmi0 = %{version}
|
|
|
|
Requires: xorg-x11-libX11-devel
|
2009-01-09 02:17:30 +01:00
|
|
|
|
|
|
|
%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 <rich@freebsd.org>
|
|
|
|
Robert Maier <rsm@math.arizona.edu>
|
|
|
|
Edward Moy <moy@parc.xerox.com>
|
|
|
|
Nick Tufillaro <nbt@reed.edu>
|
|
|
|
James J. Clark <jjc@jclark.com>
|
|
|
|
|
|
|
|
%package -n libplot2
|
|
|
|
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 <rich@freebsd.org>
|
|
|
|
Robert Maier <rsm@math.arizona.edu>
|
|
|
|
Edward Moy <moy@parc.xerox.com>
|
|
|
|
Nick Tufillaro <nbt@reed.edu>
|
|
|
|
James J. Clark <jjc@jclark.com>
|
|
|
|
|
|
|
|
%package -n libplotter2
|
|
|
|
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 <rich@freebsd.org>
|
|
|
|
Robert Maier <rsm@math.arizona.edu>
|
|
|
|
Edward Moy <moy@parc.xerox.com>
|
|
|
|
Nick Tufillaro <nbt@reed.edu>
|
|
|
|
James J. Clark <jjc@jclark.com>
|
|
|
|
|
|
|
|
%package -n libxmi0
|
|
|
|
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 <rsm@math.arizona.edu>
|
|
|
|
Brian Kelleher
|
|
|
|
Joel McCormack
|
|
|
|
Todd Newman
|
|
|
|
Keith Packard
|
|
|
|
Bob Scheifler
|
|
|
|
Ken Whaley
|
|
|
|
|
2007-01-16 00:32:57 +01:00
|
|
|
%prep
|
2009-01-09 02:17:30 +01:00
|
|
|
%setup -q
|
2007-01-16 00:32:57 +01:00
|
|
|
%patch
|
2009-01-09 02:17:30 +01:00
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
2012-08-29 14:40:46 +02:00
|
|
|
%patch4 -p1
|
2009-01-09 02:17:30 +01:00
|
|
|
# Force update lex and bison code:
|
2009-11-27 15:14:24 +01:00
|
|
|
grep -rslE '(made by GNU Bison|A Bison parser, made from|"lex.yy.c")' . | xargs -r rm -f
|
2007-01-16 00:32:57 +01:00
|
|
|
|
|
|
|
%build
|
2009-01-09 02:17:30 +01:00
|
|
|
autoreconf -f -i
|
2009-01-22 13:15:35 +01:00
|
|
|
%configure --with-pic\
|
2009-01-09 02:17:30 +01:00
|
|
|
--disable-static\
|
|
|
|
--enable-libplotter\
|
|
|
|
--enable-libxmi
|
|
|
|
# FIXME: lex/bison update break parallel build:
|
|
|
|
#make %{?jobs:-j%jobs}
|
|
|
|
make
|
2007-01-16 00:32:57 +01:00
|
|
|
|
|
|
|
%install
|
2009-01-09 02:17:30 +01:00
|
|
|
%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}
|
|
|
|
#
|
2012-08-06 17:00:28 +02:00
|
|
|
install -d $RPM_BUILD_ROOT%{_miscfontsdir}
|
|
|
|
install -m 0644 fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_miscfontsdir}
|
|
|
|
gzip -9 ${RPM_BUILD_ROOT}%{_miscfontsdir}/*.pcf
|
2009-01-09 02:17:30 +01:00
|
|
|
#
|
|
|
|
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
|
2009-01-22 13:15:35 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2007-01-16 00:32:57 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/plotutils.info.gz
|
2012-08-06 17:00:28 +02:00
|
|
|
%reconfigure_fonts_post
|
2007-01-16 00:32:57 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/plotutils.info.gz
|
2012-08-06 17:00:28 +02:00
|
|
|
%reconfigure_fonts_postun
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
%reconfigure_fonts_posttrans
|
2007-01-16 00:32:57 +01:00
|
|
|
|
2009-01-09 02:17:30 +01:00
|
|
|
%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
|
|
|
|
|
2008-10-23 04:44:22 +02:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-01-16 00:32:57 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-01-09 02:17:30 +01:00
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
%{_bindir}/*
|
|
|
|
%doc %{_infodir}/plotutils*.info*
|
|
|
|
%doc %{_mandir}/man?/*.*
|
2012-08-06 17:00:28 +02:00
|
|
|
%{_miscfontsdir}
|
2009-01-09 02:17:30 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_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.*
|
2007-01-16 00:32:57 +01:00
|
|
|
|
2008-10-23 04:44:22 +02:00
|
|
|
%changelog
|