forked from pool/strip-nondeterminism
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/strip-nondeterminism?expand=0&rev=7
12 lines
408 B
Plaintext
12 lines
408 B
Plaintext
# use as
|
|
# %?strip_all_nondeterminism
|
|
# or
|
|
# %if 0%?have_strip_nondeterminism > 0
|
|
# strip_nondeterminism path/to/file.zip
|
|
# %endif
|
|
|
|
%have_strip_nondeterminism 1
|
|
%strip_all_nondeterminism() \
|
|
find '(' -name '*.zip' -o -name '*.jar' -o -name '*.xpi' -o -name '*.pk3' -o -name '*.mo' -o -name '*.html' -o -name '*.gz' -o -name '*.png' ')' -print0 | xargs -0 --no-run-if-empt strip-nondeterminism \
|
|
%{nil}
|