SHA256
10
0
forked from pool/mathmod
Files
mathmod/mathmod.spec

93 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package mathmod
#
# Copyright (c) 2024 SUSE LLC
#
# 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.
Accepting request 893156 from home:predivan:updates - Update to version 11.0: Summary of changes from 6.0 to 11.0 * Complete rewrite of OpenGL viewer in order to make it OpenGl ES compatible: MathMod can now run (or easily adaptable to run) on mobile systems and platforms with limited resources, like RaspberryPi. * Add: possibility to show/hide a selected component , two new scripts ("Groupings of Knots" , "Knotted Möbius strips") and OpenGL diffuse/ambient lights setting. * Add user defined variables to reduce processing time. * Add Texture support for new parameters, possibility to resize up/down the exported meshes, OpenGL specular and shininess setting in the configuration file. * Support for mathematical objects made up of parametric and implicit surfaces. * Scripts calculations enhancement for parametric and implicit surfaces. * Added text information window to give the user an indication of the progress of an operation(threads number, processing time...) * Automatic detection and allocation of the right number of threads supported by the hardware. (you can however set a desired number of threads from mathmodconfig.js). * Add new tool for scripts selection on one or multiple JSON scripts fields. * Add option to export OBJ files with vertex colours. * Add new scripts to generate math models with chained patterns (Chained Cylinder/Sinusoid). * Add support for complex scripts involving more than 100 functions declarations (previous versions were practically limited to less than 12 functions declarations). * Bug-fixes, code optimization and documentation update. - Package changes: * Add qt512_no_markdown.patch Disable Markdown support for Leap in the editor, since it was added to QtTextEdit in QT-5.14. and Leap ships Qt-5.12. * Spec-cleaner run and build fixes. * Change license to GPL-2, as per License file in the source tree. OBS-URL: https://build.opensuse.org/request/show/893156 OBS-URL: https://build.opensuse.org/package/show/science/mathmod?expand=0&rev=4
2021-05-17 07:04:32 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define binname MathMod
Name: mathmod
Version: 12.0
Release: 0
Summary: Mathematical modelling to visualise implicit and parametric surfaces
License: GPL-2.0-or-later
Group: Productivity/Scientific/Math
Accepting request 893156 from home:predivan:updates - Update to version 11.0: Summary of changes from 6.0 to 11.0 * Complete rewrite of OpenGL viewer in order to make it OpenGl ES compatible: MathMod can now run (or easily adaptable to run) on mobile systems and platforms with limited resources, like RaspberryPi. * Add: possibility to show/hide a selected component , two new scripts ("Groupings of Knots" , "Knotted Möbius strips") and OpenGL diffuse/ambient lights setting. * Add user defined variables to reduce processing time. * Add Texture support for new parameters, possibility to resize up/down the exported meshes, OpenGL specular and shininess setting in the configuration file. * Support for mathematical objects made up of parametric and implicit surfaces. * Scripts calculations enhancement for parametric and implicit surfaces. * Added text information window to give the user an indication of the progress of an operation(threads number, processing time...) * Automatic detection and allocation of the right number of threads supported by the hardware. (you can however set a desired number of threads from mathmodconfig.js). * Add new tool for scripts selection on one or multiple JSON scripts fields. * Add option to export OBJ files with vertex colours. * Add new scripts to generate math models with chained patterns (Chained Cylinder/Sinusoid). * Add support for complex scripts involving more than 100 functions declarations (previous versions were practically limited to less than 12 functions declarations). * Bug-fixes, code optimization and documentation update. - Package changes: * Add qt512_no_markdown.patch Disable Markdown support for Leap in the editor, since it was added to QtTextEdit in QT-5.14. and Leap ships Qt-5.12. * Spec-cleaner run and build fixes. * Change license to GPL-2, as per License file in the source tree. OBS-URL: https://build.opensuse.org/request/show/893156 OBS-URL: https://build.opensuse.org/package/show/science/mathmod?expand=0&rev=4
2021-05-17 07:04:32 +00:00
URL: https://sourceforge.net/projects/mathmod/
Source0: http://sourceforge.net/projects/mathmod/files/MathMod-%{version}/%{name}-%{version}-source.zip
Source1: %{name}.desktop
BuildRequires: ImageMagick
BuildRequires: dos2unix
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
Accepting request 893156 from home:predivan:updates - Update to version 11.0: Summary of changes from 6.0 to 11.0 * Complete rewrite of OpenGL viewer in order to make it OpenGl ES compatible: MathMod can now run (or easily adaptable to run) on mobile systems and platforms with limited resources, like RaspberryPi. * Add: possibility to show/hide a selected component , two new scripts ("Groupings of Knots" , "Knotted Möbius strips") and OpenGL diffuse/ambient lights setting. * Add user defined variables to reduce processing time. * Add Texture support for new parameters, possibility to resize up/down the exported meshes, OpenGL specular and shininess setting in the configuration file. * Support for mathematical objects made up of parametric and implicit surfaces. * Scripts calculations enhancement for parametric and implicit surfaces. * Added text information window to give the user an indication of the progress of an operation(threads number, processing time...) * Automatic detection and allocation of the right number of threads supported by the hardware. (you can however set a desired number of threads from mathmodconfig.js). * Add new tool for scripts selection on one or multiple JSON scripts fields. * Add option to export OBJ files with vertex colours. * Add new scripts to generate math models with chained patterns (Chained Cylinder/Sinusoid). * Add support for complex scripts involving more than 100 functions declarations (previous versions were practically limited to less than 12 functions declarations). * Bug-fixes, code optimization and documentation update. - Package changes: * Add qt512_no_markdown.patch Disable Markdown support for Leap in the editor, since it was added to QtTextEdit in QT-5.14. and Leap ships Qt-5.12. * Spec-cleaner run and build fixes. * Change license to GPL-2, as per License file in the source tree. OBS-URL: https://build.opensuse.org/request/show/893156 OBS-URL: https://build.opensuse.org/package/show/science/mathmod?expand=0&rev=4
2021-05-17 07:04:32 +00:00
BuildRequires: pkgconfig
BuildRequires: unzip
Accepting request 893156 from home:predivan:updates - Update to version 11.0: Summary of changes from 6.0 to 11.0 * Complete rewrite of OpenGL viewer in order to make it OpenGl ES compatible: MathMod can now run (or easily adaptable to run) on mobile systems and platforms with limited resources, like RaspberryPi. * Add: possibility to show/hide a selected component , two new scripts ("Groupings of Knots" , "Knotted Möbius strips") and OpenGL diffuse/ambient lights setting. * Add user defined variables to reduce processing time. * Add Texture support for new parameters, possibility to resize up/down the exported meshes, OpenGL specular and shininess setting in the configuration file. * Support for mathematical objects made up of parametric and implicit surfaces. * Scripts calculations enhancement for parametric and implicit surfaces. * Added text information window to give the user an indication of the progress of an operation(threads number, processing time...) * Automatic detection and allocation of the right number of threads supported by the hardware. (you can however set a desired number of threads from mathmodconfig.js). * Add new tool for scripts selection on one or multiple JSON scripts fields. * Add option to export OBJ files with vertex colours. * Add new scripts to generate math models with chained patterns (Chained Cylinder/Sinusoid). * Add support for complex scripts involving more than 100 functions declarations (previous versions were practically limited to less than 12 functions declarations). * Bug-fixes, code optimization and documentation update. - Package changes: * Add qt512_no_markdown.patch Disable Markdown support for Leap in the editor, since it was added to QtTextEdit in QT-5.14. and Leap ships Qt-5.12. * Spec-cleaner run and build fixes. * Change license to GPL-2, as per License file in the source tree. OBS-URL: https://build.opensuse.org/request/show/893156 OBS-URL: https://build.opensuse.org/package/show/science/mathmod?expand=0&rev=4
2021-05-17 07:04:32 +00:00
BuildRequires: pkgconfig(Qt5Core) >= 5.12.0
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5Widgets)
%description
Accepting request 893156 from home:predivan:updates - Update to version 11.0: Summary of changes from 6.0 to 11.0 * Complete rewrite of OpenGL viewer in order to make it OpenGl ES compatible: MathMod can now run (or easily adaptable to run) on mobile systems and platforms with limited resources, like RaspberryPi. * Add: possibility to show/hide a selected component , two new scripts ("Groupings of Knots" , "Knotted Möbius strips") and OpenGL diffuse/ambient lights setting. * Add user defined variables to reduce processing time. * Add Texture support for new parameters, possibility to resize up/down the exported meshes, OpenGL specular and shininess setting in the configuration file. * Support for mathematical objects made up of parametric and implicit surfaces. * Scripts calculations enhancement for parametric and implicit surfaces. * Added text information window to give the user an indication of the progress of an operation(threads number, processing time...) * Automatic detection and allocation of the right number of threads supported by the hardware. (you can however set a desired number of threads from mathmodconfig.js). * Add new tool for scripts selection on one or multiple JSON scripts fields. * Add option to export OBJ files with vertex colours. * Add new scripts to generate math models with chained patterns (Chained Cylinder/Sinusoid). * Add support for complex scripts involving more than 100 functions declarations (previous versions were practically limited to less than 12 functions declarations). * Bug-fixes, code optimization and documentation update. - Package changes: * Add qt512_no_markdown.patch Disable Markdown support for Leap in the editor, since it was added to QtTextEdit in QT-5.14. and Leap ships Qt-5.12. * Spec-cleaner run and build fixes. * Change license to GPL-2, as per License file in the source tree. OBS-URL: https://build.opensuse.org/request/show/893156 OBS-URL: https://build.opensuse.org/package/show/science/mathmod?expand=0&rev=4
2021-05-17 07:04:32 +00:00
MathMod is a mathematical modeling software to model, plot and animate
3D/4D parametric and implicit surfaces.
Features:
* 3D and 4D plotting and animation
* OBJ output file format
* Scripting language in JSON file format
Accepting request 893156 from home:predivan:updates - Update to version 11.0: Summary of changes from 6.0 to 11.0 * Complete rewrite of OpenGL viewer in order to make it OpenGl ES compatible: MathMod can now run (or easily adaptable to run) on mobile systems and platforms with limited resources, like RaspberryPi. * Add: possibility to show/hide a selected component , two new scripts ("Groupings of Knots" , "Knotted Möbius strips") and OpenGL diffuse/ambient lights setting. * Add user defined variables to reduce processing time. * Add Texture support for new parameters, possibility to resize up/down the exported meshes, OpenGL specular and shininess setting in the configuration file. * Support for mathematical objects made up of parametric and implicit surfaces. * Scripts calculations enhancement for parametric and implicit surfaces. * Added text information window to give the user an indication of the progress of an operation(threads number, processing time...) * Automatic detection and allocation of the right number of threads supported by the hardware. (you can however set a desired number of threads from mathmodconfig.js). * Add new tool for scripts selection on one or multiple JSON scripts fields. * Add option to export OBJ files with vertex colours. * Add new scripts to generate math models with chained patterns (Chained Cylinder/Sinusoid). * Add support for complex scripts involving more than 100 functions declarations (previous versions were practically limited to less than 12 functions declarations). * Bug-fixes, code optimization and documentation update. - Package changes: * Add qt512_no_markdown.patch Disable Markdown support for Leap in the editor, since it was added to QtTextEdit in QT-5.14. and Leap ships Qt-5.12. * Spec-cleaner run and build fixes. * Change license to GPL-2, as per License file in the source tree. OBS-URL: https://build.opensuse.org/request/show/893156 OBS-URL: https://build.opensuse.org/package/show/science/mathmod?expand=0&rev=4
2021-05-17 07:04:32 +00:00
* Texture and pigmentation support
* Noise and Turbulence effects support
* Large set of scripted examples
%prep
%setup -q -n %{name}-%{version}
dos2unix -k Readme.txt
%build
mkdir build
pushd build
%qmake5 ../%{binname}.pro
%make_jobs
popd
%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/pixmaps
install -Dm 0755 build/%{binname} %{buildroot}%{_libdir}/%{name}/%{name}
ln -s %{_libdir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name}
for f in $(find -maxdepth 1 -name \*.js); do
j=$(basename $f)
install -Dm 0644 $f %{buildroot}%{_libdir}/%{name}/$j
done
Accepting request 893156 from home:predivan:updates - Update to version 11.0: Summary of changes from 6.0 to 11.0 * Complete rewrite of OpenGL viewer in order to make it OpenGl ES compatible: MathMod can now run (or easily adaptable to run) on mobile systems and platforms with limited resources, like RaspberryPi. * Add: possibility to show/hide a selected component , two new scripts ("Groupings of Knots" , "Knotted Möbius strips") and OpenGL diffuse/ambient lights setting. * Add user defined variables to reduce processing time. * Add Texture support for new parameters, possibility to resize up/down the exported meshes, OpenGL specular and shininess setting in the configuration file. * Support for mathematical objects made up of parametric and implicit surfaces. * Scripts calculations enhancement for parametric and implicit surfaces. * Added text information window to give the user an indication of the progress of an operation(threads number, processing time...) * Automatic detection and allocation of the right number of threads supported by the hardware. (you can however set a desired number of threads from mathmodconfig.js). * Add new tool for scripts selection on one or multiple JSON scripts fields. * Add option to export OBJ files with vertex colours. * Add new scripts to generate math models with chained patterns (Chained Cylinder/Sinusoid). * Add support for complex scripts involving more than 100 functions declarations (previous versions were practically limited to less than 12 functions declarations). * Bug-fixes, code optimization and documentation update. - Package changes: * Add qt512_no_markdown.patch Disable Markdown support for Leap in the editor, since it was added to QtTextEdit in QT-5.14. and Leap ships Qt-5.12. * Spec-cleaner run and build fixes. * Change license to GPL-2, as per License file in the source tree. OBS-URL: https://build.opensuse.org/request/show/893156 OBS-URL: https://build.opensuse.org/package/show/science/mathmod?expand=0&rev=4
2021-05-17 07:04:32 +00:00
for i in $(find images/icon -name \*.png); do
r=$(echo $i|sed 's/[^0-9x]//g')
install -Dm 0644 $i %{buildroot}%{_datadir}/icons/hicolor/${r}/apps/%{name}.png
done
Accepting request 893156 from home:predivan:updates - Update to version 11.0: Summary of changes from 6.0 to 11.0 * Complete rewrite of OpenGL viewer in order to make it OpenGl ES compatible: MathMod can now run (or easily adaptable to run) on mobile systems and platforms with limited resources, like RaspberryPi. * Add: possibility to show/hide a selected component , two new scripts ("Groupings of Knots" , "Knotted Möbius strips") and OpenGL diffuse/ambient lights setting. * Add user defined variables to reduce processing time. * Add Texture support for new parameters, possibility to resize up/down the exported meshes, OpenGL specular and shininess setting in the configuration file. * Support for mathematical objects made up of parametric and implicit surfaces. * Scripts calculations enhancement for parametric and implicit surfaces. * Added text information window to give the user an indication of the progress of an operation(threads number, processing time...) * Automatic detection and allocation of the right number of threads supported by the hardware. (you can however set a desired number of threads from mathmodconfig.js). * Add new tool for scripts selection on one or multiple JSON scripts fields. * Add option to export OBJ files with vertex colours. * Add new scripts to generate math models with chained patterns (Chained Cylinder/Sinusoid). * Add support for complex scripts involving more than 100 functions declarations (previous versions were practically limited to less than 12 functions declarations). * Bug-fixes, code optimization and documentation update. - Package changes: * Add qt512_no_markdown.patch Disable Markdown support for Leap in the editor, since it was added to QtTextEdit in QT-5.14. and Leap ships Qt-5.12. * Spec-cleaner run and build fixes. * Change license to GPL-2, as per License file in the source tree. OBS-URL: https://build.opensuse.org/request/show/893156 OBS-URL: https://build.opensuse.org/package/show/science/mathmod?expand=0&rev=4
2021-05-17 07:04:32 +00:00
convert -monitor images/icon/catenoid_mini_64x64.ico %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
# Remove spurious icon file
rm %{buildroot}%{_datadir}/icons/hicolor/apps/mathmod.png
install -Dm 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
%files
Accepting request 893156 from home:predivan:updates - Update to version 11.0: Summary of changes from 6.0 to 11.0 * Complete rewrite of OpenGL viewer in order to make it OpenGl ES compatible: MathMod can now run (or easily adaptable to run) on mobile systems and platforms with limited resources, like RaspberryPi. * Add: possibility to show/hide a selected component , two new scripts ("Groupings of Knots" , "Knotted Möbius strips") and OpenGL diffuse/ambient lights setting. * Add user defined variables to reduce processing time. * Add Texture support for new parameters, possibility to resize up/down the exported meshes, OpenGL specular and shininess setting in the configuration file. * Support for mathematical objects made up of parametric and implicit surfaces. * Scripts calculations enhancement for parametric and implicit surfaces. * Added text information window to give the user an indication of the progress of an operation(threads number, processing time...) * Automatic detection and allocation of the right number of threads supported by the hardware. (you can however set a desired number of threads from mathmodconfig.js). * Add new tool for scripts selection on one or multiple JSON scripts fields. * Add option to export OBJ files with vertex colours. * Add new scripts to generate math models with chained patterns (Chained Cylinder/Sinusoid). * Add support for complex scripts involving more than 100 functions declarations (previous versions were practically limited to less than 12 functions declarations). * Bug-fixes, code optimization and documentation update. - Package changes: * Add qt512_no_markdown.patch Disable Markdown support for Leap in the editor, since it was added to QtTextEdit in QT-5.14. and Leap ships Qt-5.12. * Spec-cleaner run and build fixes. * Change license to GPL-2, as per License file in the source tree. OBS-URL: https://build.opensuse.org/request/show/893156 OBS-URL: https://build.opensuse.org/package/show/science/mathmod?expand=0&rev=4
2021-05-17 07:04:32 +00:00
%license Licence.txt
%doc Readme.txt
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/applications/%{name}.desktop
%changelog