File alberta.spec of Package alberta

#
# spec file for package alberta
#
# 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 https://bugs.opensuse.org/
#


%define libname libalberta5
%define libname_addons libalberta_addons1

Name:           alberta
Version:        3.1.1
Release:        0
Summary:        An Adaptive multiLevel finite element toolbox
License:        GPL-2.0-or-later
Group:          Development/Libraries/C and C++
URL:            https://www.alberta-fem.de/
Source:         https://gitlab.com/alberta-fem/alberta3/-/jobs/5648158490/artifacts/raw/alberta-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  blas-devel
BuildRequires:  gcc-fortran
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(libtirpc)

%description
ALBERTA is an Adaptive multiLevel finite element toolbox using Bisectioning
refinement and Error control by Residual Techniques for scientific Applications.

%package -n %{libname}
Summary:        An Adaptive multiLevel finite element toolbox
Group:          System/Libraries

%description -n %{libname}
ALBERTA is an Adaptive multiLevel finite element toolbox using Bisectioning
refinement and Error control by Residual Techniques for scientific Applications.

%package -n %{libname_addons}
Summary:        An Adaptive multiLevel finite element toolbox
Group:          System/Libraries

%description -n %{libname_addons}
ALBERTA is an Adaptive multiLevel finite element toolbox using Bisectioning
refinement and Error control by Residual Techniques for scientific Applications.


%package devel
Summary:        Development and header files for %{name}
Group:          Development/Libraries/C and C++
Requires:       blas-devel
Requires:       gcc-fortran
Requires:       %{libname} = %{version}
Requires:       %{libname_addons} = %{version}

%description devel
This package contains the development and header files for %{name}.

%prep
%setup -q

%build
autoreconf -fiv
%configure --enable-shared \
           --disable-static \
           --disable-debug \
           --without-OpenDX \
           --without-grape \
           --without-silo
%make_build

%install
%make_install

find %{buildroot} -name '*.la' -exec rm {} \;
rm %{buildroot}%{_libexecdir}/alberta-%{version}/libtool
chmod -x %{buildroot}%{_libexecdir}/alberta-%{version}/*

%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig

%post -n %{libname_addons} -p /sbin/ldconfig
%postun -n %{libname_addons} -p /sbin/ldconfig

%files
%doc AUTHORS NEWS
%license COPYING
%{_bindir}/*alberta*

%files -n %{libname}
%{_libdir}/libalberta*.so.*

%files -n %{libname_addons}
%exclude %{_libdir}/libalberta*.so.*
%{_libdir}/lib*.so.*

%files devel
%{_datadir}/%{name}
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libexecdir}/%{name}*
%{_libdir}/*.so

%changelog
openSUSE Build Service is sponsored by