From 7733600fd9a134180cd6f249902b271ff250be4f Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Sun, 29 Sep 2024 11:12:14 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ mathmod.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .abf.yml create mode 100644 mathmod.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..2b43eb3 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + mathmod-12.0.tar.gz: dfbfc3714c5ceb59c571e2286103517a40621fe0 diff --git a/mathmod.spec b/mathmod.spec new file mode 100644 index 0000000..acd16ad --- /dev/null +++ b/mathmod.spec @@ -0,0 +1,61 @@ +%define debug %nil +%define debug_package %nil + +Name: mathmod +Version: 12.0 +Release: 1 +Summary: Mathematical modelling software +URL: https://www.facebook.com/parisolab +Source0: https://github.com/parisolab/mathmod/archive/%{version}/%{name}-%{version}.tar.gz +License: GPLv2 +Group: Sciences/Mathematics +BuildRequires: qt515 +BuildRequires: imagemagick +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(libpng) + +%description +MathMod is Mathematical modelling software + +%prep +%setup -q + +%build +/opt/qt5/5.15/bin/qmake +%make + +%install +install -d %{buildroot}%{_datadir}/applications %{buildroot}%{_iconsdir} +install -Dm0755 MathMod %{buildroot}%{_bindir}/%{name} + +# menu-entry +cat >> %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF +[Desktop Entry] +Name=MathMod +Comment=Mathematical modelling +GenericName=MathMod +Exec=%{name} +Icon=%{name} +Type=Application +StartupNotify=false +StartupWMClass=%{name} +Categories=TextEditor;Sciences/Mathematics +Keywords=math;mathematic;science;modeling +EOF + +# icons setup +pushd images/icon +for x in 16 24 32 48 64 96 128 256 512; do +install -d %{buildroot}%{_iconsdir}/hicolor/${x}x${x}/apps/ +convert -resize ${x}x${x} %{name}.png %{buildroot}%{_iconsdir}/hicolor/${x}x${x}/apps/%{name}.png +done +popd + + + +%files +%doc Readme.txt copying.txt Licence.txt +%{_bindir}/%{name} +%{_iconsdir}/hicolor/*/apps/%{name}.png +%{_datadir}/applications/%{name}.desktop +