File fisicalab.spec of Package fisicalab

#
# spec file for package fisicalab
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           fisicalab
Version:        0.3.5
Release:        0
Summary:        FísicaLab is an educational application to solve physics problems
License:        GPL-3.0+
Group:          Productivity/Scientific/Math
Url:            http://www.nongnu.org/fisicalab/
Source:         ftp://ftp.gnu.org/gnu/fisicalab/%{name}-%{version}-1.tar.gz
BuildRequires:  ImageMagick
BuildRequires:  fdupes
BuildRequires:  gcc-objc
BuildRequires:  gnustep-back >= 0.23.0
BuildRequires:  gnustep-base-devel >= 1.24.5
BuildRequires:  gnustep-gui-devel >= 0.23.1
BuildRequires:  gnustep-make >= 2.6.5
BuildRequires:  gsl-devel >= 1.10
BuildRequires:  update-desktop-files
Requires:       gnustep-back >= 0.23.0
Requires:       gnustep-make >= 2.6.5
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The problems are setting adding elements from the palette to chalkboard, and
writing the data of each element. The elements are objects as Blocks, Pulleys,
Mobiles, Forces, ... . Use the SI and English systems, scientific notation and
many conversion factors. The problems that can be solved with FísicaLab 0.1,
are:

* Kinematics of particles (doesn't include circular motion).
* Static of particles in 2D.
* Dynamic of particles in 2D (doesn't include dynamic of circular motion).

The static and dynamic problems are entered constructing the free body diagrams
of the objects. Although FísicaLab is easy and intuitive, we recommend you read
the help files first before set any problem. You can access these files in the
option menu Info -> Help.

%prep
%setup -q
convert Resources/FisicaLab.tif %{name}.png

%build
%configure
export SUSE_ASNEEDED=0
. %{_sysconfdir}/GNUstep/GNUstep.conf
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh
make %{?_smp_mflags}

%install
. %{_sysconfdir}/GNUstep/GNUstep.conf
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh
make -e DESTDIR=%{buildroot} \
        GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \
        install
#
# install desktop entry
#
mkdir -p %{buildroot}/%{_datadir}/{applications,pixmaps}
install -m 644 %{name}.png -t %{buildroot}%{_datadir}/pixmaps
rm %{buildroot}%{_libdir}/GNUstep/Applications/FisicaLab.app/Resources/FisicaLab.desktop
%suse_update_desktop_file -c -n %{name} "Físicalab" "Solve physics problems" "%{_bindir}/openapp FisicaLab.app" %{name} "Education Math"
%fdupes -s %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog COPYING README
%{_bindir}/FisicaLab
%{_libdir}/GNUstep/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by