c4project/c4project.spec
Benjamin A. Beasley 1c879325c1 Update to 0fb4dd1
2023-04-11 16:43:36 -04:00

60 lines
1.4 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%global commit 0fb4dd1c36a12aefb93439b2aceb2643f95a8462
%global snapdate 20230410
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)
Release: %autorelease
URL: https://github.com/biojppm/cmake
# The entire source is MIT, except Toolchain-PS4.cmake and
# Toolchain-XBoxOne.cmake, which are Apache-2.0.
License: MIT AND Apache-2.0
Source0: %{url}/archive/%{commit}/cmake-%{commit}.tar.gz
BuildArch: noarch
Requires: cmake-filesystem
Requires: git-core
%global common_description %{expand:
%{summary}.}
%description %{common_description}
%prep
%autosetup -n cmake-%{commit}
# 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'
%check
# No upstream tests
%files
%license LICENSE.txt
%doc README.md
%{_datadir}/cmake/c4project
%changelog
%autochangelog