279 lines
9.7 KiB
RPMSpec
279 lines
9.7 KiB
RPMSpec
Name: ccache
|
|
Version: 4.10.2
|
|
Release: 2mamba
|
|
Summary: A compiler cache that often boosts from 5 to 10 times speedup in common compilations.
|
|
Group: Development/Tools
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://ccache.dev/
|
|
Source: https://github.com/ccache/ccache.git/v%{version}/ccache-%{version}.tar.bz2
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libfmt-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libhiredis-devel
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libxxhash-devel
|
|
BuildRequires: libzstd-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: asciidoc
|
|
BuildRequires: libfmt-devel >= 11.0.2
|
|
|
|
%description
|
|
ccache is a compiler cache. It acts as a caching pre-processor to C/C++ compilers, using the -E compiler switch and a hash to detect when a compilation can be satisfied from cache. This often results in a 5 to 10 times speedup in common compilations.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%cmake -d build
|
|
|
|
#%ifarch %{ix86}
|
|
# -DUSE_FASTER_LINKER=OFF
|
|
#%endif
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall -C build
|
|
|
|
install -d -m0755 %{buildroot}%{_libdir}/ccache/bin
|
|
for p in gcc g++ c++; do
|
|
ln -s %{_bindir}/ccache %{buildroot}%{_libdir}/ccache/bin/${p}
|
|
ln -s %{_bindir}/ccache %{buildroot}%{_libdir}/ccache/bin/%{_host}-${p}
|
|
done
|
|
|
|
for p in cc clang clang++; do
|
|
ln -s %{_bindir}/ccache %{buildroot}%{_libdir}/ccache/bin/${p}
|
|
done
|
|
|
|
install -d -m0755 %{buildroot}%{_sysconfdir}/default
|
|
cat > %{buildroot}%{_sysconfdir}/default/ccache << EOF
|
|
CCACHE_ENABLED=yes
|
|
EOF
|
|
|
|
install -d -m0755 %{buildroot}%{_sysconfdir}/profile.d
|
|
cat > %{buildroot}%{_sysconfdir}/profile.d/ccache.sh << EOF
|
|
. %{_sysconfdir}/default/ccache
|
|
if [ "\${CCACHE_ENABLED}" == "yes" ]; then
|
|
export PATH=%{_libdir}/ccache/bin:\$PATH
|
|
fi
|
|
EOF
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%config(noreplace) %{_sysconfdir}/default/ccache
|
|
%{_sysconfdir}/profile.d/ccache.sh
|
|
%{_bindir}/ccache
|
|
%dir %{_libdir}/ccache
|
|
%{_libdir}/ccache/*
|
|
%{_mandir}/man1/ccache.1*
|
|
%doc GPL-3.0.txt
|
|
|
|
%changelog
|
|
* Sat Jul 27 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.10.2-2mamba
|
|
- rebuilt with libfmt 11.0.2
|
|
|
|
* Mon Jul 22 2024 Automatic Build System <autodist@openmamba.org> 4.10.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jul 01 2024 Automatic Build System <autodist@openmamba.org> 4.10.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri May 31 2024 Automatic Build System <autodist@openmamba.org> 4.10-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Feb 06 2024 Automatic Build System <autodist@openmamba.org> 4.9.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Dec 31 2023 Automatic Build System <autodist@mambasoft.it> 4.9-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Dec 10 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 4.8.3-2mamba
|
|
- provide ccache folder with symlinks, profile and default files to quickly enable or disable system-wide usage
|
|
|
|
* Wed Aug 30 2023 Automatic Build System <autodist@mambasoft.it> 4.8.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jun 13 2023 Automatic Build System <autodist@mambasoft.it> 4.8.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat May 20 2023 Automatic Build System <autodist@mambasoft.it> 4.8.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Mar 13 2023 Automatic Build System <autodist@mambasoft.it> 4.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jan 11 2023 Automatic Build System <autodist@mambasoft.it> 4.7.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Nov 07 2022 Automatic Build System <autodist@mambasoft.it> 4.7.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Oct 30 2022 Automatic Build System <autodist@mambasoft.it> 4.7.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Oct 23 2022 Automatic Build System <autodist@mambasoft.it> 4.7.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Oct 18 2022 Automatic Build System <autodist@mambasoft.it> 4.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Aug 28 2022 Automatic Build System <autodist@mambasoft.it> 4.6.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Aug 23 2022 Automatic Build System <autodist@mambasoft.it> 4.6.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon May 16 2022 Automatic Build System <autodist@mambasoft.it> 4.6.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Feb 28 2022 Automatic Build System <autodist@mambasoft.it> 4.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Nov 17 2021 Automatic Build System <autodist@mambasoft.it> 4.5.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Nov 14 2021 Automatic Build System <autodist@mambasoft.it> 4.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Sep 29 2021 Automatic Build System <autodist@mambasoft.it> 4.4.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Sep 11 2021 Automatic Build System <autodist@mambasoft.it> 4.4.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Aug 20 2021 Automatic Build System <autodist@mambasoft.it> 4.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon May 10 2021 Automatic Build System <autodist@mambasoft.it> 4.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Mar 30 2021 Automatic Build System <autodist@mambasoft.it> 4.2.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Feb 04 2021 Automatic Build System <autodist@mambasoft.it> 4.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Jan 10 2021 Automatic Build System <autodist@mambasoft.it> 4.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jul 25 2020 Automatic Build System <autodist@mambasoft.it> 3.7.11-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Jul 17 2020 Automatic Build System <autodist@mambasoft.it> 3.7.10-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Mar 31 2020 Automatic Build System <autodist@mambasoft.it> 3.7.9-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Mar 23 2020 Automatic Build System <autodist@mambasoft.it> 3.7.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jan 06 2020 Automatic Build System <autodist@mambasoft.it> 3.7.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Nov 28 2019 Automatic Build System <autodist@mambasoft.it> 3.7.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Nov 09 2019 Automatic Build System <autodist@mambasoft.it> 3.7.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Sep 13 2019 Automatic Build System <autodist@mambasoft.it> 3.7.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Aug 21 2019 Automatic Build System <autodist@mambasoft.it> 3.7.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Aug 17 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.2-1mamba
|
|
- update to 3.7.2
|
|
|
|
* Mon Jan 28 2019 Automatic Build System <autodist@mambasoft.it> 3.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Oct 17 2018 Automatic Build System <autodist@mambasoft.it> 3.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Sep 04 2018 Automatic Build System <autodist@mambasoft.it> 3.4.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Apr 08 2018 Automatic Build System <autodist@mambasoft.it> 3.4.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Feb 27 2018 Automatic Build System <autodist@mambasoft.it> 3.4.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Jan 18 2018 Automatic Build System <autodist@mambasoft.it> 3.3.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Feb 24 2017 Automatic Build System <autodist@mambasoft.it> 3.3.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Oct 28 2016 Automatic Build System <autodist@mambasoft.it> 3.3.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Sep 30 2016 Automatic Build System <autodist@mambasoft.it> 3.3.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Sep 09 2016 Automatic Build System <autodist@mambasoft.it> 3.3.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Sep 01 2016 Automatic Build System <autodist@mambasoft.it> 3.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jul 25 2016 Automatic Build System <autodist@mambasoft.it> 3.2.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Jul 24 2016 Automatic Build System <autodist@mambasoft.it> 3.2.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Apr 21 2016 Automatic Build System <autodist@mambasoft.it> 3.2.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Dec 17 2015 Automatic Build System <autodist@mambasoft.it> 3.2.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Aug 19 2015 Automatic Build System <autodist@mambasoft.it> 3.2.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed May 13 2015 Automatic Build System <autodist@mambasoft.it> 3.2.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Dec 14 2014 Automatic Build System <autodist@mambasoft.it> 3.2.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Nov 20 2014 Automatic Build System <autodist@mambasoft.it> 3.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Oct 21 2014 Automatic Build System <autodist@mambasoft.it> 3.1.10-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Jan 10 2013 Automatic Build System <autodist@mambasoft.it> 3.1.9-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Aug 17 2012 Automatic Build System <autodist@mambasoft.it> 3.1.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jul 21 2012 Automatic Build System <autodist@mambasoft.it> 3.1.7-1mamba
|
|
- update to 3.1.7
|
|
|
|
* Wed May 23 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4-3mamba
|
|
- group entry fixed
|
|
|
|
* Sun Oct 30 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4-2qilnx
|
|
- specfile updated
|
|
|
|
* Fri Dec 17 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4-1qilnx
|
|
- update to version 2.4 by autospec
|
|
|
|
* Mon Oct 13 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3-1qilnx
|
|
- first build
|