File cmrc.spec of Package cmrc
#
# spec file for package cmrc
#
# Copyright (c) 2023 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 appname cmakerc
Name: cmrc
Version: 2.0.1
Release: 0
Summary: Standalone CMake-Based C++ Resource Compiler
License: MIT
Group: Development/Languages/C and C++
URL: https://github.com/vector-of-bool/cmrc
Source0: https://github.com/vector-of-bool/cmrc/archive/%{version}/%{name}-%{version}.tar.gz
# https://github.com/vector-of-bool/cmrc/pull/40
Patch100: %{name}-installation.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildArch: noarch
%description
CMakeRC is a resource compiler provided in a single CMake script that can
easily be included in another project.
For the purpose of this project, a resource compiler is a tool that will
compile arbitrary data into a program. The program can then read this data
from without needing to store that data on disk external to the program.
%package devel
Summary: Standalone CMake-Based C++ Resource Compiler
Provides: %{appname} = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{appname}-devel = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%description devel
Development files for cmrc.
A Standalone CMake-Based C++ Resource Compiler.
%prep
%autosetup -p1
%build
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTS:BOOL=ON
%cmake_build
%check
%ctest
%install
%cmake_install
%files devel
%doc README.md
%license LICENSE.txt
%{_datadir}/cmake/%{appname}/
%changelog