plotutils/plotutils.spec

180 lines
5.2 KiB
RPMSpec
Raw Normal View History

%define libname libplot
Name: plotutils
Version: 2.6
Release: 6mamba
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
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libX11-devel
BuildRequires: libXaw-devel
BuildRequires: libXext-devel
BuildRequires: libXmu-devel
BuildRequires: libXt-devel
BuildRequires: libfl-devel
BuildRequires: libgcc
BuildRequires: libpng-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: bison
BuildRequires: flex
BuildRequires: texinfo
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
Requires(post):%{__install_info}
Requires(post): %{__install_info}
%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 needed for development.
%debug_package
%prep
%setup -q
%patch1 -p0
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
%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.*
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libplot.so.*
%{_libdir}/libplotter.so.*
%{_libdir}/libxmi.so.*
%doc AUTHORS COPYING
%files -n %{libname}-devel
%defattr(-,root,root)
%{_includedir}/plot.h
%{_includedir}/plotcompat.h
%{_includedir}/plotter.h
%{_includedir}/xmi.h
%{_libdir}/libplot.a
%{_libdir}/libplot.so
%{_libdir}/libplotter.a
%{_libdir}/libplotter.so
%{_libdir}/libxmi.a
%{_libdir}/libxmi.so
%doc NEWS README THANKS TODO
%changelog
* Sun Dec 04 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-6mamba
- rebuilt without .la files
* Sun Dec 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6-5mamba
- rebuilt with debug package and aarch64 build fix
* 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