File vmc.spec of Package vmc
#
# spec file for package vmc
#
# Copyright (c) 2022 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 tagname 2-0
Name: vmc
Version: 2.0
Release: 0
Summary: Virtual Monte Carlo core library
Group: Productivity/Scientific/Physics
License: GPL-3.0-only
URL: https://vmc-project.github.io/
Source: https://github.com/vmc-project/vmc/archive/refs/tags/v%{tagname}.tar.gz#/vmc-%{version}.tar.gz
Source99: vmc-rpmlintrc
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: root6-devel
%description
Virtual Monte Carlo (VMC) defines a detector simulation framework that
allows to run different simulation Monte Carlo without changing the
user code and therefore the input and output format as well as the
geometry and detector response definition.
%package -n vmc-libs
Summary: Virtual Monte Carlo core library
Group: System/Libraries
%description -n vmc-libs
Virtual Monte Carlo (VMC) defines a detector simulation framework.
This package contains the core library.
%package devel
Summary: Development headers for VMC
Group: Development/Libraries/C and C++
Requires: vmc-libs = %{version}
%description devel
Virtual Monte Carlo (VMC) defines a detector simulation framework.
This package contains the development headers and accompanying
files.
%prep
%setup -n vmc-%{tagname}
%build
%cmake
%cmake_build
%install
%cmake_install
%post -n vmc-libs -p /sbin/ldconfig
%postun -n vmc-libs -p /sbin/ldconfig
%files -n vmc-libs
%license LICENSE
%{_libdir}/*.so
%files devel
%doc README.md
%{_includedir}/vmc
%{_libdir}/VMC-%{version}*
%{_libdir}/*.rootmap
%{_libdir}/*.pcm
%changelog