Files
getdp/getdp.spec
Stefan Brüns e248a557d4 Accepting request 1056940 from home:StefanBruens:branches:science
- update to version 3.5.0
  * generalized Trace operator on non-conforming meshes
  * new Errf function
  * source code reorganization.
- update to version 3.4.0
  * new Min and Max functions on constants (at parse time)
  * fixed regression in trees of edges in 2D
  * added support for non-ASCII paths on command line on Windows
  * GetDP now requires C++11 and CMake 3.3
  * small bug fixes.
- update to version 3.3.0
  * improved support for curved elements
  * added support for auto-similar trees of edges (e.g. for sliding
    surfaces in 3D)
  * update for latest Gmsh version.
- update to version 3.2.0
  * improved node and edge link constraints search using rtree
  * added support for BF_Edge basis functions on curved elements
  * small fixes.
- update to version 3.1.0
  * added support for high-order (curved) Lagrange elements (P2,
    P3 and P4)
  * added support for latest Gmsh version
  * code refactoring.
- update to version 3.0.4
  * allow general groups in Jacobian definitions
  * fixed string parser regression.
- update to version 3.0.3
  * new AtGaussPoint PostOperation option
  * bug fixes.
- update to version 3.0.2
  * small compilation fixes.
- update to version 3.0.1
  * small bug fixes.
- update to version 3.0.0
  * new extrapolation (see SetExtrapolationOrder) in time-domain
    resolutions
  * new string macros
  * added support for Gmsh MSH4 file format
  * new file handling operations and ElementTable format in
    PostOperation
  * added support for curved (2nd order) simplices
  * enhanced communication of post-processing data with ONELAB
  * many new functions (Atanh, JnSph, YnSph, ValueFromTable,
    ListFromServer, GroupExists, ...)
  * various small bug fixes.
- update to version 2.11.3
  * new 'Eig' operator for general eigenvalue problems
    (polynomial, rational)
  * small improvements and bug fixes.
- Drop upstream or obsolete patches:
  * getdp-2.11.2-reproducible-date.patch
  * getdp-2.11.2-reproducible-host.patch
  * getdp-2.11.2-fix-doc-build.patch
- Spec file cleanup.
- Fix libgetdp package name capitalization to match SONAME.

OBS-URL: https://build.opensuse.org/request/show/1056940
OBS-URL: https://build.opensuse.org/package/show/science/getdp?expand=0&rev=13
2023-01-08 20:31:55 +00:00

132 lines
4.0 KiB
RPMSpec

#
# spec file for package getdp
#
# Copyright (c) 2023 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/
#
Name: getdp
Version: 3.5.0
Release: 0
%define lib_ver 3_5
URL: https://getdp.info/
Summary: A general finite element solver
License: GPL-2.0-or-later
Group: Productivity/Scientific/Math
Source0: https://getdp.info/src/getdp-%{version}-source.tgz
BuildRequires: arpack-devel
BuildRequires: bison
BuildRequires: blas-devel
BuildRequires: cmake
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: gcc-fortran
BuildRequires: gsl-devel
BuildRequires: lapack-devel
BuildRequires: texinfo
%description
GetDP is a general finite element solver using mixed elements to discretize
de Rham-type complexes in one, two and three dimensions. The main feature of
GetDP is the closeness between the input data defining discrete problems
(written by the user in ASCII data files) and the symbolic mathematical
expressions of these problems.
%package -n libgetdp%{lib_ver}
Summary: A general finite element solver
Group: System/Libraries
%description -n libgetdp%{lib_ver}
GetDP is a general finite element solver using mixed elements to discretize
de Rham-type complexes in one, two and three dimensions. The main feature of
GetDP is the closeness between the input data defining discrete problems
(written by the user in ASCII data files) and the symbolic mathematical
expressions of these problems.
%package devel
Summary: Header files for %{name}
Group: Development/Libraries/C and C++
Requires: libgetdp%{lib_ver} = %{version}
%description devel
This package contains libraries and header files for getdb.
%package doc
Summary: A general finite element solver
Group: Documentation/Other
BuildArch: noarch
%description doc
GetDP is a general finite element solver using mixed elements to discretize
de Rham-type complexes in one, two and three dimensions. The main feature of
GetDP is the closeness between the input data defining discrete problems
(written by the user in ASCII data files) and the symbolic mathematical
expressions of these problems.
This package contains the documentation files (pdf and html) and some examples
files.
%prep
%setup -q -n %{name}-%{version}-source
# Disable bundled Arpack
mv contrib/Arpack{,_disabled}
%build
%cmake \
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name} \
-DENABLE_BUILD_SHARED:BOOL=ON \
-DGETDP_HOST=OBS \
-DGETDP_PACKAGER=openSUSE-abuild \
-DENABLE_SYSTEM_CONTRIB:BOOL=ON \
%{nil}
%cmake_build
%cmake_build doc
%install
%cmake_install
# Move documentation to the right directory
pushd build
tar xaf getdp-%{version}-doc.tgz doc/texinfo/getdp.{html,pdf}
install -m 0644 -D -t %{buildroot}/%{_docdir}/%{name}-doc/html ../doc/texinfo/*jpg doc/texinfo/getdp.html
install -m 0644 -D -t %{buildroot}/%{_docdir}/%{name}-doc/ doc/texinfo/getdp.pdf
mv %{buildroot}/%{_docdir}/%{name}/{examples,templates} %{buildroot}/%{_docdir}/%{name}-doc/
popd
# Cleanup
rm %{buildroot}/%{_docdir}/%{name}/{CREDITS,LICENSE}.txt
%post -n libgetdp%{lib_ver} -p /sbin/ldconfig
%postun -n libgetdp%{lib_ver} -p /sbin/ldconfig
%files
%license LICENSE.txt CREDITS.txt
%doc CHANGELOG.txt
%{_docdir}/%{name}
%{_bindir}/*
%{_mandir}/man1/*
%files -n libgetdp%{lib_ver}
%{_libdir}/*.so.*
%files devel
%{_includedir}/getdp.h
%{_libdir}/*.so
%files doc
%{_docdir}/%{name}-doc
%changelog