Blame packages/m/maeparser/maeparser.spec

da09d5
#
da09d5
# spec file for package maeparser
da09d5
#
Bernhard M. Wiedemann 514c2a
# Copyright (c) 2023 SUSE LLC
da09d5
#
da09d5
# All modifications and additions to the file contributed by third parties
da09d5
# remain the property of their copyright owners, unless otherwise agreed
da09d5
# upon. The license for this file, and modifications and additions to the
da09d5
# file, is the same license as for the pristine package itself (unless the
da09d5
# license for the pristine package is not an Open Source License, in which
da09d5
# case the license is the MIT License). An "Open Source License" is a
da09d5
# license that conforms to the Open Source Definition (Version 1.9)
da09d5
# published by the Open Source Initiative.
da09d5
da09d5
# Please submit bugfixes or comments via https://bugs.opensuse.org/
da09d5
#
da09d5
da09d5
da09d5
%define abiver 1
da09d5
Name:           maeparser
Bernhard M. Wiedemann 514c2a
Version:        1.3.1
da09d5
Release:        0
da09d5
Summary:        Maestro file parser
da09d5
License:        MIT
da09d5
URL:            https://github.com/schrodinger/maeparser
da09d5
Source:         https://github.com/schrodinger/maeparser/archive/v%{version}/%{name}-%{version}.tar.gz
da09d5
BuildRequires:  c++_compiler
da09d5
BuildRequires:  cmake
da09d5
BuildRequires:  libboost_filesystem-devel
da09d5
BuildRequires:  libboost_iostreams-devel
da09d5
BuildRequires:  libboost_regex-devel
da09d5
BuildRequires:  libboost_test-devel
da09d5
BuildRequires:  zlib-devel
da09d5
da09d5
%description
da09d5
maeparser is a parser for Schrödinger Maestro files.
da09d5
da09d5
%package -n libmaeparser%{abiver}
da09d5
Summary:        The maeparser shared library
da09d5
da09d5
%description -n libmaeparser%{abiver}
da09d5
This package contains the maeparser shared library.
da09d5
da09d5
%package devel
da09d5
Summary:        Development files for maeparser
da09d5
Requires:       libmaeparser%{abiver} = %{version}
da09d5
# boost/dynamic_bitset is included in maeparser headers
da09d5
Requires:       libboost_headers-devel
da09d5
da09d5
%description devel
da09d5
This package contains the development files for maeparser.
da09d5
da09d5
%prep
da09d5
%autosetup -p1
da09d5
da09d5
%build
da09d5
%cmake
da09d5
%cmake_build
da09d5
da09d5
%install
da09d5
%cmake_install
da09d5
da09d5
%post -n libmaeparser%{abiver} -p /sbin/ldconfig
da09d5
%postun -n libmaeparser%{abiver} -p /sbin/ldconfig
da09d5
da09d5
%check
da09d5
%if %{defined sle_version} && 0%{?sle_version} < 150400
da09d5
export LD_LIBRARY_PATH="$PWD/build"
da09d5
%endif
da09d5
%ctest
da09d5
da09d5
%files -n libmaeparser%{abiver}
da09d5
%license LICENSE.txt
da09d5
%{_libdir}/libmaeparser.so.%{abiver}*
da09d5
da09d5
%files devel
da09d5
%license LICENSE.txt
da09d5
%doc README.md
da09d5
%{_includedir}/maeparser
da09d5
%{_libdir}/cmake/maeparser-config.cmake
da09d5
%{_libdir}/cmake/maeparser-config-relwithdebinfo.cmake
da09d5
%{_libdir}/libmaeparser.so
da09d5
da09d5
%changelog