Update to 4.8.3
This commit is contained in:
parent
e1f641d31b
commit
3322690545
15
README.en.md
15
README.en.md
@ -3,21 +3,6 @@
|
|||||||
#### Description
|
#### Description
|
||||||
ccache is a c/c++ compiler ccache
|
ccache is a c/c++ compiler ccache
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
#### Contribution
|
||||||
|
|
||||||
1. Fork the repository
|
1. Fork the repository
|
||||||
|
|||||||
16
README.md
16
README.md
@ -3,22 +3,6 @@
|
|||||||
#### 介绍
|
#### 介绍
|
||||||
ccache is a c/c++ compiler ccache
|
ccache is a c/c++ compiler ccache
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
#### 参与贡献
|
||||||
|
|
||||||
1. Fork 本仓库
|
1. Fork 本仓库
|
||||||
|
|||||||
Binary file not shown.
BIN
ccache-4.8.3.tar.gz
Normal file
BIN
ccache-4.8.3.tar.gz
Normal file
Binary file not shown.
25
ccache.spec
25
ccache.spec
@ -10,7 +10,7 @@
|
|||||||
%define abs2rel() perl -MFile::Spec -e 'print File::Spec->abs2rel(@ARGV)' %1 %2
|
%define abs2rel() perl -MFile::Spec -e 'print File::Spec->abs2rel(@ARGV)' %1 %2
|
||||||
%global relccache %(%abs2rel %{_bindir}/ccache %{_libdir}/ccache)
|
%global relccache %(%abs2rel %{_bindir}/ccache %{_libdir}/ccache)
|
||||||
Name: ccache
|
Name: ccache
|
||||||
Version: 3.7.12
|
Version: 4.8.3
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: C/C++ compiler cache
|
Summary: C/C++ compiler cache
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -18,7 +18,13 @@ URL: http://ccache.dev/
|
|||||||
Source0: https://github.com/ccache/ccache/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
Source0: https://github.com/ccache/ccache/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: %{name}.sh.in
|
Source1: %{name}.sh.in
|
||||||
Source2: %{name}.csh.in
|
Source2: %{name}.csh.in
|
||||||
BuildRequires: perl perl(File::Spec) zlib-devel >= 1.2.3 clang
|
BuildRequires: perl perl(File::Spec)
|
||||||
|
BuildRequires: rubygem-asciidoctor
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: hiredis-devel
|
||||||
|
BuildRequires: libzstd-devel
|
||||||
|
BuildRequires: clang clang-tools-extra
|
||||||
|
|
||||||
Requires: coreutils
|
Requires: coreutils
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
%description
|
%description
|
||||||
@ -33,15 +39,17 @@ sed -e 's|@LIBDIR@|%{_libdir}|g' -e 's|@CACHEDIR@|%{_var}/cache/ccache|g' \
|
|||||||
%{SOURCE1} > %{name}.sh
|
%{SOURCE1} > %{name}.sh
|
||||||
sed -e 's|@LIBDIR@|%{_libdir}|g' -e 's|@CACHEDIR@|%{_var}/cache/ccache|g' \
|
sed -e 's|@LIBDIR@|%{_libdir}|g' -e 's|@CACHEDIR@|%{_var}/cache/ccache|g' \
|
||||||
%{SOURCE2} > %{name}.csh
|
%{SOURCE2} > %{name}.csh
|
||||||
rm -r src/zlib
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%cmake
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
%make_build doc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%make_install
|
%make_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
|
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||||
install -pm 644 %{name}.sh %{name}.csh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
install -pm 644 %{name}.sh %{name}.csh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||||
install -dm 770 $RPM_BUILD_ROOT%{_var}/cache/ccache
|
install -dm 770 $RPM_BUILD_ROOT%{_var}/cache/ccache
|
||||||
@ -71,8 +79,8 @@ find $RPM_BUILD_ROOT%{_libdir}/ccache -type l | \
|
|||||||
sed -e "s|^$RPM_BUILD_ROOT|%%ghost |" > %{name}-%{version}.compilers
|
sed -e "s|^$RPM_BUILD_ROOT|%%ghost |" > %{name}-%{version}.compilers
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
ctest
|
||||||
make check CC=clang
|
|
||||||
%define ccache_trigger(p:) \
|
%define ccache_trigger(p:) \
|
||||||
%triggerin -- %{-p*}\
|
%triggerin -- %{-p*}\
|
||||||
for n in %* ; do\
|
for n in %* ; do\
|
||||||
@ -188,5 +196,8 @@ getent group ccache >/dev/null || groupadd -r ccache || :
|
|||||||
%{_mandir}/man1/ccache.1*
|
%{_mandir}/man1/ccache.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 8 zhoujing <zhoujing106@huawei.com> - 4.8.3-1
|
||||||
|
- Update to 4.8.3
|
||||||
|
|
||||||
* Fri Dec 4 2020 huanghaitao <huanghaitao8@huawei.com> - 3.7.12-1
|
* Fri Dec 4 2020 huanghaitao <huanghaitao8@huawei.com> - 3.7.12-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user