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 2d9626c891
commit 92601f183a

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