debian: create NEWS.gz in /usr/share/doc/e2fsprogs

Create the full NEWS.gz and put it in /usr/share/doc/e2fsprogs instead
of the RELEASE-NOTES file to comply with the Debian policy 4.2.0.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
diff --git a/debian/e2fsprogs.docs b/debian/e2fsprogs.docs
index 7af9733..e845566 100644
--- a/debian/e2fsprogs.docs
+++ b/debian/e2fsprogs.docs
@@ -1,2 +1 @@
 README
-RELEASE-NOTES
diff --git a/debian/rules b/debian/rules
index 41aa202..36085bb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -279,6 +279,8 @@
 
 	( cd ${stdbuilddir}/doc && $(MAKE) V=1 libext2fs.html )
 	( cd ${stdbuilddir}/lib/et && $(MAKE) V=1 com_err.info com_err.html )
+	cat $(shell /bin/ls -1 ./doc/RelNotes/*.txt | tac) | \
+		gzip -9n > ${stdbuilddir}/NEWS.gz
 
 	touch ${BUILDSTDSTAMP}
 
@@ -328,6 +330,8 @@
 	${INSTALL} -m 0644 misc/mke2fs-hurd.conf ${tmpdir}/etc/mke2fs.conf
 endif
 
+	dh_install -p e2fsprogs --sourcedir=${stdbuilddir} NEWS.gz \
+		usr/share/doc/e2fsprogs
 	dh_movefiles
 	test -z "`find ${tmpdir} -type f`"