Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:redwil:15.4
getfem
getfem.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File getfem.spec of Package getfem
# # spec file for package getfem # # Copyright (c) 2022 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 https://bugs.opensuse.org/ # %define libname libgetfem5 Name: getfem Version: 5.4.2 Release: 0 Summary: A generic C++ finite element library License: LGPL-3.0-or-later Group: Development/Libraries/C and C++ URL: https://getfem.org Source0: https://download-mirror.savannah.gnu.org/releases/getfem/stable/getfem-%{version}.tar.gz # PATCH-FIX-UPSTREAM Patch0: 0001-Use-reentrant-qhull-library.patch # PATCH-FIX-UPSTREAM getfem-octave-installation-destdir-support.patch badshah400@gmail.com -- Allow octave to install to DESTDIR, otherwise we end up with permission denied issues when building RPMs Patch1: getfem-octave-installation-destdir-support.patch # PATCH-FIX-UPSTREAM getfem-toolbox-without-matlab.patch badshah400@gmail.com -- Do not install getfem toolbox when matlab is not available Patch2: getfem-toolbox-without-matlab.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: blas-devel BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: lapack-devel BuildRequires: libtool BuildRequires: metis-devel BuildRequires: mumps-devel BuildRequires: muparser-devel BuildRequires: octave-devel BuildRequires: python3-numpy-devel BuildRequires: python3-scipy BuildRequires: qhull_r-devel BuildRequires: superlu-devel %description GetFEM++ is basically a generic C++ finite element library which aims to offer the widest range of finite element methods and elementary matrix computations for the approximation of linear or non-linear problems, possibly in hybrid form and possibly coupled. %package -n %{libname} Summary: A generic C++ finite element library Group: System/Libraries %description -n %{libname} GetFEM++ is basically a generic C++ finite element library which aims to offer the widest range of finite element methods and elementary matrix computations for the approximation of linear or non-linear problems, possibly in hybrid form and possibly coupled. %package devel Summary: Development files for %{name} Group: Development/Libraries/C and C++ Requires: %{libname} = %{version} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package -n python3-%{name} Summary: A generic C++ finite element library Group: Development/Libraries/Python Requires: python3-numpy Requires: python3-scipy %description -n python3-%{name} GetFEM++ is basically a generic C++ finite element library which aims to offer the widest range of finite element methods and elementary matrix computations for the approximation of linear or non-linear problems, possibly in hybrid form and possibly coupled. %package -n octave-%{name} Summary: Octave bindings for getfem - a finite element library Requires: octave-cli %description -n octave-%{name} GetFEM++ is basically a generic C++ finite element library which aims to offer the widest range of finite element methods and elementary matrix computations for the approximation of linear or non-linear problems, possibly in hybrid form and possibly coupled. This package provides octave bindings for GetFEM++. %prep %autosetup -p1 sed -i 's|#!/usr/bin/env python3|#!%__python3|g' bin/extract_doc %build autoreconf -fiv # Note: We need to build the static lib to enable and build octave bindings, but we do not need to install it %configure --enable-shared \ --with-pic \ --enable-superlu \ --enable-python3 \ --enable-qhull \ --with-mumps-include-dir=%{_includedir}/mumps \ --enable-matlab=no \ --enable-octave \ --with-octave-toolbox-dir=%{octlib_dir}/%{name} %make_build %install %make_install find %{buildroot} -type f -name "*.la" -delete -print # Remove static lib find %{buildroot}%{_libdir}/ -name *.a -delete %fdupes %{buildroot}%{python3_sitelib} %if "%{python3_sitearch}" != "%{python3_sitelib}" %fdupes %{buildroot}%{python3_sitearch} %endif %check %make_build check %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} %license COPYING %{_libdir}/*.so.* %files devel %license COPYING GNU_LGPL_V3 GNU_GCC_RUNTIME_EXCEPTION %doc AUTHORS NEWS README %{_bindir}/%{name}-config %{_includedir}/* %{_libdir}/*.so %files -n python3-%{name} %{python3_sitelib}/%{name} %if "%{python3_sitearch}" != "%{python3_sitelib}" %{python3_sitearch}/%{name} %endif %files -n octave-%{name} %license COPYING GNU_LGPL_V3 GNU_GCC_RUNTIME_EXCEPTION %{octlib_dir}/%{name}/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor