4a7211d744
please forward to factory (can do maintainer for it) - update to 1.20.2: * Interactive deletion now offers "link set" options too * Interactive deletion now assumes 'a' when you just hit [ENTER] - add jdupes rpm macro for dropin %%fdupes replacement - run tests OBS-URL: https://build.opensuse.org/request/show/960616 OBS-URL: https://build.opensuse.org/package/show/utilities/jdupes?expand=0&rev=2
21 lines
469 B
Plaintext
21 lines
469 B
Plaintext
%jdupes(s) \
|
|
_target=""; _symlinks=0; \
|
|
%{-s:_symlinks=1;} \
|
|
if test "$_symlinks" = 1; then \
|
|
jdupes -q -p -H -o name -r %1 | \
|
|
while read _file; do \
|
|
if test -z "$_target" ; then \
|
|
_target="$_file"; \
|
|
else \
|
|
if test -z "$_file" ; then \
|
|
_target=""; \
|
|
continue ; \
|
|
fi ; \
|
|
ln -sf "${_target#%{buildroot}}" "$_file"; \
|
|
fi ; \
|
|
done ; \
|
|
else \
|
|
jdupes -q -p -H -o name -L -r %1 ; \
|
|
fi ; \
|
|
%{nil}
|