File OndselSolver.spec of Package OndselSolver
#
# spec file for package OndselSolver
#
# 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/
#
Name: OndselSolver
Version: 1.0.1
Release: 0
Summary: Assembly Constraints and Multibody Dynamics code
# TBD, see https://github.com/Ondsel-Development/OndselSolver/issues/45
License: LGPL-2.1-only
URL: https://github.com/Ondsel-Development/OndselSolver
Source: https://github.com/Ondsel-Development/OndselSolver/archive/refs/tags/PR%2311363.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: c++_compiler
%description
Assembly Constraints and Multibody Dynamics code
%package devel
Summary: Development files for OndselSolver
Requires: libOndselSolver1 = %{version}
%description devel
Header and other development files for OndselSolver.
%package -n libOndselSolver1
Summary: Assembly Constraints and Multibody Dynamics code
%description -n libOndselSolver1
This package contains the OndselSolver shared library.
%prep
%autosetup -p1 -n OndselSolver-PR-11363
%build
%cmake
%cmake_build
%install
%cmake_install
# Fix pkgconfig install path
mv %{buildroot}%{_datadir}/pkgconfig %{buildroot}%{_libdir}/pkgconfig
%post -n libOndselSolver1 -p /sbin/ldconfig
%postun -n libOndselSolver1 -p /sbin/ldconfig
%files -n libOndselSolver1
%license LICENSE
%{_libdir}/*.so.*
%files devel
%doc README.md
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog