version 1.12 remove obsolete tests patch don't run md5sum against MD5sums

as it lists a non-existing .MD5sums file which causes md5sum to error
    out change license tag to "GPLv2 or GPLv3"
This commit is contained in:
Nils Philippsen 2008-02-25 13:32:41 +00:00
parent 1315c58501
commit 6112873c44
4 changed files with 12 additions and 86 deletions

View File

@ -1 +1 @@
convmv-1.10.tar.gz
convmv-1.12.tar.gz

View File

@ -1,77 +0,0 @@
diff -up convmv-1.10/suite/dotests.sh.tests convmv-1.10/suite/dotests.sh
--- convmv-1.10/suite/dotests.sh.tests 2006-06-26 00:01:16.000000000 +0200
+++ convmv-1.10/suite/dotests.sh 2007-09-27 16:44:39.000000000 +0200
@@ -3,62 +3,63 @@
# you might want to change this to GNU find's full path:
FIND=find
FINDEXP="%P -- %l\n"
-for dir in `ls -d test*` ; do $FIND $dir/ -printf "$FINDEXP" > out-$dir ; done
+
+for dir in `ls -d test*` ; do $FIND $dir/ -printf "$FINDEXP" | sort > out-$dir ; done
#
echo smartness-test
rm -rf test.tmp
cp -r test test.tmp
../convmv -f iso8859-15 -t utf8 --notest -r test.tmp
false
-$FIND test.tmp -printf "$FINDEXP" > out.tmp
+$FIND test.tmp -printf "$FINDEXP" | sort > out.tmp
diff out-test out.tmp > diff.tmp|| { echo "smartness-test failed." ; exit 1; }
#
echo double-utf8 test
../convmv -f iso8859-15 -t utf8 --notest -r --nosmart test.tmp
-$FIND test.tmp -printf "$FINDEXP" > out.tmp
+$FIND test.tmp -printf "$FINDEXP" | sort > out.tmp
diff out-test-utf8 out.tmp > diff.tmp|| { echo "double-utf8 test failed." ; exit 1; }
#
../convmv -f utf8 -t iso8859-15 --notest -r test.tmp
-$FIND test.tmp -printf "$FINDEXP" > out.tmp
+$FIND test.tmp -printf "$FINDEXP" | sort > out.tmp
diff out-test out.tmp > diff.tmp|| { echo undo-double-utf8 test failed. ; exit 1; }
#
echo utf8-to-iso8859-15-test
rm -r test.tmp
cp -r test test.tmp
../convmv -f utf8 -t iso8859-15 --notest -r test.tmp
-$FIND test.tmp -printf "$FINDEXP" > out.tmp
+$FIND test.tmp -printf "$FINDEXP" | sort > out.tmp
diff out-test-iso8859-15 out.tmp > diff.tmp|| { echo utf8-to-iso8859-15-test failed. ; exit 1; }
#
echo iso8859-15-to-utf8-test
rm -r test.tmp
cp -r test-iso8859-15 test.tmp
../convmv -f iso8859-15 -t utf8 --notest -r test.tmp
-$FIND test.tmp -printf "$FINDEXP" > out.tmp
+$FIND test.tmp -printf "$FINDEXP" | sort > out.tmp
diff out-test out.tmp > diff.tmp|| { echo iso8859-15-to-utf8-test failed. ; exit 1; }
#
echo nfc-test
rm -r test.tmp
cp -r test test.tmp
../convmv -f utf-8 -t utf-8 --nfd --notest -r test.tmp
-$FIND test.tmp -printf "$FINDEXP" > out.tmp
+$FIND test.tmp -printf "$FINDEXP" | sort > out.tmp
diff out-test-nfd out.tmp > diff.tmp|| { echo nfd-test failed. ; exit 1; }
#
../convmv -f utf8 -t utf8 --nfc --notest -r test.tmp
-$FIND test.tmp -printf "$FINDEXP" > out.tmp
+$FIND test.tmp -printf "$FINDEXP" | sort > out.tmp
diff out-test out.tmp > diff.tmp|| { echo nfc-test failed. ; exit 1; }
#
echo escaped-test
rm -r test.tmp
cp -r test-escaped test.tmp
../convmv --unescape --notest -r test.tmp
-$FIND test.tmp -printf "$FINDEXP" > out.tmp
+$FIND test.tmp -printf "$FINDEXP" | sort > out.tmp
diff out-test out.tmp > diff.tmp|| { echo escaped-test failed. ; exit 1; }
#
echo upper-test
rm -r test.tmp
cp -r test test.tmp
../convmv --upper -f utf8 --notest -r test.tmp
-$FIND TEST.TMP -printf "$FINDEXP" > out.tmp
+$FIND TEST.TMP -printf "$FINDEXP" | sort > out.tmp
diff out-test-upper out.tmp > diff.tmp|| { echo upper-test failed. ; exit 1; }
echo All tests successful, cleaning up now ...

View File

@ -1,14 +1,12 @@
Summary: Convert filename encodings
Name: convmv
Version: 1.10
Release: 3%{?dist}
Version: 1.12
Release: 1%{?dist}
Group: Applications/System
License: GPLv2
License: GPLv2 or GPLv3
URL: http://j3e.de/linux/convmv
Source0: http://j3e.de/linux/convmv/convmv-%{version}.tar.gz
Patch0: convmv-1.10-tests.patch
BuildRequires: coreutils
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -19,10 +17,8 @@ of filenames, e.g. from Latin1 to UTF-8.
%prep
%setup -q
tar -xf testsuite.tar
%patch0 -p1 -b .tests
%build
md5sum -c MD5sums
make
%check
@ -42,6 +38,13 @@ rm -rf %{buildroot}
%{_mandir}/man*/*
%changelog
* Mon Feb 25 2008 Nils Philippsen <nphilipp@redhat.com> - 1.12-1
- version 1.12
- remove obsolete tests patch
- don't run md5sum against MD5sums as it lists a non-existing .MD5sums file
which causes md5sum to error out
- change license tag to "GPLv2 or GPLv3"
* Mon Sep 27 2007 Nils Philippsen <nphilipp@redhat.com> - 1.10-3
- don't expect find output to be sorted, move "make test" to %%check (#237687,
patch by Giuseppe Bonacci)

View File

@ -1 +1 @@
8daf88557f40523312c40abc31b8167f convmv-1.10.tar.gz
f96ca9198fc0a2192920f5baf002dfe4 convmv-1.12.tar.gz