plotutils/plotutils.spec

174 lines
5.0 KiB
RPMSpec

%define libname libplot
Name: plotutils
Version: 2.6
Release: 4mamba
Summary: The GNU Plotting Utilities
Group: Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.gnu.org/software/plotutils/plotutils.html
Source: ftp://ftp.gnu.org/gnu/plotutils/plotutils-%{version}.tar.gz
Patch: %{name}-2.4.1-gcc3.patch
Patch1: plotutils-2.6-libpng-1.5-2.patch
License: GPL
PreReq: %{__install_info}
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libICE-devel
BuildRequires: libpng-devel
BuildRequires: libSM-devel
BuildRequires: libstdc++6-devel
BuildRequires: libX11-devel
BuildRequires: libXaw-devel
BuildRequires: libXext-devel
BuildRequires: libXmu-devel
BuildRequires: libXt-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: bison
BuildRequires: flex
BuildRequires: texinfo
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
Requires(post): %{__install_info}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This package contains command-line programs for plotting scientific data.
Many of them use libplot to export graphics.
%package -n %{libname}
Summary: The GNU Plotting libraries - from plotutils package
Group: System/Multimedia
%description -n %{libname}
This package contains the libplot, a powerful C/C++ function library for exporting 2-D vector graphics in many file formats, both vector and raster.
It can also do vector graphics animations under the X Window System.
Libplot is device-independent in the sense that its API does not depend on the type of graphics file to be exported.
%package -n %{libname}-devel
Summary: GNU Plotting headers files and static libraries
Group: Development/Libraries
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
%description -n %{libname}-devel
This package contains the libplot, a powerful C/C++ function library for exporting 2-D vector graphics in many file formats, both vector and raster.
It can also do vector graphics animations under the X Window System.
Libplot is device-independent in the sense that its API does not depend on the type of graphics file to be exported.
This package contains static libraries and header files need for development.
%prep
%setup -q
%patch1 -p0
%build
%configure --enable-libplotter --enable-libxmi
%make -j1
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
install -d %{buildroot}%{_libdir}/X11/fonts/misc
install -m 0444 fonts/pcf/*.pcf %{buildroot}%{_libdir}/X11/fonts/misc/
gzip -9f %{buildroot}%{_libdir}/X11/fonts/misc/*.pcf
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post
%install_info plotutils.info
%install_info libxmi.info
[ -x %{_bindir}/mkfontdir ] &&
%{_bindir}/mkfontdir %{_libdir}/X11/fonts/misc
exit 0
%postun
[ -x %{_bindir}/mkfontdir ] &&
%{_bindir}/mkfontdir %{_libdir}/X11/fonts/misc
exit 0
%preun
%uninstall_info plotutils.info
%uninstall_info libxmi.info
exit 0
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/double
%{_bindir}/graph
%{_bindir}/hersheydemo
%{_bindir}/ode
%{_bindir}/pic2plot
%{_bindir}/plot
%{_bindir}/plotfont
%{_bindir}/spline
%{_bindir}/tek2plot
%dir %{_datadir}/libplot
%{_datadir}/libplot/*
%dir %{_datadir}/ode
%{_datadir}/ode/*
%dir %{_datadir}/pic2plot
%{_datadir}/pic2plot/*
%dir %{_datadir}/tek2plot
%{_datadir}/tek2plot/*
%{_infodir}/libxmi.*
%{_infodir}/plotutils.*
%{_libdir}/X11/fonts/misc/*
%{_mandir}/man1/ode.*
%{_mandir}/man1/plot.*
%{_mandir}/man1/plotfont.*
%{_mandir}/man1/spline.*
%{_mandir}/man1/tek2plot.*
%doc AUTHORS COPYING NEWS README THANKS TODO
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libplot.so.*
%{_libdir}/libplotter.so.*
%{_libdir}/libxmi.so.*
%files -n %{libname}-devel
%defattr(-,root,root)
%{_includedir}/plot.h
%{_includedir}/plotcompat.h
%{_includedir}/plotter.h
%{_includedir}/xmi.h
%{_libdir}/libplot.a
%{_libdir}/libplot.la
%{_libdir}/libplot.so
%{_libdir}/libplotter.a
%{_libdir}/libplotter.la
%{_libdir}/libplotter.so
%{_libdir}/libxmi.a
%{_libdir}/libxmi.la
%{_libdir}/libxmi.so
%changelog
* Thu Dec 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-4mamba
- rebuilt against libpng 1.5 (patch added)
* Fri Nov 12 2010 Davide Madrisan <davide.madrisan@gmail.com> 2.6-3mamba
- fix plotutils.info page installation
* Thu Nov 11 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-2mamba
- rebuilt with libpng 1.4
* Tue Sep 29 2009 Automatic Build System <autodist@mambasoft.it> 2.6-1mamba
- automatic update by autodist
* Fri Nov 14 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.1-2mamba
- fix fonts installation paths for Xorg >= 6.8
* Thu Nov 13 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.1-1mamba
- update to 2.5.1
* Thu Jul 28 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.4.1-1qilnx
- package created by autospec