SHA256
1
0
forked from pool/fdupes

Compare commits

..

2 Commits

2 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 24 21:48:40 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Make build recipe succeed with POSIX sh
- Add extra quoting along the way
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jun 29 20:11:57 UTC 2024 - Dirk Müller <dmueller@suse.com> Sat Jun 29 20:11:57 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package fdupes # spec file for package fdupes
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -40,7 +40,7 @@ residing within specified directories.
%build %build
%configure --without-ncurses --without-sqlite %configure --without-ncurses --without-sqlite
%make_build %make_build
g++ $RPM_OPT_FLAGS %{S:2} -o fdupes_wrapper g++ %optflags %{S:2} -o fdupes_wrapper
%install %install
%make_install %make_install
@ -54,7 +54,7 @@ install -D -m755 fdupes_wrapper %{buildroot}/usr/lib/rpm/fdupes_wrapper
./%{name} --size testdir ./%{name} --size testdir
# Check wrapper # Check wrapper
PATH=`pwd`:$PATH PATH="$(pwd):$PATH"
(cd testdir; md5sum ./* ./*/* > ../testdir.md5 || true) (cd testdir; md5sum ./* ./*/* > ../testdir.md5 || true)
for operation in '-n' '-s' ' '; do for operation in '-n' '-s' ' '; do
cp -R testdir "testdir${operation}" cp -R testdir "testdir${operation}"
@ -64,13 +64,13 @@ done
# Check order does not depend on creation order - x should be target # Check order does not depend on creation order - x should be target
mkdir testdir_order mkdir testdir_order
for t in "a b x" "x a b" "a x b"; do for t in "a b x" "x a b" "a x b"; do
pushd testdir_order cd testdir_order
for f in $t ; do cp ../testdir.md5 $f; done for f in $t ; do cp ../testdir.md5 "$f"; done
../fdupes_wrapper -s ./ ../fdupes_wrapper -s ./
test -h ./a test -h ./a
test -h ./b test -h ./b
rm * rm *
popd cd -
done done
%files %files