File projectm-eval.spec of Package projectm-eval

#
# spec file for package projectm-eval
#
# 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/
#


%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
%define _libver 1

Name:           projectm-eval
Version:        1.0.0
Release:        0
Summary:        The projectM Expression Evaluation Library
License:        MIT
Group:          Productivity/Multimedia/Sound/Visualization
URL:            http://projectm.sourceforge.net
%define scm     https://github.com/projectM-visualizer/projectm-eval
Source0:        %{scm}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  cmake

%description
The projectM Expression Evaluation Library.

%package        devel
Summary:        Development Files for projectm-eval
Group:          Development/Libraries/C and C++

%description    devel
The projectM Expression Evaluation Library.
This package contains its development files.

%package        devel-static
Summary:        Development Files for projectm-eval
Group:          Development/Libraries/C and C++
Requires:       %{name}-devel = %{version}

%description    devel-static
The projectM Expression Evaluation Library.
This package contains its development files.

%prep
%autosetup

%build
%cmake
%cmake_build

%check
%ctest

%install
%cmake_install

%files devel
%license LICENSE.md
%doc ReadMe.md
%{_libdir}/cmake/
%{_includedir}/%{name}/

%files devel-static
%{_libdir}/*.a

%changelog
openSUSE Build Service is sponsored by