2022-02-26 19:02:25 +00:00
|
|
|
|
%global commit 41a3a293f708566bf8cc2196ea2e671205821584
|
|
|
|
|
%global snapdate 20220226
|
|
|
|
|
|
|
|
|
|
%global shortcommit %(echo '%{commit}' | cut -b -7)
|
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.
|
2022-02-26 19:02:25 +00:00
|
|
|
|
Version: 0^%{snapdate}git%{shortcommit}
|
2021-08-16 20:50:19 +00:00
|
|
|
|
Release: %autorelease
|
|
|
|
|
|
2022-02-26 19:02:25 +00:00
|
|
|
|
URL: https://github.com/biojppm/cmake
|
2021-08-16 20:50:19 +00:00
|
|
|
|
# The entire source is MIT, except Toolchain-PS4.cmake and
|
|
|
|
|
# Toolchain-XBoxOne.cmake, which are ASL 2.0.
|
|
|
|
|
License: MIT and ASL 2.0
|
2022-02-26 19:02:25 +00:00
|
|
|
|
Source0: %{url}/archive/%{commit}/cmake-%{commit}.tar.gz
|
2021-08-16 20:50:19 +00:00
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
Requires: cmake-filesystem
|
2021-12-27 23:27:11 +00:00
|
|
|
|
Requires: git-core
|
2021-08-16 20:50:19 +00:00
|
|
|
|
|
|
|
|
|
%global common_description %{expand:
|
|
|
|
|
%{summary}.}
|
|
|
|
|
|
|
|
|
|
%description %{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-02-26 19:02:25 +00:00
|
|
|
|
%autosetup -n cmake-%{commit}
|
2021-08-16 20:50:19 +00:00
|
|
|
|
|
|
|
|
|
# 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
|
2022-02-26 19:02:25 +00:00
|
|
|
|
install -d '%{buildroot}%{_datadir}/cmake/%{name}'
|
|
|
|
|
cp -vrp * '%{buildroot}%{_datadir}/cmake/%{name}'
|
2021-08-16 20:50:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# No upstream tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
|
|
%{_datadir}/cmake/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
%autochangelog
|