From 72a1db6e8d72fcdcfbc70144bda78b26c6de4ef9 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Thu, 21 Nov 2024 10:14:56 +0800 Subject: [PATCH] adopt to new cmake macro --- ccache.spec | 14 ++++++++------ ccache.yaml | 4 ++++ 2 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 ccache.yaml diff --git a/ccache.spec b/ccache.spec index 770b0b4..28a7db7 100644 --- a/ccache.spec +++ b/ccache.spec @@ -11,9 +11,9 @@ %global relccache %(%abs2rel %{_bindir}/ccache %{_libdir}/ccache) Name: ccache Version: 4.8.3 -Release: 1 +Release: 2 Summary: C/C++ compiler cache -License: GPLv3+ +License: GPL-3.0-or-later URL: http://ccache.dev/ Source0: https://github.com/ccache/ccache/releases/download/v%{version}/%{name}-%{version}.tar.gz Source1: %{name}.sh.in @@ -42,12 +42,11 @@ sed -e 's|@LIBDIR@|%{_libdir}|g' -e 's|@CACHEDIR@|%{_var}/cache/ccache|g' \ %build %cmake -%make_build -%make_build doc +%cmake_build +%cmake_build --target doc %install -rm -rf $RPM_BUILD_ROOT -%make_install +%cmake_install install -Dpm 644 %{_builddir}/ccache-%{version}/doc/ccache.1 $RPM_BUILD_ROOT%{_mandir}/man1/ccache.1 install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d @@ -196,6 +195,9 @@ getent group ccache >/dev/null || groupadd -r ccache || : %{_mandir}/man1/ccache.1* %changelog +* Thu Nov 21 2024 Funda Wang - 4.8.3-2 +- adopt to new cmake macro + * Fri Dec 8 zhoujing - 4.8.3-1 - Update to 4.8.3 diff --git a/ccache.yaml b/ccache.yaml new file mode 100644 index 0000000..1a05566 --- /dev/null +++ b/ccache.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: ccache/ccache +tag_prefix: ^v +separator: . -- Gitee