c4project/c4project.spec

64 lines
1.5 KiB
RPMSpec
Raw Normal View History

2022-08-03 18:17:38 +00:00
%global commit 2825506c79a92c32a27d76cbfde4f82d4d1f7ff8
%global snapdate 20220802
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^%{snapdate}git%(echo '%{commit}' | cut -b -7)
2021-08-16 20:50:19 +00:00
Release: %autorelease
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
Source0: %{url}/archive/%{commit}/cmake-%{commit}.tar.gz
2021-08-16 20:50:19 +00:00
BuildArch: noarch
# Add s390x to c4_get_target_cpu_architecture
# https://github.com/biojppm/cmake/pull/10
Patch: %{url}/pull/10.patch
2021-08-16 20:50:19 +00:00
Requires: cmake-filesystem
Requires: git-core
2021-08-16 20:50:19 +00:00
%global common_description %{expand:
%{summary}.}
%description %{common_description}
%prep
%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 its 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
install -d '%{buildroot}%{_datadir}/cmake/c4project'
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
%{_datadir}/cmake/c4project
2021-08-16 20:50:19 +00:00
%changelog
%autochangelog