2016-01-18 22:17:48 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package mathmod
|
|
|
|
|
#
|
2024-12-23 14:26:43 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2016-01-18 22:17:48 +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.
|
|
|
|
|
|
2021-05-17 07:04:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-01-18 22:17:48 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define binname MathMod
|
|
|
|
|
Name: mathmod
|
2024-12-23 14:26:43 +00:00
|
|
|
Version: 12.0
|
2016-01-18 22:17:48 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Mathematical modelling to visualise implicit and parametric surfaces
|
2022-02-11 23:13:50 +00:00
|
|
|
License: GPL-2.0-or-later
|
2016-01-18 22:17:48 +00:00
|
|
|
Group: Productivity/Scientific/Math
|
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
|
2024-12-23 14:26:43 +00:00
|
|
|
Source1: %{name}.desktop
|
2016-01-18 22:17:48 +00:00
|
|
|
BuildRequires: ImageMagick
|
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: hicolor-icon-theme
|
2021-05-17 07:04:32 +00:00
|
|
|
BuildRequires: pkgconfig
|
2016-01-18 22:17:48 +00:00
|
|
|
BuildRequires: unzip
|
2021-05-17 07:04:32 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.12.0
|
2016-01-18 22:17:48 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
|
|
|
|
|
|
%description
|
2021-05-17 07:04:32 +00:00
|
|
|
MathMod is a mathematical modeling software to model, plot and animate
|
2016-01-18 22:17:48 +00:00
|
|
|
3D/4D parametric and implicit surfaces.
|
|
|
|
|
|
|
|
|
|
Features:
|
|
|
|
|
* 3D and 4D plotting and animation
|
|
|
|
|
* OBJ output file format
|
|
|
|
|
* Scripting language in JSON file format
|
2021-05-17 07:04:32 +00:00
|
|
|
* Texture and pigmentation support
|
2016-01-18 22:17:48 +00:00
|
|
|
* Noise and Turbulence effects support
|
|
|
|
|
* Large set of scripted examples
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-02-11 23:12:30 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2016-01-18 22:17:48 +00:00
|
|
|
|
2022-02-11 23:12:30 +00:00
|
|
|
dos2unix -k Readme.txt
|
2016-01-18 22:17:48 +00:00
|
|
|
|
|
|
|
|
%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
|
2021-05-17 07:04:32 +00:00
|
|
|
for i in $(find images/icon -name \*.png); do
|
2016-01-18 22:17:48 +00:00
|
|
|
r=$(echo $i|sed 's/[^0-9x]//g')
|
|
|
|
|
install -Dm 0644 $i %{buildroot}%{_datadir}/icons/hicolor/${r}/apps/%{name}.png
|
|
|
|
|
done
|
2021-05-17 07:04:32 +00:00
|
|
|
convert -monitor images/icon/catenoid_mini_64x64.ico %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
|
2022-02-11 23:12:30 +00:00
|
|
|
# Remove spurious icon file
|
|
|
|
|
rm %{buildroot}%{_datadir}/icons/hicolor/apps/mathmod.png
|
2024-12-23 14:26:43 +00:00
|
|
|
|
|
|
|
|
install -Dm 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
2016-01-18 22:17:48 +00:00
|
|
|
|
|
|
|
|
%files
|
2021-05-17 07:04:32 +00:00
|
|
|
%license Licence.txt
|
|
|
|
|
%doc Readme.txt
|
2016-01-18 22:17:48 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%{_libdir}/%{name}/
|
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.png
|
|
|
|
|
%{_datadir}/pixmaps/%{name}.xpm
|
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
|
|
|
|
|
%changelog
|