Commit 68f85b02 authored by Tomi Leppänen's avatar Tomi Leppänen

[packaging] Replace find -printf. Contributes to JB#36243

Signed-off-by: Tomi Leppänen's avatarTomi Leppänen <tomi.leppanen@jolla.com>
parent 0a737623
...@@ -324,20 +324,18 @@ rm -f $RPM_BUILD_ROOT%{_sbindir}/rpcinfo ...@@ -324,20 +324,18 @@ rm -f $RPM_BUILD_ROOT%{_sbindir}/rpcinfo
# BUILD THE FILE LIST # BUILD THE FILE LIST
{ {
find $RPM_BUILD_ROOT \( -type f -o -type l \) \ find $RPM_BUILD_ROOT \( -type f -o -type l \) '!' -path "*/lib/debug/*" \
\( \ | sed -e "s|^${RPM_BUILD_ROOT}||" -e '\|/etc/|s|^|%%config |' \
-name etc -printf "%%%%config " -o \ -e '\|/gconv-modules$|s|^|%%verify(not md5 size mtime) %%config(noreplace) |' \
-name gconv-modules \ -e '\|/gconv-modules\.cache$|s|^|%%verify(not md5 size mtime) |'
-printf "%%%%verify(not md5 size mtime) %%%%config(noreplace) " -o \
-name gconv-modules.cache \
-printf "%%%%verify(not md5 size mtime) " \
, \
! -path "*/lib/debug/*" -printf "/%%P\n" \)
find $RPM_BUILD_ROOT -type d \ find $RPM_BUILD_ROOT -type d \
\( -path '*%{_prefix}/share/*' ! -path '*%{_infodir}' -o \ \( -path '*%{_datadir}/locale' -prune -o \
-path "*%{_prefix}/include/*" -o \ \( -path '*%{_datadir}/*' \
-path "*%{_prefix}/lib/locale/*" \ ! -path '*%{_infodir}' -o \
\) -printf "%%%%dir /%%P\n" -path "*%{_includedir}/*" \) \
\) \
| grep -v '%{_datadir}/locale' \
| sed "s|^$RPM_BUILD_ROOT|%%dir |"
} | { } | {
# primary filelist # primary filelist
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment