Don’t install duplicate README.md and LICENSE.txt files
This commit is contained in:
parent
78812e11ab
commit
18f56acd64
@ -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 don’t 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
|
||||
|
Loading…
Reference in New Issue
Block a user