%global owner SciDAVis # Force out of source build %undefine __cmake_in_source_build Name: scidavis Version: 2.9.0 Release: 6%{?dist} Summary: Application for Scientific Data Analysis and Visualization License: GPL-3.0-or-later URL: http://scidavis.sourceforge.net/ #Source0: http://downloads.sourceforge.net/%%{name}/%%{name}-%%{version}.tar.gz # Main upstream development repository (master, snapshots, releases not yet in sf) #Source0: https://github.com/%%{owner}/%%{name}/archive/%%{version}/%%{name}-master.tar.gz Source0: https://github.com/%{owner}/%{name}/archive/master/%{name}-%{version}.tar.gz Patch0: scidavis-build_w_system_qwtplot3d.patch BuildRequires: cmake BuildRequires: make BuildRequires: gcc-c++ BuildRequires: python3 BuildRequires: desktop-file-utils BuildRequires: gsl-devel BuildRequires: liborigin-devel BuildRequires: gl2ps-devel BuildRequires: mesa-libGLU-devel BuildRequires: muParser-devel BuildRequires: qt5-qtbase-devel BuildRequires: qwt5-qt5-devel BuildRequires: qwtplot3d-qt5-devel BuildRequires: PyQt-builder BuildRequires: python3dist(sip) BuildRequires: python3-pyqt5-sip BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-linguist BuildRequires: zlib-devel BuildRequires: libappstream-glib # required for the tests, enable when building locally #BuildRequires: xorg-x11-server-Xvfb #BuildRequires: unittest-cpp-devel #BuildRequires: boost-devel #BuildRequires: gtest Requires: python3-qt5 Requires: hicolor-icon-theme Requires: kde-filesystem Recommends: python3-%{name} %description SciDAVis is a free interactive application aimed at data analysis and publication-quality plotting. It combines a shallow learning curve and an intuitive, easy-to-use graphical user interface with powerful features such as scriptability and extensibility. %package -n python3-%{name} BuildRequires: python3-devel BuildRequires: python3-qt5-devel Summary: Python 3 bindings for SciDAVis Requires: %{name}%{?_isa} = %{version}-%{release} %{?python_provide:%python_provide python3-%{name}} Obsoletes: python2-%{name} < 1.23-5 %description -n python3-%{name} This module provides SciDAVis bindings to the Python3 programming language. %prep %setup -q -n %{name}-%{version} # Development builds #%%setup -q -n %%{name}-master %patch0 -p1 # Set the correct python paths sed -i 's+pythonconfig.path = "$$INSTALLBASE/../etc"+pythonconfig.path = "$$INSTALLBASE/..%{python3_sitearch}/scidavis"+g' config.pri sed -i 's+pythonutils.path = "$$INSTALLBASE/share/scidavis"+pythonutils.path = "$$INSTALLBASE/..%{python3_sitearch}/scidavis"+g' config.pri sed -i 's+set(PYTHON_SCRIPTDIR etc+set(PYTHON_SCRIPTDIR %{python3_sitearch}/scidavis+g' scidavis/CMakeLists.txt sed -i 's+FILES scidavisrc.py ${CMAKE_CURRENT_BINARY_DIR}/$/scidavisrc.pyc DESTINATION+FILES scidavisrc.py DESTINATION+g' scidavis/CMakeLists.txt sed -i 's+FILES scidavisrc.py ${CMAKE_CURRENT_BINARY_DIR}/scidavisrc.pyc DESTINATION+FILES scidavisrc.py DESTINATION+g' scidavis/CMakeLists.txt sed -i 's+FILES scidavisUtil.py DESTINATION share/scidavis+FILES scidavisUtil.py DESTINATION ${PYTHON_SCRIPTDIR}+g' scidavis/CMakeLists.txt sed -i 's+PYTHON_CONFIG_PATH="${CMAKE_INSTALL_PREFIX}/etc"+PYTHON_CONFIG_PATH="%{python3_sitearch}/scidavis"+g' libscidavis/CMakeLists.txt sed -i 's+PYTHON_UTIL_PATH="${CMAKE_INSTALL_PREFIX}/share/scidavis"+PYTHON_UTIL_PATH="%{python3_sitearch}/scidavis"+g' libscidavis/CMakeLists.txt %build # Set python version to 3 export PYTHON=python3 %cmake -DSEARCH_FOR_UPDATES=off -DDOWNLOAD_LINKS=off -DSCRIPTING_MUPARSER=on -DSCRIPTING_PYTHON=on -DORIGIN_IMPORT=on %cmake_build %install %cmake_install install -pm 644 ChangeLog.md %{buildroot}%{_docdir}/%{name}/ # KDE3 remnant - upstream is aware rm -rf %{buildroot}%{_datadir}/mimelnk/ # gpl.txt is copied over by the license macro rm -f %{buildroot}%{_docdir}/%{name}/gpl.txt rm -f %{buildroot}%{_docdir}/%{name}/license.rtf %check desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml # Enable testsuite when building locally #cd test && xvfb-run -a ./unittests %files %license gpl.txt LICENSE license.rtf %{_mandir}/man1/%{name}.1* %{_docdir}/%{name}/ %{_bindir}/%{name} %{_libdir}/%{name}/ %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/metainfo/%{name}.appdata.xml %{_datadir}/mime/packages/%{name}.xml %{_datadir}/icons/hicolor/*/apps/%{name}.* %{_datadir}/icons/locolor/*/apps/%{name}.* %files -n python3-%{name} %{python3_sitearch}/%{name}/ %changelog * Sat Jan 21 2023 Fedora Release Engineering - 2.9.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Aug 23 2022 Mamoru TASAKA - 2.9.0-5 - Rebuild for gsl-2.7.1 * Sat Jul 23 2022 Fedora Release Engineering - 2.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.9.0-3 - Rebuilt for Python 3.11 * Thu May 26 2022 Alexander Ploumistos - 2.9.0-2 - Fix Python scripting * Sun May 08 2022 Alexander Ploumistos - 2.9.0-1 - Update to 2.9.0 * Wed Feb 02 2022 Alexander Ploumistos - 2.7-1 - Update to 2.7 - Remove unneeded patches * Sat Jan 22 2022 Fedora Release Engineering - 2.4.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Nov 09 2021 Alexander Ploumistos - 2.4.0-9 - Add patch (by Scott Talbert) to allow building with sip6 * Fri Nov 05 2021 Alexander Ploumistos - 2.4.0-8 - Add patch (by Miquel Garriga) to fix glitch with right y-axis * Fri Jul 23 2021 Fedora Release Engineering - 2.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Jul 10 2021 Scott Talbert - 2.4.0-6 - Revert back to building with sip 4 due to no sip 6 support * Tue Jul 06 2021 Alexander Ploumistos - 2.4.0-5 - Update for new qwtplot3d-qt5 - Remove Graph3D patch * Wed Jun 16 2021 Scott Talbert - 2.4.0-4 - Update to build with sip5 * Fri Jun 04 2021 Python Maint - 2.4.0-3 - Rebuilt for Python 3.10 * Thu May 13 2021 Alexander Ploumistos - 2.4.0-2 - Use minigzip as a static library during the build - see gh#221 - Clean up spec file * Tue May 11 2021 Alexander Ploumistos - 2.4.0-1 - Update to 2.4.0 - Switch from qmake to cmake - Clean up spec file * Wed Jan 27 2021 Fedora Release Engineering - 2.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jan 13 2021 Alexander Ploumistos - 2.3.0-3 - Rebuild for latest qwt5-qt5 snapshot * Wed Jul 29 2020 Fedora Release Engineering - 2.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 15 2020 Alexander Ploumistos - 2.3.0-1 - Update to 2.3.0 - Add qwt5-qt5 and all the new BRs - Drop Qt4 and old deps * Tue May 26 2020 Miro Hrončok - 1.26-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.26-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 09 2020 Alexander Ploumistos - 1.26-1 - Update to 1.26 * Thu Oct 03 2019 Miro Hrončok - 1.25.1-2 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sun Aug 25 2019 Alexander Ploumistos - 1.25.1-1 - New release, fixes for sf bugs #293, #379, #383, #385 and #388 * Wed Aug 21 2019 Miro Hrončok - 1.25-8 - Rebuilt for Python 3.8 * Tue Aug 20 2019 Susi Lehtola - 1.25-7 - Rebuilt for GSL 2.6. * Mon Aug 19 2019 Miro Hrončok - 1.25-6 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.25-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Apr 12 2019 Alexander Ploumistos - 1.25-4 - Backport fixes for sf bugs #380 and #381 - Merge all post-1.25 bugfixes as the same files are being edited * Sun Mar 31 2019 Alexander Ploumistos - 1.25-3 - Backport fix for 3D plot colors reverting to black * Sat Mar 16 2019 Alexander Ploumistos - 1.25-2 - Backport fix for plot colors reverting to black * Tue Mar 05 2019 Alexander Ploumistos - 1.25-1 - Update to 1.25 (bugfixes, updated translations) * Sat Mar 02 2019 Alexander Ploumistos - 1.24-1 - Update to 1.24 * Sat Feb 02 2019 Fedora Release Engineering - 1.23.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Dec 02 2018 Alexander Ploumistos - 1.23.4-3 - Fix for sf#360 - patch by Miquel Garriga * Thu Nov 22 2018 Alexander Ploumistos - 1.23.4-2 - Build against system liborigin library * Sun Nov 18 2018 Alexander Ploumistos - 1.23.4-1 - Realign with upstream versioning - Minor bugfixes - Remove unneeded patches * Wed Aug 01 2018 Alexander Ploumistos - 1.23-7.20180705git0ca8811 - Fix an interface crash - patch by Miquel Garriga * Sat Jul 14 2018 Fedora Release Engineering - 1.23-6.20180705git0ca8811 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Jul 08 2018 Alexander Ploumistos - 1.23-5.20180705git0ca8811 - Switch to git snapshot 0ca8811 (multiple fixes) - Clean up spec file and unneeded patches * Sun Jul 01 2018 Alexander Ploumistos - 1.23-4 - Switch to python 3.x and python3 dependencies - Add unit testing dependencies - Comprehensive fix for python3-related issues - patch by Miquel Garriga * Wed Jun 27 2018 Alexander Ploumistos - 1.23-3 - Fix font scaling bug #337 - patch by Miquel Garriga * Thu Jun 07 2018 Alexander Ploumistos - 1.23-2 - Fix a crash caused by Qt color picker - patch by Miquel Garriga - Explicitly require python2 in script headers * Mon Jun 04 2018 Alexander Ploumistos - 1.23-1 - Update to 1.23 - Remove unneeded patches * Sat Mar 10 2018 Alexander Ploumistos - 1.22-6 - Restore upstream intended paste behavior * Thu Mar 08 2018 Alexander Ploumistos - 1.22-5 - Add patch to speed up pasting of data * Fri Feb 16 2018 Alexander Ploumistos - 1.22-4 - Add gcc-c++ build dependency * Fri Feb 09 2018 Fedora Release Engineering - 1.22-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 18 2018 Igor Gnatenko - 1.22-2 - Remove obsolete scriptlets * Mon Oct 23 2017 Alexander Ploumistos - 1.22-1 - New version - Remove obsolete patches and scripts * Mon Oct 02 2017 Alexander Ploumistos - 1.21-6 - Update appdata.xml file * Sat Sep 16 2017 Alexander Ploumistos - 1.21-5 - Add code and requirements in order to run the provided tests (in local builds) - Add kde-filesystem requirement - Combine licenses to GPLv3+ * Thu Sep 14 2017 Alexander Ploumistos - 1.21-4 - Fix another armv7hl issue - patches by Robert-André Mauchin and Miquel Garriga - Patch for setting Python paths by Antonio Trande - Backport patch for https://sourceforge.net/p/scidavis/scidavis-bugs/316/ - Enable all build options (CONFIG+=aegis) - Include AppData file from next release - More code cleanup * Tue Sep 12 2017 Alexander Ploumistos - 1.21-3 - Enable Python scripting - Remove more redundant code * Mon Sep 11 2017 Alexander Ploumistos - 1.21-2 - Hold off unbundling until liborigin-3.0.0 official release - Remove x-sciprj.desktop and /usr/share/mimelnk/application/ - Fix manpage location - Remove redundant code from the spec file * Sat Aug 19 2017 Alexander Ploumistos - 1.21-1 - New version * Tue Aug 01 2017 Alexander Ploumistos - 1.19-2 - Enable ARM builds - patch by Miquel Garriga - Clean up spec file * Thu Jul 20 2017 Alexander Ploumistos - 1.19-1 - New version * Wed Jun 28 2017 Alexander Ploumistos - 1.18-2.20170628git7c6e07df - Unbundle liborigin - patch by Miquel Garriga * Fri Jun 23 2017 Alexander Ploumistos - 1.18-1 - new version * Mon Jun 12 2017 Alexander Ploumistos - 1.17-2 - Enabled bundled patched liborigin * Mon Jun 12 2017 Alexander Ploumistos - 1.17-1 - new version * Mon Jul 11 2016 Alexander Ploumistos - 1.D13-1 - new version * Tue Nov 24 2015 Christian Dersch - 1.D9-1 - new version * Wed Jul 29 2015 Fedora Release Engineering - 1.D8-12 - Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159 * Wed Jul 22 2015 David Tardon - 1.D8-11 - rebuild for Boost 1.58 * Fri Jun 19 2015 Fedora Release Engineering - 1.D8-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 1.D8-9 - Rebuilt for GCC 5 C++11 ABI change * Mon Jan 26 2015 Petr Machata - 1.D8-8 - Rebuild for boost 1.57.0 * Fri Jan 02 2015 Christian Dersch - 1.D8-7 - added patch to fix http://sourceforge.net/p/scidavis/svn/1458/ * Sat Dec 20 2014 Christian Dersch - 1.D8-6 - added missing find_lang macro - adjusted condition for 32/64 bit decision * Mon Dec 15 2014 Christian Dersch - 1.D8-5 - added ExcludeArch for arm as scidavis doesn't build there * Mon Dec 15 2014 Christian Dersch - 1.D8-4 - fixed spec - added post/postun scripts - removed versioned .so files - don't package compiled versions of scidavisrc.py config file * Thu Aug 7 2014 Christian Dersch - 1.D8-3 - fixed spec to be conform with guidelines * Mon Aug 4 2014 Christian Dersch - 1.D8-2 - fixed BuildRequires * Mon Aug 4 2014 Christian Dersch - 1.D8-1 - initial spec - inspired by old scidavis spec http://pkgs.fedoraproject.org/cgit/scidavis.git/tree/scidavis.spec?h=f15