2021-08-16 20:50:19 +00:00
|
|
|
|
%global forgeurl https://github.com/biojppm/cmake/
|
2021-12-27 22:36:32 +00:00
|
|
|
|
%global commit 7a35d94e15221c2db050668c5549e730a26be01f
|
2021-08-16 20:50:19 +00:00
|
|
|
|
|
|
|
|
|
Name: c4project
|
|
|
|
|
Summary: Useful CMake scripts
|
|
|
|
|
# This project has never been assigned a version. The author really intends it
|
|
|
|
|
# for use as a git submodule rather than for system-wide installation.
|
|
|
|
|
Version: 0
|
|
|
|
|
%forgemeta
|
|
|
|
|
# Note that snapshot information is added by %%forgemeta.
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
|
|
|
|
|
URL: %{forgeurl}
|
|
|
|
|
# The entire source is MIT, except Toolchain-PS4.cmake and
|
|
|
|
|
# Toolchain-XBoxOne.cmake, which are ASL 2.0.
|
|
|
|
|
License: MIT and ASL 2.0
|
|
|
|
|
Source0: %{forgesource}
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
Requires: cmake-filesystem
|
|
|
|
|
|
|
|
|
|
%global common_description %{expand:
|
|
|
|
|
%{summary}.}
|
|
|
|
|
|
|
|
|
|
%description %{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%forgeautosetup
|
|
|
|
|
|
|
|
|
|
# For now, we elect not to install the “bm-xp” browser-based benchmark explorer
|
|
|
|
|
# tool. It would be inconvenient to package this in a way that was useful in
|
|
|
|
|
# practice, and it’s not required by any of the CMake macros that are the real
|
|
|
|
|
# point of packaging this.
|
|
|
|
|
rm -rvf 'bm-xp'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Nothing to do
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2021-11-03 17:11:20 +00:00
|
|
|
|
install -t %{buildroot}%{_datadir}/cmake/%{name} -D -p -m 0644 *
|
2021-08-16 20:50:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# No upstream tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
|
|
%{_datadir}/cmake/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
%autochangelog
|