2011-05-31 01:15:21 +00:00
#
# spec file for package plplot
#
2024-04-10 08:04:22 +00:00
# Copyright (c) 2024 SUSE LLC
2011-05-31 01:15:21 +00: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.
2019-06-05 13:18:32 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2011-05-31 01:15:21 +00:00
#
2012-02-12 19:55:48 +00:00
2015-07-26 11:33:15 +00:00
%define lua_version 5.3
2011-08-04 09:08:28 +00:00
2020-02-24 14:14:21 +00:00
%bcond_with ocaml_camlidl
2016-04-02 16:47:32 +00:00
%define tk_enabled 1
2021-07-05 00:46:00 +00:00
# SECTION swig is patched on TW to support octave 6, but not on any Leaps
%if 0%{?suse_version} >= 1550
#
# No qhull/octave on arch, ppc
%ifarch %ix86 x86_64
2023-05-04 13:22:05 +00:00
# Octave 8+ unsupported
%define octave_enabled 0
2021-07-05 00:46:00 +00:00
%else
%define octave_enabled 0
%endif
#
%else
2020-07-21 11:36:13 +00:00
%define octave_enabled 0
2021-07-05 00:46:00 +00:00
%endif
2018-06-09 14:22:18 +00:00
# /SECTION
2016-08-08 10:59:17 +00:00
2021-04-06 12:09:41 +00:00
%bcond_without qhull
2020-11-29 13:30:37 +00:00
# FIXME Doesn't build with fPIC (it seems)
2023-06-29 08:13:32 +00:00
%define ada_enabled 0
2020-11-29 13:30:37 +00:00
2014-02-13 15:30:15 +00:00
%define X_display ":98"
2019-01-28 23:02:17 +00:00
%define ada_shlib libplplotada4
2019-06-05 13:18:32 +00:00
%define c_shlib libplplot17
%define cxx_shlib libplplotcxx15
2017-02-08 17:06:01 +00:00
%define csirocsa_shlib libcsirocsa0
%define csironn_shlib libcsironn0
2017-08-28 09:27:13 +00:00
%define fort_shlib libplplotfortran0
2017-02-08 17:06:01 +00:00
%define qsastime_shlib libqsastime0
%define qt_shlib libplplotqt2
%define wx_shlib libplplotwxwidgets1
2021-04-06 12:09:41 +00:00
# DONT SPLIT OUT plplot-tcltk-libs INTO INDIVIDUAL SHARED LIBS AS THEY ARE ALL REQUIRED TOGETHER AND THEIR SO NUMBERING CHANGE IN-STEP WITH EACH OTHER
2017-02-08 17:06:01 +00:00
2024-04-10 08:04:22 +00:00
%define skip_python312 1
2023-06-29 08:13:32 +00:00
2011-05-31 01:15:21 +00:00
Name : plplot
2019-06-05 13:18:32 +00:00
Version : 5.15.0
2012-02-13 14:18:53 +00:00
Release : 0
2017-02-11 22:53:13 +00:00
Summary : Software package for creating scientific plots
2017-11-30 10:14:16 +00:00
# Main license is LGPL-2.1+, but Octave bindings are licensed as GPL-2.0+
2021-04-06 12:09:41 +00:00
License : GPL-2.0-or-later AND LGPL-2.1-or-later
2011-05-31 01:15:21 +00:00
Group : Productivity/Scientific/Other
2019-06-05 13:18:32 +00:00
URL : http://plplot.sourceforge.net/
2013-10-03 15:15:36 +00:00
Source0 : http://download.sf.net/plplot/%{name} -%{version} .tar.gz
2020-02-25 12:54:55 +00:00
Patch0 : plplot-ocaml.patch
2012-09-17 16:44:05 +00:00
# PATCH-FIX-UPSTREAM plplot-5.9.9-ada-pic.patch idoenmez@suse.de -- Compile Ada code with -fPIC
2013-10-03 15:15:36 +00:00
Patch1 : plplot-5.9.9-ada-pic.patch
2020-07-17 12:51:41 +00:00
# PATCH-FIX-UPSTREAM plplot-include-QPainterPath.patch badshah400@gmail.com -- Include QPainterPath header when building Qt modules, needed for Qt >= 5.15.0; patch from upstream
Patch2 : plplot-include-QPainterPath.patch
2021-02-14 13:25:55 +00:00
# PATCH-FIX-UPSTREAM plplot-drop-FindLua-cmake-module.patch badshah400@gmail.com -- Drop in-house FindLua.cmake module, which is severely dated, to use cmake's own module and fix building for lua >= 5.4; patch taken from upstream.
Patch3 : plplot-drop-FindLua-cmake-module.patch
2021-04-06 12:09:41 +00:00
# PATCH-FIX-UPSTREAM https://sourceforge.net/p/plplot/bugs/196/ -- Use reentrant libqhull_r
Patch4 : 0001-Use-reentrant-libqhull_r-instead-of-deprecated-libqh.patch
2021-07-06 13:50:55 +00:00
# PATCH-FIX-UPSTREAM support-python3-pythondemos.patch Use print function, so the script works with Python 3
Patch5 : support-python3-pythondemos.patch
2023-06-29 08:13:32 +00:00
# PATCH-FIX-UPSTREAM plplot-libharu-version-check.patch badshah400@gmail.com -- Include correct header for libharu version checks
Patch6 : plplot-libharu-version-check.patch
2024-04-10 08:04:22 +00:00
# PATCH-FIX-UPSTREAM plplot-pkgconfig-includedir.patch badshah400@gmail.com -- Fix includedir in pkgconfig files
Patch7 : plplot-pkgconfig-includedir.patch
2024-09-20 15:22:43 +00:00
# PATCH-FIX-UPSTREAM plplot-numpy-2.0-compat.patch gh#PLplot/PLplot#10 badshah400@gmail.com -- Make plplot compilation compatible with numpy >= 2.0
Patch8 : plplot-numpy-2.0-compat.patch
2024-09-28 11:16:05 +00:00
# PATCH-FIX-SUSE
Patch9 : plplot-reproducible-jar-mtime.patch
2019-09-29 18:57:44 +00:00
# List based on build_ada in gcc.spec
ExclusiveArch : %ix86 x86_64 ppc ppc64 ppc64le s390 s390x ia64 aarch64 riscv64
2019-06-05 13:18:32 +00:00
BuildRequires : cmake >= 3.13.2
2011-05-31 01:15:21 +00:00
BuildRequires : fdupes
2012-02-13 14:18:53 +00:00
BuildRequires : freefont
2023-06-29 08:13:32 +00:00
%if 0%{?ada_enabled}
2011-05-31 01:15:21 +00:00
BuildRequires : gcc-ada
2020-11-29 13:30:37 +00:00
%endif
2017-02-08 17:06:01 +00:00
BuildRequires : gcc-fortran >= 6
2011-05-31 01:15:21 +00:00
BuildRequires : itcl-devel
BuildRequires : itk
BuildRequires : java-devel
2012-04-07 17:29:50 +00:00
BuildRequires : lapack-devel
2023-06-29 08:13:32 +00:00
BuildRequires : libharu-devel >= 2.3.0
2011-05-31 01:15:21 +00:00
BuildRequires : libtool
BuildRequires : ncurses-devel
2020-02-24 14:14:21 +00:00
%if %{with ocaml_camlidl}
2013-10-03 15:15:36 +00:00
BuildRequires : ocaml
2020-02-25 12:54:55 +00:00
BuildRequires : ocaml-rpm-macros
2020-02-24 14:14:21 +00:00
BuildRequires : ocamlfind(camlidl)
2020-02-25 12:54:55 +00:00
BuildRequires : ocamlfind(findlib)
2020-02-24 14:14:21 +00:00
%endif
2023-06-29 08:13:32 +00:00
BuildRequires : %{python_module devel}
BuildRequires : %{python_module numpy-devel}
BuildRequires : %{python_module qt5-devel}
BuildRequires : %{python_module sip4-devel if %python-base < 3.11}
2011-05-31 01:15:21 +00:00
BuildRequires : pkgconfig
2023-06-29 08:13:32 +00:00
BuildRequires : python-rpm-macros
2020-11-29 13:30:37 +00:00
%if %{with qhull}
2017-02-08 17:06:01 +00:00
BuildRequires : qhull-devel
2020-11-29 13:30:37 +00:00
%endif
2011-05-31 01:15:21 +00:00
BuildRequires : swig
BuildRequires : tcl-devel
BuildRequires : tk-devel
2017-02-08 17:06:01 +00:00
BuildRequires : pkgconfig(Qt5Core)
BuildRequires : pkgconfig(Qt5Gui)
BuildRequires : pkgconfig(Qt5PrintSupport)
BuildRequires : pkgconfig(Qt5Svg)
BuildRequires : pkgconfig(Qt5Widgets)
2023-06-29 08:13:32 +00:00
BuildRequires : pkgconfig(gdlib)
2015-01-31 10:25:39 +00:00
BuildRequires : pkgconfig(pango)
2016-08-06 14:22:23 +00:00
BuildRequires : pkgconfig(pangoft2)
2019-12-13 10:05:38 +00:00
BuildRequires : pkgconfig(shapelib)
2016-04-02 16:47:32 +00:00
# Required for enabling tk driverand in the %%check section, currently disabled
2017-12-01 13:48:08 +00:00
BuildRequires : hdf5-devel
2018-06-09 14:22:18 +00:00
%if %{?octave_enabled}
2017-12-01 13:48:08 +00:00
BuildRequires : octave-devel
2018-06-09 14:22:18 +00:00
%endif
2023-06-29 08:13:32 +00:00
BuildRequires : wxGTK3-devel >= 3.1
2014-02-13 15:30:15 +00:00
BuildRequires : xorg-x11-server
2012-04-07 17:29:50 +00:00
BuildRequires : perl(XML::DOM)
2011-05-31 01:15:21 +00:00
BuildRequires : pkgconfig(freetype2)
2013-12-28 16:27:33 +00:00
BuildRequires : pkgconfig(lasi)
2017-12-01 13:48:08 +00:00
BuildRequires : pkgconfig(lua)
2011-05-31 01:15:21 +00:00
Requires : libtool
2023-06-29 08:13:32 +00:00
Requires : python-numpy
2011-05-31 01:15:21 +00:00
Recommends: %{name} -doc = %{version}
2023-06-29 08:13:32 +00:00
%define python_subpackage_only 1
%python_subpackages
2011-05-31 01:15:21 +00:00
%description
PLplot is a library of functions that are useful for making scientific
plots.
PLplot can be used from within compiled languages such as C, C++,
FORTRAN and Java, and interactively from interpreted languages such as
Octave, Python, Perl and Tcl.
The PLplot library can be used to create standard x-y plots, semilog
plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar
charts and pie charts. Multiple graphs (of the same or different sizes)
may be placed on a single page with multiple lines in each graph.
A variety of output file devices such as Postscript, png, jpeg, LaTeX
and others, as well as interactive devices such as xwin, tk, xterm and
Tektronics devices are supported. New devices can be easily added by
writing a small number of device dependent routines.
There are almost 2000 characters in the extended character set. This
includes four different fonts, the Greek alphabet and a host of
mathematical, musical, and other symbols. Some devices supports its own
way of dealing with text, such as the Postscript and LaTeX drivers, or
the png and jpeg drivers that uses the Freetype library.
This package provides the shared libraries for PLplot.
2017-02-08 17:06:01 +00:00
%package common
##########################################################################
Summary : Files for development with PLplot
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : Productivity/Graphics/Visualization/Graph
Provides : %{name} = %{version}
Obsoletes : %{name} < 5.12.0
%description common
PLplot is a library of functions that are useful for making scientific
plots.
PLplot can be used from within compiled languages such as C, C++,
FORTRAN and Java, and interactively from interpreted languages such as
Octave, Python, Perl and Tcl.
This package provides some common files shared between the different
PLplot interfaces.
%files common
%dir %{_libdir} /plplot%{version}
%dir %{_libdir} /plplot%{version} /drivers
%dir %{_datadir} /plplot%{version}
%{_libdir} /plplot%{version} /drivers/null.driver_info
%{_libdir} /plplot%{version} /drivers/null.so
%{_libdir} /plplot%{version} /drivers/mem.driver_info
%{_libdir} /plplot%{version} /drivers/mem.so
2019-12-13 10:05:38 +00:00
%{_datadir} /plplot%{version} /*.shp
%{_datadir} /plplot%{version} /*.shx
%{_datadir} /plplot%{version} /ss/
2017-02-08 17:06:01 +00:00
%{_datadir} /plplot%{version} /*.fnt
%{_datadir} /plplot%{version} /*.pal
%dir %{_datadir} /plplot%{version} /examples
%{_datadir} /plplot%{version} /examples/Chloe.pgm
%{_datadir} /plplot%{version} /examples/README.Chloe
##########################################################################
2011-08-04 09:08:28 +00:00
2017-02-08 17:06:01 +00:00
%package devel
##########################################################################
2011-05-31 01:15:21 +00:00
Summary : Files for development with PLplot
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-05-31 01:15:21 +00:00
Group : Development/Libraries/C and C++
2017-02-08 17:06:01 +00:00
Requires : %{c_shlib} = %{version}
Requires : %{csirocsa_shlib} = %{version}
2020-12-22 13:35:09 +00:00
%if %{with qhull}
2017-02-08 17:06:01 +00:00
Requires : %{csironn_shlib} = %{version}
2020-12-22 13:35:09 +00:00
%endif
2017-02-08 17:06:01 +00:00
Requires : %{qsastime_shlib} = %{version}
2011-05-31 01:15:21 +00:00
Requires : gcc-c++
Requires : pkgconfig
2017-02-08 17:06:01 +00:00
Requires : plplot-common = %{version}
2011-05-31 01:15:21 +00:00
Requires : pkgconfig(freetype2)
2017-02-08 17:06:01 +00:00
Provides : %{name} = %{version}
Obsoletes : %{name} < 5.12.0
2011-05-31 01:15:21 +00:00
%description devel
PLplot is a library of functions that are useful for making scientific
plots.
PLplot can be used from within compiled languages such as C, C++,
FORTRAN and Java, and interactively from interpreted languages such as
Octave, Python, Perl and Tcl.
This package provides the files necessary for development with PLplot
2017-02-08 17:06:01 +00:00
in C.
2011-05-31 01:15:21 +00:00
2023-06-29 08:13:32 +00:00
%files devel -f %{_builddir}/%{name}.filelist.ocaml
2019-06-05 13:18:32 +00:00
%license COPYING.LIB Copyright
%doc AUTHORS FAQ README README.release
2017-02-08 17:06:01 +00:00
%{_bindir} /pltek
%{_infodir} /plplotdoc.info*
%{_mandir} /man1/pltek.1.gz
%{_includedir} /plplot/
%exclude %{_includedir} /plplot/plstream.h
%{_libdir} /libcsirocsa.so
%{_libdir} /libplplot.so
%{_libdir} /libqsastime.so
%{_libdir} /pkgconfig/plplot.pc
%dir %{_libdir} /cmake/plplot
2019-06-05 13:18:32 +00:00
%{_libdir} /cmake/plplot/export_csirocsa.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_csirocsa-*.cmake
2020-11-29 13:30:37 +00:00
%if %{with qhull}
2019-12-13 10:05:38 +00:00
%{_libdir} /libcsironn.so
2019-06-05 13:18:32 +00:00
%{_libdir} /cmake/plplot/export_csironn.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_csironn-*.cmake
2020-11-29 13:30:37 +00:00
%endif
2019-06-05 13:18:32 +00:00
%{_libdir} /cmake/plplot/export_mem.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_mem-*.cmake
2019-06-05 13:18:32 +00:00
%{_libdir} /cmake/plplot/export_null.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_null-*.cmake
2017-02-08 17:06:01 +00:00
%{_libdir} /cmake/plplot/export_plplot.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plplot-*.cmake
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_plplotc.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plplotc-*.cmake
2019-06-05 13:18:32 +00:00
%{_libdir} /cmake/plplot/export_plserver.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plserver-*.cmake
2019-06-05 13:18:32 +00:00
%{_libdir} /cmake/plplot/export_pltek.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_pltek-*.cmake
2019-06-05 13:18:32 +00:00
%{_libdir} /cmake/plplot/export_qsastime.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_qsastime-*.cmake
2017-02-08 17:06:01 +00:00
%{_libdir} /cmake/plplot/plplotConfig.cmake
2019-06-05 13:18:32 +00:00
%{_libdir} /cmake/plplot/plplot_exports.cmake
2017-02-08 17:06:01 +00:00
%{_mandir} /man3/pl*.3*
# PLMETA DRIVER DISABLED
#%%{_bindir}/plm2gif
#%%{_bindir}/plpr
#%%{_bindir}/plrender
#%%{_mandir}/man1/plm2gif.1.gz
#%%{_mandir}/man1/plpr.1.gz
#%%{_mandir}/man1/plrender.1.gz
#%%{_datadir}/plplot%%{version}/examples/test_plrender.sh
#%%{_libdir}/plplot%%{version}/drivers/plmeta.driver_info
#%%{_libdir}/plplot%%{version}/drivers/plmeta.so
%dir %{_datadir} /plplot%{version} /examples
2019-06-05 13:18:32 +00:00
%dir %{_datadir} /plplot%{version} /examples/plplot_test
%{_datadir} /plplot%{version} /examples/CTestConfig.cmake
%{_datadir} /plplot%{version} /examples/CTestCustom.cmake.in
2017-02-08 17:06:01 +00:00
%{_datadir} /plplot%{version} /examples/plplot-test.sh
%{_datadir} /plplot%{version} /examples/plplot-test-interactive.sh
%{_datadir} /plplot%{version} /examples/c/
%{_datadir} /plplot%{version} /examples/c++/
%{_datadir} /plplot%{version} /examples/Makefile
2019-06-05 13:18:32 +00:00
%{_datadir} /plplot%{version} /examples/plplot_test/CMakeLists.txt
2017-02-08 17:06:01 +00:00
%{_datadir} /plplot%{version} /examples/test_c.sh
%{_datadir} /plplot%{version} /examples/test_c_interactive.sh
%{_datadir} /plplot%{version} /examples/test_cxx.sh
%{_datadir} /plplot%{version} /examples/test_diff.sh
2020-02-25 12:54:55 +00:00
%if %{with ocaml_camlidl}
%{_libdir} /pkgconfig/plplot-ocaml.pc
%{_datadir} /plplot%{version} /examples/ocaml
%{_datadir} /plplot%{version} /examples/test_ocaml.sh
%endif
2019-06-05 13:18:32 +00:00
2017-02-08 17:06:01 +00:00
##########################################################################
2011-08-04 09:08:28 +00:00
2017-02-08 17:06:01 +00:00
%package doc
##########################################################################
2011-05-31 01:15:21 +00:00
Summary : Documentation for PLplot and its bindings
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-05-31 01:15:21 +00:00
Group : Documentation/Other
2023-06-29 08:13:32 +00:00
BuildArch : noarch
2011-05-31 01:15:21 +00:00
%description doc
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the documentation for PLplot and its associated
modules.
2017-02-08 17:06:01 +00:00
%files doc
%dir %{_docdir} /%{name} -doc
%{_docdir} /%{name} -doc/*
##########################################################################
2023-06-29 08:13:32 +00:00
%if 0%{?ada_enabled}
2017-02-08 17:06:01 +00:00
%package -n %{ada_shlib}
##########################################################################
2011-08-14 08:29:50 +00:00
Summary : Shared libraries for PLplot's Ada bindings
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-08-14 08:12:13 +00:00
Group : System/Libraries
2017-02-08 17:06:01 +00:00
%description -n %{ada_shlib}
2017-02-11 22:53:13 +00:00
PLplot is a library of functions that are useful for making scientific
plots.
2011-08-14 08:12:13 +00:00
This package provides the shared libraries necessary for using PLplot
with Ada.
2017-02-08 17:06:01 +00:00
%post -n %{ada_shlib} -p /sbin/ldconfig
2011-08-14 08:12:13 +00:00
2017-02-08 17:06:01 +00:00
%postun -n %{ada_shlib} -p /sbin/ldconfig
%files -n %{ada_shlib}
%{_libdir} /libplplotada.so.*
##########################################################################
%package -n %{name}ada-devel
##########################################################################
2011-08-14 08:12:13 +00:00
Summary : Ada bindings for development with PLplot
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-08-14 08:29:50 +00:00
Group : Development/Languages/Other
2017-02-08 17:06:01 +00:00
Requires : %{ada_shlib} = %{version}
Requires : %{name} -common = %{version}
2011-08-14 08:12:13 +00:00
Requires : gcc-ada
Requires : pkgconfig
2017-02-08 17:06:01 +00:00
Provides : %{name} -ada-devel = %{version}
Obsoletes : %{name} -ada-devel < 5.12.0
2011-08-14 08:12:13 +00:00
2017-02-08 17:06:01 +00:00
%description -n %{name}ada-devel
2017-02-11 22:53:13 +00:00
PLplot is a library of functions that are useful for making scientific
plots.
2011-08-14 08:12:13 +00:00
This package provides the files necessary for using PLplot in Ada.
2017-02-08 17:06:01 +00:00
%files -n %{name}ada-devel
%dir %{_libdir} /ada
%dir %{_libdir} /ada/adalib
%dir %{_datadir} /ada
%dir %{_datadir} /ada/adainclude
%{_libdir} /libplplotada.so
%{_libdir} /ada/adalib/plplotada/
%{_libdir} /pkgconfig/plplot-ada.pc
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_plplotada.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plplotada-*.cmake
2017-02-08 17:06:01 +00:00
%{_datadir} /ada/adainclude/plplotada/
%{_datadir} /plplot%{version} /examples/ada/
%{_datadir} /plplot%{version} /examples/test_ada.sh
##########################################################################
2020-11-29 13:30:37 +00:00
%endif
2017-02-08 17:06:01 +00:00
%package -n %{fort_shlib}
##########################################################################
2011-05-31 01:15:21 +00:00
Summary : Shared libraries for PLplot's Fortran bindings
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-05-31 01:15:21 +00:00
Group : System/Libraries
2017-02-08 17:06:01 +00:00
%description -n %{fort_shlib}
2017-02-11 22:53:13 +00:00
PLplot is a library of functions that are useful for making scientific
plots.
2011-05-31 01:15:21 +00:00
This package provides the shared libraries necessary for using PLplot
with Fortran.
2017-02-08 17:06:01 +00:00
%post -n %{fort_shlib} -p /sbin/ldconfig
%postun -n %{fort_shlib} -p /sbin/ldconfig
%files -n %{fort_shlib}
2017-08-28 09:27:13 +00:00
%{_libdir} /libplplotfortran.so.*
2017-02-08 17:06:01 +00:00
##########################################################################
2011-08-04 09:08:28 +00:00
2017-08-28 09:27:13 +00:00
%package -n %{name}fortran-devel
2017-02-08 17:06:01 +00:00
##########################################################################
2011-05-31 01:15:21 +00:00
Summary : Fortran bindings for development with PLplot
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-05-31 01:15:21 +00:00
Group : Development/Languages/Fortran
2017-02-08 17:06:01 +00:00
Requires : %{fort_shlib} = %{version}
Requires : %{name} -common = %{version}
2012-04-07 17:29:50 +00:00
Requires : gcc-fortran
2011-05-31 01:15:21 +00:00
Requires : pkgconfig
2017-08-28 09:27:13 +00:00
Obsoletes : %{name} f95-devel < 5.13.0
Provides : %{name} f95-devel = %{version}
2017-02-08 17:06:01 +00:00
Obsoletes : %{name} -fortran-devel < 5.12.0
Provides : %{name} -fortran-devel = %{version}
2011-05-31 01:15:21 +00:00
2017-08-28 09:27:13 +00:00
%description -n %{name}fortran-devel
2017-02-11 22:53:13 +00:00
PLplot is a library of functions that are useful for making scientific
plots.
2011-05-31 01:15:21 +00:00
This package provides the files necessary for using PLplot in Fortran.
2017-08-28 09:27:13 +00:00
%files -n %{name}fortran-devel
2017-02-08 17:06:01 +00:00
%dir %{_libdir} /fortran
%dir %{_libdir} /fortran/modules
%{_libdir} /fortran/modules/plplot/
2017-08-28 09:27:13 +00:00
%{_libdir} /libplplotfortran.so
%{_libdir} /pkgconfig/plplot-fortran.pc
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_plfortrandemolib.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plfortrandemolib-*.cmake
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_plplotfortran.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plplotfortran-*.cmake
2017-08-28 09:27:13 +00:00
%{_datadir} /plplot%{version} /examples/fortran/
%{_datadir} /plplot%{version} /examples/test_fortran.sh
2017-02-08 17:06:01 +00:00
##########################################################################
2011-08-04 09:08:28 +00:00
2017-02-08 17:06:01 +00:00
%package java
##########################################################################
2011-05-31 01:15:21 +00:00
Summary : PLplot functions for scientific plotting with Java
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2012-02-13 14:18:53 +00:00
Group : Productivity/Scientific/Other
2017-02-08 17:06:01 +00:00
Requires : %{name} -common = %{version}
2011-05-31 01:15:21 +00:00
Requires : java
%description java
2017-02-11 22:53:13 +00:00
PLplot is a library of functions that are useful for making scientific
plots.
2011-05-31 01:15:21 +00:00
This package provides the PLplot functions required for scientific
plotting with Java.
2017-02-08 17:06:01 +00:00
%files java
2017-08-28 09:27:13 +00:00
%{_libdir} /plplot%{version} /libplplotjavac_wrap.so
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_plplotjavac_wrap.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plplotjavac_wrap-*.cmake
2017-02-08 17:06:01 +00:00
%{_datadir} /java/plplot.jar
%{_datadir} /plplot%{version} /examples/java/
%{_datadir} /plplot%{version} /examples/test_java.sh
##########################################################################
2011-08-04 09:08:28 +00:00
2017-02-08 17:06:01 +00:00
%package lua
##########################################################################
2011-05-31 01:15:21 +00:00
Summary : PLplot functions for scientific plotting with Lua
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-05-31 01:15:21 +00:00
Group : Development/Libraries/Other
2017-02-08 17:06:01 +00:00
Requires : %{name} -common = %{version}
2011-05-31 01:15:21 +00:00
Requires : lua
%description lua
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the PLplot functions required for scientific
plotting with Lua.
2017-02-08 17:06:01 +00:00
%files lua
2019-01-28 23:02:17 +00:00
%{_libdir} /lua/plplot/
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_plplotluac.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plplotluac-*.cmake
2017-02-08 17:06:01 +00:00
%{_datadir} /plplot%{version} /examples/lua/
%{_datadir} /plplot%{version} /examples/test_lua.sh
##########################################################################
2012-05-15 06:14:25 +00:00
2017-02-08 17:06:01 +00:00
%package octave
##########################################################################
2012-05-15 06:14:25 +00:00
Summary : PLplot functions for scientific plotting with Octave
2018-04-26 13:05:12 +00:00
License : GPL-2.0-or-later
2012-05-15 06:14:25 +00:00
Group : Development/Libraries/Other
2017-02-08 17:06:01 +00:00
Requires : %{name} -common = %{version}
2012-05-15 06:14:25 +00:00
Requires : octave
%description octave
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the PLplot functions required for scientific
plotting with Octave.
2019-06-05 13:18:32 +00:00
%if 0%{?octave_enabled}
2017-02-08 17:06:01 +00:00
%files octave
%{_datadir} /%{name} _octave/
%{_datadir} /octave/site/m/PLplot/
%{_libdir} /octave/site/oct/*/plplot_octave.oct
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plplot_octave-*.cmake
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_plplot_octave.cmake
2017-02-08 17:06:01 +00:00
%{_datadir} /plplot%{version} /examples/octave/
%{_datadir} /plplot%{version} /examples/test_octave.sh
%endif
##########################################################################
2011-08-04 09:08:28 +00:00
2023-06-29 08:13:32 +00:00
%if "%{python_flavor}" != "python311"
%package -n python-plplot-pyqt5
2017-02-08 17:06:01 +00:00
##########################################################################
2023-06-29 08:13:32 +00:00
Summary : PLplot functions for scientific plotting with python-qt5
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-05-31 01:15:21 +00:00
Group : Development/Libraries/Python
2017-02-08 17:06:01 +00:00
Requires : %{name} -common = %{version}
2023-06-29 08:13:32 +00:00
Requires : python-qt5
2023-06-29 10:31:17 +00:00
# Python 3.10 is the last version of Python with sip4 support
%if "%{python_flavor}" == "python3" || "%{python_flavor}" == "python310"
Obsoletes : plplot-python3-qt < %{version} -%{release}
2023-06-29 10:39:43 +00:00
Provides : plplot-python3-qt = %{version} -%{release}
2023-06-29 08:13:32 +00:00
Recommends: plplot-pyqt5-cmake
%endif
2011-05-31 01:15:21 +00:00
2023-06-29 08:13:32 +00:00
%description -n python-plplot-pyqt5
2011-05-31 01:15:21 +00:00
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the PLplot functions required for scientific
plotting with python-qt.
2023-06-29 08:13:32 +00:00
%files %{python_files plplot-pyqt5}
%{python_sitearch} /plplot_pyqt5.so
%endif
##########################################################################
%package -n plplot-pyqt5-cmake
##########################################################################
Summary : PLplot functions for scientific plotting with python-qt5
License : LGPL-2.1-or-later
Group : Development/Libraries/Python
Requires : python3-plplot-pyqt5
%description -n plplot-pyqt5-cmake
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the cmake files optionally required for building
cmake based projects with plplot-pyqt5.
%if ("%{python_flavor}" == "python3" || "%{python_provides}" == "python3") && "%{python_flavor}" != "python311"
%files -n plplot-pyqt5-cmake
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_plplot_pyqt5.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plplot_pyqt5-*.cmake
2023-06-29 08:13:32 +00:00
%endif
2017-02-08 17:06:01 +00:00
##########################################################################
%package -n %{qt_shlib}
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot functions for scientific plotting with Qt
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-05-31 01:15:21 +00:00
Group : System/Libraries
2017-02-08 17:06:01 +00:00
%description -n %{qt_shlib}
2011-05-31 01:15:21 +00:00
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the PLplot functions required for scientific
plotting with Qt.
2017-02-08 17:06:01 +00:00
%post -n %{qt_shlib} -p /sbin/ldconfig
%postun -n %{qt_shlib} -p /sbin/ldconfig
%files -n %{qt_shlib}
%{_libdir} /libplplotqt.so.*
##########################################################################
2011-08-04 09:08:28 +00:00
2017-02-08 17:06:01 +00:00
%package -n %{name}qt-devel
##########################################################################
2011-05-31 01:15:21 +00:00
Summary : PLplot functions for scientific plotting with qt
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-05-31 01:15:21 +00:00
Group : Development/Libraries/Other
2017-02-08 17:06:01 +00:00
Requires : %{qt_shlib} = %{version}
2012-04-07 17:29:50 +00:00
Requires : pkgconfig
2019-12-13 20:09:34 +00:00
Requires : pkgconfig(Qt5Core)
Requires : pkgconfig(Qt5Gui)
Requires : pkgconfig(Qt5PrintSupport)
Requires : pkgconfig(Qt5Svg)
Requires : pkgconfig(Qt5Widgets)
2017-02-08 17:06:01 +00:00
Provides : %{name} -qt-devel = %{version}
Obsoletes : %{name} -qt-devel < 5.12.0
Requires : %{name} -common = %{version}
2011-05-31 01:15:21 +00:00
2017-02-08 17:06:01 +00:00
%description -n %{name}qt-devel
2011-05-31 01:15:21 +00:00
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the development files for using PLplot
with Qt.
2017-02-08 17:06:01 +00:00
%files -n %{name}qt-devel
%{_libdir} /libplplotqt.so
%{_libdir} /pkgconfig/plplot-qt.pc
%{_libdir} /plplot%{version} /drivers/qt.driver_info
%{_libdir} /plplot%{version} /drivers/qt.so
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_plplotqt.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plplotqt-*.cmake
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_qt.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_qt-*.cmake
2017-02-08 17:06:01 +00:00
##########################################################################
%package tcltk-libs
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot functions for scientific plotting with Tcl/Tk
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-05-31 01:15:21 +00:00
Group : System/Libraries
2017-02-08 17:06:01 +00:00
Provides : %{name} -tcltk = %{version}
Obsoletes : %{name} -tcltk < 5.12.0
2011-05-31 01:15:21 +00:00
2017-02-08 17:06:01 +00:00
%description tcltk-libs
2011-05-31 01:15:21 +00:00
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the PLplot functions required for scientific
2017-02-11 22:53:13 +00:00
plotting with Tcl/Tk.
2011-05-31 01:15:21 +00:00
2017-02-08 17:06:01 +00:00
%post tcltk-libs -p /sbin/ldconfig
%postun tcltk-libs -p /sbin/ldconfig
%files tcltk-libs
%{_libdir} /libplplottcltk*.so.*
%{_libdir} /libtclmatrix.so.*
##########################################################################
2011-08-04 09:08:28 +00:00
2017-02-08 17:06:01 +00:00
%package tcltk-devel
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot functions for scientific plotting with Tcl/Tk
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-05-31 01:15:21 +00:00
Group : Development/Libraries/Other
2017-02-08 17:06:01 +00:00
Requires : %{name} -common = %{version}
Requires : %{name} -tcltk-libs = %{version}
2011-05-31 01:15:21 +00:00
Requires : itcl-devel
Requires : itk
Requires : pkgconfig
Requires : tcl-devel
Requires : tk-devel
%description tcltk-devel
PLplot is a library of functions that are useful for making scientific
plots.
2017-02-11 22:53:13 +00:00
This package provides the development files for using PLplot with Tcl/Tk.
2011-05-31 01:15:21 +00:00
2017-02-08 17:06:01 +00:00
%files tcltk-devel
%{_bindir} /pltcl
%{_libdir} /libplplottcltk*.so
%{_libdir} /libtclmatrix.so
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_pltcl.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_pltcl-*.cmake
2017-02-08 17:06:01 +00:00
%{_libdir} /pkgconfig/plplot-tcl*.pc
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_tclmatrix.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_tclmatrix-*.cmake
2017-02-08 17:06:01 +00:00
%{_datadir} /plplot%{version} /examples/test_tcl.sh
%{_datadir} /plplot%{version} /examples/tcl/
%{_datadir} /plplot%{version} /pkgIndex.tcl
%{_datadir} /plplot%{version} /tcl/
%{_mandir} /man1/plserver.1.gz
%{_mandir} /man1/pltcl.1.gz
2017-08-28 09:27:13 +00:00
2017-02-08 17:06:01 +00:00
%if %{tk_enabled}
%{_bindir} /plserver
%{_datadir} /plplot%{version} /examples/tk/
%{_libdir} /plplot%{version} /drivers/tk.driver_info
%{_libdir} /plplot%{version} /drivers/tk.so
%{_libdir} /plplot%{version} /drivers/tkwin.driver_info
%{_libdir} /plplot%{version} /drivers/tkwin.so
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_tk.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_tk-*.cmake
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_tkwin.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_tkwin-*.cmake
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_plplottcltk.cmake
%{_libdir} /cmake/plplot/export_plplottcltk_Main.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plplottcltk_Main-*.cmake
%{_libdir} /cmake/plplot/export_plplottcltk-*.cmake
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_Pltk_init.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_Pltk_init-*.cmake
2023-06-29 08:13:32 +00:00
%{python_sitearch} /Plframe.py*
%{python_sitearch} /TclSup.py*
%{python_sitearch} /*Pltk_init.*
2017-02-08 17:06:01 +00:00
%endif
2011-08-04 09:08:28 +00:00
2017-02-08 17:06:01 +00:00
##########################################################################
%package -n %{wx_shlib}
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot functions for scientific plotting with wxWidgets
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2011-05-31 01:15:21 +00:00
Group : System/Libraries
2017-02-08 17:06:01 +00:00
%description -n %{wx_shlib}
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the PLplot functions required for scientific
2017-02-11 22:53:13 +00:00
plotting with wxWidgets.
2017-02-08 17:06:01 +00:00
%post -n %{wx_shlib} -p /sbin/ldconfig
%postun -n %{wx_shlib} -p /sbin/ldconfig
%files -n %{wx_shlib}
%{_libdir} /libplplotwxwidgets.so.*
##########################################################################
%package wxwidgets
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot plot viewer built on wxWidgets
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : Productivity/Graphics/Visualization/Graph
Requires : %{name} -common = %{version}
Requires : %{wx_shlib} = %{version}
2011-05-31 01:15:21 +00:00
%description wxwidgets
PLplot is a library of functions that are useful for making scientific
plots.
2017-02-11 22:53:13 +00:00
This package provides a PLplot viewer built using the wxWidgets GUI API.
2011-05-31 01:15:21 +00:00
2017-02-08 17:06:01 +00:00
%files wxwidgets
%{_bindir} /wxPLViewer
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_wxPLViewer.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_wxPLViewer-*.cmake
2017-02-08 17:06:01 +00:00
##########################################################################
2011-08-04 09:08:28 +00:00
2017-02-08 17:06:01 +00:00
%package -n %{name}wxwidgets-devel
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot bindings for development with wxWidgets
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-11 22:53:13 +00:00
Group : Development/Libraries/C and C++
2011-05-31 01:15:21 +00:00
Requires : %{name} -devel = %{version}
2017-02-08 17:06:01 +00:00
Requires : %{wx_shlib} = %{version}
2011-05-31 01:15:21 +00:00
Requires : pkgconfig
Requires : wxWidgets-devel
2017-02-08 17:06:01 +00:00
Provides : %{name} -wxwidgets-devel = %{version}
Obsoletes : %{name} -wxwidgets-devel < 5.12.0
Requires : %{name} -common = %{version}
2011-05-31 01:15:21 +00:00
2017-02-08 17:06:01 +00:00
%description -n %{name}wxwidgets-devel
2011-05-31 01:15:21 +00:00
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the PLplot functions required for scientific
2017-02-11 22:53:13 +00:00
plotting with wxWidgets.
2011-05-31 01:15:21 +00:00
2017-02-08 17:06:01 +00:00
%files -n %{name}wxwidgets-devel
%{_libdir} /libplplotwxwidgets.so
%{_libdir} /pkgconfig/plplot-wxwidgets.pc
%{_libdir} /plplot%{version} /drivers/wxwidgets.driver_info
%{_libdir} /plplot%{version} /drivers/wxwidgets.so
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_plplotwxwidgets.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plplotwxwidgets-*.cmake
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_wxwidgets.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_wxwidgets-*.cmake
2017-02-08 17:06:01 +00:00
##########################################################################
2012-09-17 16:44:05 +00:00
2017-02-08 17:06:01 +00:00
%package -n %{c_shlib}
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot functions for scientific plotting with C
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
2011-05-31 01:15:21 +00:00
2017-02-08 17:06:01 +00:00
%description -n %{c_shlib}
PLplot is a library of functions that are useful for making scientific
plots.
2014-02-13 15:30:15 +00:00
2017-02-11 22:53:13 +00:00
This package provides the shared lib for PLplot's C binding.
2017-02-08 17:06:01 +00:00
%post -n %{c_shlib} -p /sbin/ldconfig
%postun -n %{c_shlib} -p /sbin/ldconfig
%files -n %{c_shlib}
%{_libdir} /libplplot.so.*
##########################################################################
%package -n %{cxx_shlib}
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot functions for scientific plotting with C++
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
%description -n %{cxx_shlib}
PLplot is a library of functions that are useful for making scientific
plots.
2017-02-11 22:53:13 +00:00
This package provides the shared lib for PLplot's C++ binding.
2017-02-08 17:06:01 +00:00
%post -n %{cxx_shlib} -p /sbin/ldconfig
%postun -n %{cxx_shlib} -p /sbin/ldconfig
%files -n %{cxx_shlib}
%{_libdir} /libplplotcxx.so.*
##########################################################################
%package -n plplotcxx-devel
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot functions for scientific plotting with C++
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : Development/Libraries/C and C++
Requires : %{cxx_shlib} = %{version}
Requires : %{name} -common = %{version}
%description -n plplotcxx-devel
PLplot is a library of functions that are useful for making scientific
plots.
2017-02-11 22:53:13 +00:00
This package provides the shared lib for PLplot's C++ binding.
2017-02-08 17:06:01 +00:00
%files -n plplotcxx-devel
%{_libdir} /libplplotcxx.so
%{_libdir} /pkgconfig/plplot-c++.pc
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_plplotcxx.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_plplotcxx-*.cmake
2017-02-08 17:06:01 +00:00
%{_includedir} /plplot/plstream.h
##########################################################################
%package -n %{csirocsa_shlib}
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot csirocsa component
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
%description -n %{csirocsa_shlib}
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the shared lib for PLplot's csirocsa.
%post -n %{csirocsa_shlib} -p /sbin/ldconfig
%postun -n %{csirocsa_shlib} -p /sbin/ldconfig
%files -n %{csirocsa_shlib}
%{_libdir} /libcsirocsa.so.*
##########################################################################
2020-11-29 13:30:37 +00:00
%if %{with qhull}
2017-02-08 17:06:01 +00:00
%package -n %{csironn_shlib}
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot csironn component
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
%description -n %{csironn_shlib}
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the shared lib for PLplot's csironn.
%post -n %{csironn_shlib} -p /sbin/ldconfig
%postun -n %{csironn_shlib} -p /sbin/ldconfig
%files -n %{csironn_shlib}
%{_libdir} /libcsironn.so.*
2020-11-29 13:30:37 +00:00
%endif
2017-02-08 17:06:01 +00:00
##########################################################################
%package -n %{qsastime_shlib}
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot qsatime component
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
%description -n %{qsastime_shlib}
PLplot is a library of functions that are useful for making scientific
plots.
2017-02-11 22:53:13 +00:00
This package provides the shared lib for PLplot's qsatime.
2017-02-08 17:06:01 +00:00
%post -n %{qsastime_shlib} -p /sbin/ldconfig
%postun -n %{qsastime_shlib} -p /sbin/ldconfig
%files -n %{qsastime_shlib}
%{_libdir} /libqsastime.so.*
##########################################################################
2023-06-29 08:13:32 +00:00
%package -n python-%{name}
2017-02-08 17:06:01 +00:00
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot functions for scientific plotting with Python
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
Requires : %{name} -common = %{version}
2023-06-29 08:13:32 +00:00
Requires : python-base
Requires : python-numpy
2023-06-29 10:39:43 +00:00
# For update from the last python3-plplot package built against python3.10
2023-06-30 04:46:10 +00:00
%if "%{python_flavor}" == "python310"
Conflicts : python3-%{name} < %{version} -%{release}
%endif
2023-06-29 10:39:43 +00:00
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
Obsoletes : python3-%{name} < %{version} -%{release}
Provides : python3-%{name} = %{version} -%{release}
%endif
2017-02-08 17:06:01 +00:00
2023-06-29 08:13:32 +00:00
%description -n python-%{name}
2017-02-08 17:06:01 +00:00
PLplot is a library of functions that are useful for making scientific
plots.
2017-02-11 22:53:13 +00:00
This package provides the PLplot's Python binding.
2017-02-08 17:06:01 +00:00
2023-06-29 08:13:32 +00:00
%files %{python_files %{name}}
%{python_sitearch} /_plplotc.so
%{python_sitearch} /plplot.py
%{python_sitearch} /plplotc.py
%{_datadir} /plplot%{version} /examples/python%{python_version} /
%{_datadir} /plplot%{version} /examples/test_python%{python_version} .sh
2017-02-08 17:06:01 +00:00
##########################################################################
%package driver-cairo
##########################################################################
Summary : PLplot driver using the cairo backend
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
Requires : plplot-common = %{version}
%description driver-cairo
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the cairo driver for plotting using PLplot.
%files driver-cairo
%{_libdir} /plplot%{version} /drivers/cairo.driver_info
%{_libdir} /plplot%{version} /drivers/cairo.so
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_cairo.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_cairo-*.cmake
2017-02-08 17:06:01 +00:00
##########################################################################
%package driver-ntk
##########################################################################
Summary : PLplot driver using the ntk backend
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
Requires : plplot-common = %{version}
%description driver-ntk
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the ntk driver for plotting using PLplot.
%files driver-ntk
%{_libdir} /plplot%{version} /drivers/ntk.driver_info
%{_libdir} /plplot%{version} /drivers/ntk.so
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_ntk.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_ntk-*.cmake
2017-02-08 17:06:01 +00:00
##########################################################################
2023-06-29 08:13:32 +00:00
%package driver-pdf
##########################################################################
Summary : PLplot driver using the pdf backend
License : LGPL-2.1-or-later
Group : System/Libraries
Requires : plplot-common = %{version}
%description driver-pdf
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the pdf driver for plotting using PLplot.
%files driver-pdf
%{_libdir} /plplot%{version} /drivers/pdf.driver_info
%{_libdir} /plplot%{version} /drivers/pdf.so
%{_libdir} /cmake/plplot/export_pdf.cmake
%{_libdir} /cmake/plplot/export_pdf-*.cmake
##########################################################################
2017-02-08 17:06:01 +00:00
%package driver-ps
##########################################################################
Summary : PLplot driver using the ps backend
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
Requires : plplot-common = %{version}
%description driver-ps
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the ps driver for plotting using PLplot.
%files driver-ps
%{_libdir} /plplot%{version} /drivers/ps.driver_info
%{_libdir} /plplot%{version} /drivers/ps.so
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_ps.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_ps-*.cmake
2017-02-08 17:06:01 +00:00
##########################################################################
%package driver-psttf
##########################################################################
Summary : PLplot driver using the psttf backend
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
Requires : plplot-common = %{version}
%description driver-psttf
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the psttf driver for plotting using PLplot.
%files driver-psttf
%{_libdir} /plplot%{version} /drivers/psttf.driver_info
%{_libdir} /plplot%{version} /drivers/psttf.so
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_psttf.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_psttf-*.cmake
2017-02-08 17:06:01 +00:00
##########################################################################
%package driver-svg
##########################################################################
2017-02-11 22:53:13 +00:00
Summary : PLplot driver using the SVG backend
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
Requires : plplot-common = %{version}
%description driver-svg
PLplot is a library of functions that are useful for making scientific
plots.
2017-02-11 22:53:13 +00:00
This package provides the SVG driver for plotting using PLplot.
2017-02-08 17:06:01 +00:00
%files driver-svg
%{_libdir} /plplot%{version} /drivers/svg.driver_info
%{_libdir} /plplot%{version} /drivers/svg.so
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_svg.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_svg-*.cmake
2017-02-08 17:06:01 +00:00
##########################################################################
%package driver-xfig
##########################################################################
Summary : PLplot driver using the xfig backend
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
Requires : plplot-common = %{version}
%description driver-xfig
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the xfig driver for plotting using PLplot.
%files driver-xfig
%{_libdir} /plplot%{version} /drivers/xfig.driver_info
%{_libdir} /plplot%{version} /drivers/xfig.so
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_xfig.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_xfig-*.cmake
2017-02-08 17:06:01 +00:00
##########################################################################
%package driver-xwin
##########################################################################
Summary : PLplot driver using the xwin backend
2018-04-26 13:05:12 +00:00
License : LGPL-2.1-or-later
2017-02-08 17:06:01 +00:00
Group : System/Libraries
Requires : plplot-common = %{version}
%description driver-xwin
PLplot is a library of functions that are useful for making scientific
plots.
This package provides the xwin driver for plotting using PLplot.
%files driver-xwin
%{_libdir} /plplot%{version} /drivers/xwin.driver_info
%{_libdir} /plplot%{version} /drivers/xwin.so
2020-07-17 12:51:41 +00:00
%{_libdir} /cmake/plplot/export_xwin.cmake
2021-04-06 12:09:41 +00:00
%{_libdir} /cmake/plplot/export_xwin-*.cmake
2017-02-08 17:06:01 +00:00
##########################################################################
%prep
2024-09-28 11:16:05 +00:00
%setup
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2 -p1
%patch -P 3 -p1
%patch -P 4 -p1
%patch -P 5 -p1
%patch -P 6 -p1
%patch -P 7 -p1
%patch -P 8 -p1
# The "--date" option was added into jar in OpenJDK 17
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
%patch -P 9 -p1
%endif
2017-02-08 17:06:01 +00:00
2020-02-25 12:54:55 +00:00
%build
2017-02-08 17:06:01 +00:00
for file in NEWS README.release
do
iconv -f ISO-8859-1 -t UTF-8 $file > ${file}.tmp
touch -r $file ${file}.tmp
mv ${file}.tmp $file
done
export CFLAGS=" %{optflags} - D U S E _ I N T E R P _ R E S U L T - f n o - s t r i c t - a l i a s i n g "
2021-06-12 13:03:42 +00:00
# c++14 needs to use explicitly to avoid issues with GCC 11
export CXXFLAGS=" %{optflags} - s t d = c + + 1 4 - f n o - s t r i c t - a l i a s i n g "
2017-02-08 17:06:01 +00:00
export FFLAGS=" %{optflags} "
2017-06-20 13:59:39 +00:00
export LDFLAGS=" - f P I C "
2019-01-28 23:02:17 +00:00
2017-02-08 17:06:01 +00:00
# X-server and $DISPLAY required to enable tk bindings
export DISPLAY=%{X_display}
Xvfb -noreset %{X_display} >& Xvfb.log &
trap " k i l l $ ! | | t r u e " EXIT
sleep 5
2023-06-29 08:13:32 +00:00
%{python_expand #Set the $python var
# Define cmake common opts
export CMAKE_COMMON_OPTS=" - D C M A K E _ I N S T A L L _ L I B D I R : P A T H = %{_libdir} \
2024-04-10 08:04:22 +00:00
-DDOC_DIR:PATH=%{_docdir} /%{name} -doc \
-DCMAKE_INSTALL_MANDIR:PATH=%{_mandir} \
-DCMAKE_INSTALL_INFODIR:PATH=%{_infodir} \
2023-06-29 08:13:32 +00:00
-DENABLE_compiler_diagnostics=ON \
-DPL_FREETYPE_FONT_PATH:PATH=\" %{_datadir} / f o n t s / t r u e t y p e \" \
-DUSE_RPATH:BOOL=OFF \
-DCMAKE_SKIP_RPATH:BOOL=OFF \
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \
-DBUILD_DOC:BOOL=OFF \
-DBUILD_TEST:BOOL=ON \
-DENABLE_python:BOOL=ON \
-DENABLE_qt:BOOL=ON \
-DPLPLOT_PYTHON_EXACT_VERSION=%{$python_version} \
-DPLPLOT_USE_QT5:BOOL=ON \
-DPLD_pdfcairo:BOOL=ON \
-DPLD_pngcairo:BOOL=ON \
-DPLD_pscairo:BOOL=ON \
-DPLD_epscairo:BOOL=ON \
-DPLD_svgcairo:BOOL=ON \
-DPLD_epsqt:BOOL=OFF \
-DPLD_pdfqt:BOOL=ON \
-DPLD_bmpqt:BOOL=ON \
-DPLD_jpgqt:BOOL=ON \
-DPLD_pngqt:BOOL=ON \
-DPLD_ppmqt:BOOL=ON \
-DPLD_tiffqt:BOOL=ON \
-DPLD_svgqt:BOOL=ON \
-DPLD_pdf:BOOL=ON \
-DPLD_ps:BOOL=ON \
-DPLD_psc:BOOL=ON \
-DPLD_psttf:BOOL=ON \
-DPLD_psttfc:BOOL=ON \
-DPLD_qtwidget:BOOL=ON \
-DPLD_svg:BOOL=ON \
-DPLD_xfig:BOOL=ON \
-DPLD_xcairo:BOOL=ON \
-DPLD_extcairo:BOOL=ON \
-DPLD_extqt:BOOL=ON \
-DPLD_wxpng:BOOL=OFF \
-DPLD_wxwidgets:BOOL=ON
"
mkdir ../$python
cp -pr ./* ../$python
pushd ../$python
if [ ${python_flavor} = python311 ]; then
export CMAKE_COMMON_OPTS=" $ { C M A K E _ C O M M O N _ O P T S } - D E N A B L E _ p y q t 5 : B O O L = O F F "
else
export CMAKE_COMMON_OPTS=" $ { C M A K E _ C O M M O N _ O P T S } - D E N A B L E _ p y q t 5 : B O O L = O N "
fi
%cmake ${CMAKE_COMMON_OPTS} \
%if "$python_" == "python3_" || "%{$python_provides}" == "python3"
-DENABLE_ada:BOOL=%{?ada_enabled:ON}%{!?ada_enabled:OFF} \
-DENABLE_cxx:BOOL=ON \
-DENABLE_d:BOOL=OFF \
-DENABLE_fortran:BOOL=ON \
2020-11-29 13:30:37 +00:00
-DENABLE_itcl:BOOL=ON \
2023-06-29 08:13:32 +00:00
-DENABLE_itk:BOOL=%{?tk_enabled:ON}%{!?tk_enabled:OFF} \
-DENABLE_java:BOOL=ON \
-DENABLE_lua:BOOL=ON \
-DENABLE_ocaml:BOOL=%{?with_ocaml_camlidl:ON}%{!?with_ocaml_camlidl:OFF} \
-DENABLE_octave:BOOL=%{?octave_enabled:ON}%{!?octave_enabled:OFF} \
-DENABLE_tcl:BOOL=ON \
-DENABLE_tk:BOOL=%{?tk_enabled:ON}%{!?tk_enabled:OFF} \
-DENABLE_wxwidgets:BOOL=ON \
-DPREBUILT_DOC:BOOL=ON \
-DJAVAWRAPPER_DIR:PATH=" %{_libdir} / p l p l o t %{version} " \
-DTRY_OCTAVE4=ON
2020-02-24 14:14:21 +00:00
%else
2023-06-29 08:13:32 +00:00
-DDEFAULT_NO_BINDINGS:BOOL=ON \
-DPREBUILT_DOC:BOOL=OFF
2020-02-24 14:14:21 +00:00
%endif
2020-11-29 13:30:37 +00:00
%cmake_build
2023-06-29 08:13:32 +00:00
popd
}
2011-05-31 01:15:21 +00:00
%install
2023-06-29 08:13:32 +00:00
%{python_expand pushd ../$python
2020-11-29 13:30:37 +00:00
%cmake_install
2023-06-29 08:13:32 +00:00
> %{_builddir} /%{name} .filelist.ocaml
2020-02-25 12:54:55 +00:00
%if %{with ocaml_camlidl}
: creating '%{name}.files' and '%{name}.files.devel'
%ocaml_create_file_list
2023-06-29 08:13:32 +00:00
mv %{name} .files.devel %{_builddir} /%{name} .filelist.ocaml
2020-02-25 12:54:55 +00:00
%endif
2011-05-31 01:15:21 +00:00
2023-06-29 08:13:32 +00:00
%if "$python_" == "python3_" || "%{$python_provides}" == "python3"
2011-05-31 01:15:21 +00:00
# Fix up tclIndex files so they are the same on all builds
for file in %{buildroot} %{_datadir} /plplot%{version} /examples/*/tclIndex
do
grep '^[# ]' ${file} > tclIndex.hd
grep -v '^[# ]' ${file} | sort > tclIndex
cat tclIndex.hd tclIndex > ${file}
done
rm -rf %{buildroot} %{_datadir} /plplot%{version} /examples/cmake/modules/Platform
#Remove unnecessary examples that trigger build errors or warnings
2021-04-06 12:09:41 +00:00
rm -f %{buildroot} %{_datadir} /%{name} %{version} /examples/cmake/modules/export_plplot-*.cmake
2011-05-31 01:15:21 +00:00
rm -f %{buildroot} %{_datadir} /%{name} %{version} /examples/test_octave_interactive.sh
rm -f %{buildroot} %{_datadir} /%{name} %{version} /examples/tk/*.in
rm -f %{buildroot} %{_datadir} /%{name} %{version} /examples/tcl/*.in
rm -f %{buildroot} %{_datadir} /%{name} %{version} /examples/tk/tk01
#Remove cmake files for the examples since they don't work anyway due to presence of rpath
rm -f %{buildroot} %{_datadir} /plplot%{version} /examples/CMakeLists.txt
rm -fr %{buildroot} %{_datadir} /plplot%{version} /examples/cmake
2016-04-02 16:47:32 +00:00
%if %{tk_enabled}
2011-05-31 01:15:21 +00:00
#Grant executable permissions to example tk binaries with valid shebang
chmod +x %{buildroot} %{_datadir} /%{name} %{version} /examples/tk/tk03
2016-04-02 16:47:32 +00:00
%endif
2011-05-31 01:15:21 +00:00
2013-10-03 15:15:36 +00:00
#Remove a fortran static library
2017-08-28 09:27:13 +00:00
rm %{buildroot} %{_libdir} /libplfortrandemolib*.a
2013-10-03 15:15:36 +00:00
2023-06-29 08:13:32 +00:00
sed -i " 1 { s @ / u s r / b i n / e n v p y t h o n @ %{_bindir} / p y t h o n % { $ p y t h o n _ b i n _ s u f f i x } @ ; } " %{buildroot} %{_datadir} /%{name} %{version} /examples/python/pytkdemo
%endif
#Fix python hashbangs for examples (/usr/bin/env python -> /usr/bin/pythonX.Y)
sed -i " 1 { s @ / u s r / b i n / e n v p y t h o n @ %{_bindir} / p y t h o n % { $ p y t h o n _ b i n _ s u f f i x } @ ; } " %{buildroot} %{_datadir} /%{name} %{version} /examples/python/x*
sed -i " 1 { s @ / u s r / b i n / e n v p y t h o n @ %{_bindir} / p y t h o n % { $ p y t h o n _ b i n _ s u f f i x } @ ; } " %{buildroot} %{_datadir} /%{name} %{version} /examples/python/*.py
# Move examples to versioned python dirs
mv %{buildroot} %{_datadir} /plplot%{version} /examples/python \
%{buildroot} %{_datadir} /plplot%{version} /examples/python%{$python_version}
mv %{buildroot} %{_datadir} /plplot%{version} /examples/test_python.sh \
%{buildroot} %{_datadir} /plplot%{version} /examples/test_python%{$python_version}.sh
# Only keep for primary flavour
if [ " $ { p y t h o n _ f l a v o r } " != " p y t h o n 3 " ] && [ " % { $ p y t h o n _ p r o v i d e s } " != " p y t h o n 3 " ]
then
rm %{buildroot} %{_libdir} /cmake/plplot/export_plplot_pyqt5*.cmake
fi
2017-11-17 10:31:57 +00:00
2011-05-31 01:15:21 +00:00
%fdupes %{buildroot} %{_datadir} /
2023-06-29 08:13:32 +00:00
popd
}
2011-05-31 01:15:21 +00:00
2017-02-08 17:06:01 +00:00
%check
2017-08-28 09:27:13 +00:00
export DISPLAY=%{X_display}
Xvfb %{X_display} >& Xvfb.log &
2023-06-29 08:13:32 +00:00
trap " k i l l $ ! | | t r u e " EXIT
2017-08-28 09:27:13 +00:00
sleep 5
2023-06-29 08:13:32 +00:00
%{python_expand pushd ../$python
cd %__builddir
2017-08-28 09:27:13 +00:00
# Octave tests fail, known issue with tests
# Qt tests fail on Xvfb
2023-06-29 08:13:32 +00:00
# Avoid fontconfig warnings about un-writable cache dirs by setting HOME to pwd
export HOME=.
2017-08-28 09:27:13 +00:00
ctest -V -E " o c t a v e | q t " %{?_smp_mflags}
2017-02-08 17:06:01 +00:00
popd
2023-06-29 08:13:32 +00:00
}
2012-05-15 06:14:25 +00:00
2011-05-31 01:15:21 +00:00
%changelog