exclude sample hook files from automatic dependency detection

This commit is contained in:
Ondřej Pohořelský 2025-08-21 18:33:27 +02:00
commit 8e9df669b8

View file

@ -79,7 +79,7 @@
Name: git
Version: 2.51.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Fast Version Control System
License: BSD-3-Clause AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
URL: https://git-scm.com/
@ -605,6 +605,9 @@ EOF
%endif
# endif ! defined perl_bootstrap
# Exclude sample hook files from automatic dependency detection
%global __requires_exclude_from ^%{_datadir}/git-core/templates/hooks/.*sample$
# Remove Git::LoadCPAN to ensure we use only system perl modules. This also
# allows the dependencies to be automatically processed by rpm.
rm -rf perl/Git/LoadCPAN{.pm,/}
@ -1039,6 +1042,9 @@ rmdir --ignore-fail-on-non-empty "$testdir"
%{?with_docs:%{_pkgdocdir}/git-svn.html}
%changelog
* Thu Aug 21 2025 Ondřej Pohořelský <opohorel@redhat.com> - 2.51.0-2
- exclude sample hook files from automatic dependency detection
* Wed Aug 20 2025 Ondřej Pohořelský <opohorel@redhat.com> - 2.51.0-1
- update to 2.51.0