File ign-cmake.spec of Package ign-cmake2

#
# spec file for package ign-cmake2
#
# Copyright (c) 2026 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:           ign-cmake2
Version:        2.17.3
Release:        0
Summary:	Ignition CMake : CMake Modules for Ignition Projects
License:        Apache-2.0
URL:            https://github.com/gazebosim/gz-cmake
Source:         %{name}-%{version}.tar.gz
Requires:       ign-support-includedir
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  ign-support-includedir

%description
ignition-cmake provides a set of cmake modules that are used by the C++-based ignition projects. These modules help to control the quality and consistency of the ignition projects' build systems.

These modules are tailored to the ignition projects, so their use for non-ignition projects might be limited, but they may serve as a useful reference for setting up a modern cmake build system using good practices.

%prep
%autosetup -p1

%build
mkdir -p obj-%{_target_platform} && cd obj-%{_target_platform}
cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    ..

%make_build

%install
%make_install -C obj-%{_target_platform}

#%%check
#%%make_build check

%files
%dir %{_includedir}/ignition/cmake2
%dir %{_includedir}/ignition/cmake2/gz
%dir %{_includedir}/ignition/cmake2/gz/utilities
%dir %{_includedir}/ignition/cmake2/gz/utilities/detail
%dir %{_includedir}/ignition/cmake2/ignition
%dir %{_includedir}/ignition/cmake2/ignition/utilities
%dir %{_datadir}/ignition
%{_includedir}/ignition/cmake2/gz/utilities/ExtraTestMacros.hh
%{_includedir}/ignition/cmake2/gz/utilities/SuppressWarning.hh
%{_includedir}/ignition/cmake2/gz/utilities/detail/ExtraTestMacros.hh
%{_includedir}/ignition/cmake2/gz/utilities/detail/SuppressWarning.hh
%{_includedir}/ignition/cmake2/ignition/utilities/ExtraTestMacros.hh
%{_includedir}/ignition/cmake2/ignition/utilities/SuppressWarning.hh
%{_datadir}/cmake/ignition-cmake2/
%{_datadir}/ignition/ignition-cmake2/
%{_libdir}/pkgconfig/ignition-cmake2.pc

%changelog
openSUSE Build Service is sponsored by