mirror of
https://abf.rosa.ru/djam/mathmod.git
synced 2025-02-23 22:22:47 +00:00
61 lines
1.4 KiB
RPMSpec
61 lines
1.4 KiB
RPMSpec
%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
|
|
|