Package: sylseg-sk
Severity: minor
Control: tags -1 patch

While checking the bug related to dpkg-buildpackge -A stuff, I noticed
that there is lots of cruft in your d/rules, e.g setting CFLAGS while your
package is not written in C.

I guess the d/rules can be updated just to have short-debhelper format:

See attached patch.

--
tobi

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -u sylseg-sk-0.7.2/debian/changelog sylseg-sk-0.7.2/debian/changelog
--- sylseg-sk-0.7.2/debian/changelog
+++ sylseg-sk-0.7.2/debian/changelog
@@ -1,3 +1,10 @@
+sylseg-sk (0.7.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Change to short debhelper sequencer.
+
+ -- Tobias Frost <t...@debian.org>  Sat, 24 Sep 2016 14:21:06 +0200
+
 sylseg-sk (0.7.2-1) unstable; urgency=high
 
   * Package building process fix.
diff -u sylseg-sk-0.7.2/debian/rules sylseg-sk-0.7.2/debian/rules
--- sylseg-sk-0.7.2/debian/rules
+++ sylseg-sk-0.7.2/debian/rules
@@ -10,92 +10,5 @@
-#export DH_VERBOSE=1
+export DH_VERBOSE=1
 
+%:
+	dh $@
 
-
-
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	# Add here commands to configure the package.
-
-	touch configure-stamp
-
-
-build: build-stamp
-
-build-stamp: configure-stamp 
-	dh_testdir
-
-	# Add here commands to compile the package.
-	#$(MAKE)
-	#docbook-to-man debian/sylseg-sk.sgml > sylseg-sk.1
-
-	touch $@
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp
-
-	# Add here commands to clean up after the build process.
-	#-$(MAKE) clean
-
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k 
-	dh_installdirs
-
-	# Add here commands to install the package into debian/sylseg-sk.
-	#$(MAKE) install DESTDIR=$(CURDIR)/debian/sylseg-sk
-	cp -v  Trans_sylseg.pm $(CURDIR)/debian/sylseg-sk/usr/share/perl5/sylseg_sk/
-	cp -v  sylseg-sk.stats $(CURDIR)/debian/sylseg-sk/usr/share/sylseg_sk/
-	cp -v  sylseg-sk-training $(CURDIR)/debian/sylseg-sk/usr/bin/
-	cp -v  sylseg-sk $(CURDIR)/debian/sylseg-sk/usr/bin/
-
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs 
-	dh_installdocs
-#	dh_installexamples
-#	dh_install
-#	dh_installmenu
-#	dh_installdebconf	
-#	dh_installlogrotate
-#	dh_installemacsen
-#	dh_installpam
-#	dh_installmime
-#	dh_python
-#	dh_installinit
-#	dh_installcron
-#	dh_installinfo
-	dh_installman sylseg-sk-training.1 sylseg-sk.1
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_perl
-#	dh_makeshlibs
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
only in patch2:
unchanged:
--- sylseg-sk-0.7.2.orig/debian/install
+++ sylseg-sk-0.7.2/debian/install
@@ -0,0 +1,5 @@
+Trans_sylseg.pm usr/share/perl5/sylseg_sk/
+sylseg-sk.stats usr/share/sylseg_sk/
+sylseg-sk-training usr/bin/
+sylseg-sk usr/bin/
+
only in patch2:
unchanged:
--- sylseg-sk-0.7.2.orig/debian/manpages
+++ sylseg-sk-0.7.2/debian/manpages
@@ -0,0 +1,2 @@
+sylseg-sk-training.1
+sylseg-sk.1

Reply via email to