279 lines
9.8 KiB
RPMSpec
279 lines
9.8 KiB
RPMSpec
#
|
|
# spec file for package plotutils (Version 2.5)
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Url: http://www.gnu.org/software/plotutils/plotutils.html
|
|
|
|
Name: plotutils
|
|
BuildRequires: gcc-c++ libpng libpng-devel zlib zlib-devel
|
|
%if %suse_version > 910
|
|
BuildRequires: xorg-x11 xorg-x11-devel
|
|
%else
|
|
BuildRequires: XFree86 XFree86-devel
|
|
%endif
|
|
%if "%(xft-config --prefix)" == "/usr"
|
|
%define fontdir /usr/share/fonts/misc
|
|
%define xlibraries /usr/%{_lib}
|
|
%define xincludes /usr/include
|
|
%else
|
|
%define fontdir /usr/X11R6/lib/X11/fonts/misc
|
|
%define xlibraries /usr/X11R6/%{_lib}
|
|
%define xincludes /usr/X11R6/include
|
|
%endif
|
|
License: GPL v2 or later; GPL v3 or later
|
|
Group: Productivity/Graphics/Visualization/Graph
|
|
AutoReqProv: on
|
|
PreReq: %install_info_prereq %suseconfig_fonts_prereq
|
|
Obsoletes: plotutil
|
|
Provides: plotutil
|
|
Version: 2.5
|
|
Release: 198
|
|
Summary: GNU Plotting Utilities
|
|
Source0: plotutils-2.5.tar.bz2
|
|
Patch: plotutils-2.5.dif
|
|
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>
|
|
James J. Clark <jjc@jclark.com>
|
|
|
|
%prep
|
|
%setup -n plotutils-2.5
|
|
%patch
|
|
|
|
%build
|
|
%{?suse_update_config:%{suse_update_config -f}}
|
|
libtoolize --copy --force
|
|
aclocal
|
|
autoconf
|
|
X11LIB=%{xlibraries}
|
|
CC="gcc"
|
|
CFLAGS="${RPM_OPT_FLAGS} -pipe"
|
|
CXX="g++"
|
|
CXXFLAGS="$CFLAGS"
|
|
CPPFLAGS="-I%{xincludes}"
|
|
LDFLAGS="-L${X11LIB}"
|
|
export CC CXX CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
|
./configure %{_target_platform} \
|
|
--prefix=/usr \
|
|
--libexecdir=%{_libdir} \
|
|
--libdir=%{_libdir} \
|
|
--with-gcc \
|
|
--with-gnu-ld \
|
|
--enable-libplotter \
|
|
--enable-libxmi \
|
|
--mandir=%{_mandir} \
|
|
--infodir=%{_infodir} \
|
|
--with-x --x-includes=%{xincludes} --x-libraries=${X11LIB}
|
|
make CC=$CC CXX="$CXX" \
|
|
CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS"
|
|
|
|
%install
|
|
make install DESTDIR=${RPM_BUILD_ROOT}
|
|
chmod 755 ${RPM_BUILD_ROOT}%{_libdir}/libplot.so.*
|
|
#
|
|
rm -rf ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil
|
|
install -m 0444 AUTHORS ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
install -m 0444 COMPAT ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
install -m 0444 COPYING ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
install -m 0444 INSTALL.fonts ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
install -m 0444 KNOWN_BUGS ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
install -m 0444 PROBLEMS ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
install -m 0444 README ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
install -m 0444 THANKS ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
install -m 0444 TODO ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
mv ${RPM_BUILD_ROOT}/usr/share/libplot ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
mv ${RPM_BUILD_ROOT}/usr/share/ode ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
mv ${RPM_BUILD_ROOT}/usr/share/pic2plot ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
mv ${RPM_BUILD_ROOT}/usr/share/tek2plot ${RPM_BUILD_ROOT}%{_defaultdocdir}/plotutil/
|
|
#
|
|
mkdir -p ${RPM_BUILD_ROOT}%{fontdir}
|
|
install -m 0444 fonts/pcf/*.pcf ${RPM_BUILD_ROOT}%{fontdir}/
|
|
gzip -9f ${RPM_BUILD_ROOT}%{fontdir}/*.pcf
|
|
#
|
|
install -m 0444 manpage.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/plotutils.1
|
|
gzip -9f ${RPM_BUILD_ROOT}%{_mandir}/man1/plotutils.1
|
|
ln -sf plotutils.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/double.1.gz
|
|
ln -sf plotutils.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/graph.1.gz
|
|
ln -sf plotutils.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/ode.1.gz
|
|
ln -sf plotutils.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/pic2plot.1.gz
|
|
ln -sf plotutils.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/plot.1.gz
|
|
ln -sf plotutils.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/plotfont.1.gz
|
|
ln -sf plotutils.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/spline.1.gz
|
|
ln -sf plotutils.1.gz ${RPM_BUILD_ROOT}%{_mandir}/man1/tek2plot.1.gz
|
|
#
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/plotutils.info.gz
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libxmi.info.gz
|
|
%run_suseconfig_fonts
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/plotutils.info.gz
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libxmi.info.gz
|
|
%run_suseconfig_fonts
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
/usr/bin/double
|
|
/usr/bin/graph
|
|
/usr/bin/ode
|
|
/usr/bin/pic2plot
|
|
/usr/bin/plot
|
|
/usr/bin/plotfont
|
|
/usr/bin/spline
|
|
/usr/bin/tek2plot
|
|
%doc %{_defaultdocdir}/plotutil/
|
|
/usr/include/plot.h
|
|
/usr/include/plotcompat.h
|
|
/usr/include/plotter.h
|
|
/usr/include/xmi.h
|
|
%doc %{_infodir}/plotutils.info.gz
|
|
%doc %{_infodir}/libxmi.info.gz
|
|
%{_libdir}/libplot.so.2.2.2
|
|
%{_libdir}/libplot.so.2
|
|
%{_libdir}/libplot.so
|
|
%{_libdir}/libplot.la
|
|
%{_libdir}/libplot.a
|
|
%{_libdir}/libxmi.so.0.1.3
|
|
%{_libdir}/libxmi.so.0
|
|
%{_libdir}/libxmi.so
|
|
%{_libdir}/libxmi.la
|
|
%{_libdir}/libxmi.a
|
|
%{_libdir}/libplotter.so.2.2.2
|
|
%{_libdir}/libplotter.so.2
|
|
%{_libdir}/libplotter.so
|
|
%{_libdir}/libplotter.la
|
|
%{_libdir}/libplotter.a
|
|
%doc %{_mandir}/man1/plotutils.1.gz
|
|
%doc %{_mandir}/man1/double.1.gz
|
|
%doc %{_mandir}/man1/graph.1.gz
|
|
%doc %{_mandir}/man1/ode.1.gz
|
|
%doc %{_mandir}/man1/pic2plot.1.gz
|
|
%doc %{_mandir}/man1/plot.1.gz
|
|
%doc %{_mandir}/man1/plotfont.1.gz
|
|
%doc %{_mandir}/man1/spline.1.gz
|
|
%doc %{_mandir}/man1/tek2plot.1.gz
|
|
%dir %{fontdir}
|
|
%{fontdir}/tekfont0.pcf.gz
|
|
%{fontdir}/tekfont1.pcf.gz
|
|
%{fontdir}/tekfont2.pcf.gz
|
|
%{fontdir}/tekfont3.pcf.gz
|
|
|
|
%changelog
|
|
* 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
|