Imported from SRPM

This commit is contained in:
Sergey Zhemoytel 2024-09-29 11:12:14 +03:00
commit 7733600fd9
2 changed files with 63 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
mathmod-12.0.tar.gz: dfbfc3714c5ceb59c571e2286103517a40621fe0

61
mathmod.spec Normal file
View file

@ -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