2024-08-16 17:32:26 +00:00
|
|
|
|
%global commit 08b1e26dbe7346ce3c7aeafe350d0962ae86a278
|
|
|
|
|
%global snapdate 20240630
|
2022-02-26 19:02:25 +00:00
|
|
|
|
|
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.
|
2024-02-27 14:07:55 +00:00
|
|
|
|
Version: 0^%{snapdate}git%{sub %{commit} 1 7}
|
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
|
2022-07-31 12:51:02 +00:00
|
|
|
|
# Toolchain-XBoxOne.cmake, which are Apache-2.0.
|
|
|
|
|
License: MIT AND Apache-2.0
|
2023-05-25 12:10:55 +00:00
|
|
|
|
Source: %{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-04-20 13:32:38 +00:00
|
|
|
|
install -d '%{buildroot}%{_datadir}/cmake/c4project'
|
2024-03-10 14:58:58 +00:00
|
|
|
|
# We install a copy of the repository, but we don’t want to include dotfiles or
|
|
|
|
|
# duplicate the README and LICENSE files.
|
|
|
|
|
find . -mindepth 1 -maxdepth 1 ! -name '.*' \( -type d -o \
|
|
|
|
|
-type f ! -name 'README.md' ! -name 'LICENSE.txt' \) \
|
|
|
|
|
-execdir cp -vrp '{}' '%{buildroot}%{_datadir}/cmake/c4project' ';'
|
2021-08-16 20:50:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# No upstream tests
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc README.md
|
|
|
|
|
|
2022-04-20 13:32:38 +00:00
|
|
|
|
%{_datadir}/cmake/c4project
|
2021-08-16 20:50:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
%autochangelog
|