File isaacs.spec of Package ISAACS

#
# spec file for package isaacs
#
# Copyright (c) 2024 SUSE LLC
#
# 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:           isaacs
Version:        2.10
Release:        0
Summary:        Interactive Structure Analysis of Amorphous and Crystalline Systems
License:        GPL-3.0
Group:          Productivity/Scientific/Physics
URL:            https://isaacs.sourceforge.io/
Source0:        https://prdownloads.sourceforge.net/isaacs/isaacs-%{version}.tar.bz2
BuildRequires:  cairo-devel
BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
BuildRequires:  gcc
BuildRequires:  gcc-fortran
BuildRequires:  gtk2-devel
# gtk-update-icon-cache is in gtk3-tools
BuildRequires:  gtk3-tools
BuildRequires:  libxml2-devel

%description
Interactive Structure Analysis of Amorphous and Crystalline Systems
I.S.A.A.C.S.  is a computer program dedicated to the study of the
structural properties of 3D models of materials (liquid, glass,
crystal) and isolated molecules generated using computer simulations.

%prep
%autosetup

%build
%configure
# Missing dependencies in Makefile on parameters.mod
%make_build -C src parameters.o
%make_build

%install
%make_install

%fdupes -s %{buildroot}%{_prefix}
%__mv %{buildroot}%{_datadir}/%{name}/%{name}.desktop \
      %{buildroot}%{_datadir}/applications/%{name}.desktop

%files
%doc
%{_bindir}/isaacs
%{_datadir}/doc/isaacs/
%{_datadir}/isaacs/
%{_datadir}/bash-completion
%{_datadir}/bash-completion/isaacs
%{_datadir}/applications/%{name}.desktop
%{_sysconfdir}/bash_completion.d
%config %{_sysconfdir}/bash_completion.d/isaacs

%changelog
openSUSE Build Service is sponsored by