Tighten file exclusion pattern
The bare p4 entry was a bit concerning; it's easy to imagine false positives from such a short string. Remove git-remote-(bzr|hg) from the pattern. The scripts and placeholders were removed in git-2.0.0. While here, group all the git-* patterns and be more explicit with the svn files.
This commit is contained in:
parent
a4b4f7cade
commit
b3c76729a3
11
git.spec
11
git.spec
@ -569,7 +569,7 @@ find %{buildroot}{%{_bindir},%{gitexecdir}} -type f -name 'git-cvs*' -exec rm -f
|
|||||||
find %{buildroot}{%{_bindir},%{gitexecdir}} -type f -name '*p4*' -exec rm -f {} ';'
|
find %{buildroot}{%{_bindir},%{gitexecdir}} -type f -name '*p4*' -exec rm -f {} ';'
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
exclude_re="archimport|email|git-citool|git-cvs|git-daemon|git-gui|git-remote-bzr|git-remote-hg|git-subtree|gitk|p4|svn"
|
exclude_re="archimport|email|git-(citool|cvs|daemon|gui|p4|subtree|(remote-test)?svn)|gitk|p4merge"
|
||||||
(find %{buildroot}{%{_bindir},%{_libexecdir}} -type f -o -type l | grep -vE "$exclude_re" | sed -e s@^%{buildroot}@@) > bin-man-doc-files
|
(find %{buildroot}{%{_bindir},%{_libexecdir}} -type f -o -type l | grep -vE "$exclude_re" | sed -e s@^%{buildroot}@@) > bin-man-doc-files
|
||||||
(find %{buildroot}{%{_bindir},%{_libexecdir}} -mindepth 1 -type d | grep -vE "$exclude_re" | sed -e 's@^%{buildroot}@%dir @') >> bin-man-doc-files
|
(find %{buildroot}{%{_bindir},%{_libexecdir}} -mindepth 1 -type d | grep -vE "$exclude_re" | sed -e 's@^%{buildroot}@%dir @') >> bin-man-doc-files
|
||||||
(find %{buildroot}%{perl_vendorlib} -type f | sed -e s@^%{buildroot}@@) > perl-git-files
|
(find %{buildroot}%{perl_vendorlib} -type f | sed -e s@^%{buildroot}@@) > perl-git-files
|
||||||
@ -879,10 +879,11 @@ make test || ./print-failed-test-output
|
|||||||
%{?with_docs:%{_pkgdocdir}/git-subtree.html}
|
%{?with_docs:%{_pkgdocdir}/git-subtree.html}
|
||||||
|
|
||||||
%files svn
|
%files svn
|
||||||
%{gitexecdir}/*svn*
|
%{gitexecdir}/git-remote-testsvn
|
||||||
%{_pkgdocdir}/*svn*.txt
|
%{gitexecdir}/git-svn
|
||||||
%{?with_docs:%{_mandir}/man1/*svn*.1*}
|
%{_pkgdocdir}/git-svn.txt
|
||||||
%{?with_docs:%{_pkgdocdir}/*svn*.html}
|
%{?with_docs:%{_mandir}/man1/git-svn.1*}
|
||||||
|
%{?with_docs:%{_pkgdocdir}/git-svn.html}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Apr 02 2018 Todd Zullinger <tmz@pobox.com>
|
* Mon Apr 02 2018 Todd Zullinger <tmz@pobox.com>
|
||||||
|
Loading…
Reference in New Issue
Block a user