Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[packaging] Replace find -printf. Contributes to JB#36243
Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
  • Loading branch information
Tomin1 committed Feb 18, 2019
1 parent 0a73762 commit 68f85b0
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions glibc.spec
Expand Up @@ -324,20 +324,18 @@ rm -f $RPM_BUILD_ROOT%{_sbindir}/rpcinfo

# BUILD THE FILE LIST
{
find $RPM_BUILD_ROOT \( -type f -o -type l \) \
\( \
-name etc -printf "%%%%config " -o \
-name gconv-modules \
-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 f -o -type l \) '!' -path "*/lib/debug/*" \
| sed -e "s|^${RPM_BUILD_ROOT}||" -e '\|/etc/|s|^|%%config |' \
-e '\|/gconv-modules$|s|^|%%verify(not md5 size mtime) %%config(noreplace) |' \
-e '\|/gconv-modules\.cache$|s|^|%%verify(not md5 size mtime) |'
find $RPM_BUILD_ROOT -type d \
\( -path '*%{_prefix}/share/*' ! -path '*%{_infodir}' -o \
-path "*%{_prefix}/include/*" -o \
-path "*%{_prefix}/lib/locale/*" \
\) -printf "%%%%dir /%%P\n"
\( -path '*%{_datadir}/locale' -prune -o \
\( -path '*%{_datadir}/*' \
! -path '*%{_infodir}' -o \
-path "*%{_includedir}/*" \) \
\) \
| grep -v '%{_datadir}/locale' \
| sed "s|^$RPM_BUILD_ROOT|%%dir |"
} | {

# primary filelist
Expand Down

0 comments on commit 68f85b0

Please sign in to comment.