Don’t install duplicate README.md and LICENSE.txt files

This commit is contained in:
Benjamin A. Beasley 2024-03-10 10:58:58 -04:00
parent 78812e11ab
commit 18f56acd64

View File

@ -41,7 +41,11 @@ rm -rvf 'bm-xp'
%install
install -d '%{buildroot}%{_datadir}/cmake/c4project'
cp -vrp * '%{buildroot}%{_datadir}/cmake/c4project'
# We install a copy of the repository, but we dont want to include dotfiles or
# duplicate the README and LICENSE files.
find . -mindepth 1 -maxdepth 1 ! -name '.*' \( -type d -o \
-type f ! -name 'README.md' ! -name 'LICENSE.txt' \) \
-execdir cp -vrp '{}' '%{buildroot}%{_datadir}/cmake/c4project' ';'
%check