File debbuild.patch of Package bleriot-font

Index: Bleriot-0.9.2/debian/rules
===================================================================
--- Bleriot-0.9.2.orig/debian/rules
+++ Bleriot-0.9.2/debian/rules
@@ -6,65 +6,58 @@ package=bleriot-fonts
 installdir=usr/X11R6/lib/X11/fonts/misc
 
 build:
-	$(checkdir)
-
 	for f in *.bdf; do \
 		bdftopcf $$f > `basename $$f .bdf`.pcf; \
 	done
 
-	touch build
-
 clean:
-	$(checkdir)
-	-rm -f build
-	-rm -f *.pcf
-	-rm -f `find . -name "*~"`
-	-rm -rf debian/tmp debian/files* core debian/substvars
-	-rm -f $(package).alias
-
-binary-indep:	checkroot build
-	$(checkdir)
-	-rm -rf debian/tmp
-	install -d debian/tmp
-	install -d debian/tmp/$(installdir)
-
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	install -d $(CURDIR)/debian/tmp/$(installdir)
 	for f in *.pcf; do \
 	  install -m644 $$f debian/tmp/$(installdir); \
 	  gzip debian/tmp/$(installdir)/$$f; \
 	done
-	install -d debian/tmp/etc/X11/fonts/misc/
-
 	tools/generate_alias.pl *.bdf > $(package).alias
-	install -m644 $(package).alias debian/tmp/etc/X11/fonts/misc/
-
-	install -d debian/tmp/usr/share/doc/$(package)/html
-	## the following line requires that you make the fonts available
-	## for the current server (xset +fp the_dir)
-	cd debian/tmp/usr/share/doc/$(package)/html && ../../../../../../../tools/create_html_info.pl -snap
-
-	debstd doc/README -c doc/RadarFont_charset_encoding.txt ## do not compress html/*png !!!
-	dpkg-gencontrol
-	chown -R root.root debian/tmp
-	chmod -R go=rX debian/tmp
-	dpkg --build debian/tmp ..
-
-binary-arch:	checkroot build
-	$(checkdir)
+	install -m644 $(package).alias $(CURDIR)/debian/tmp/$(installdir)
+	install -d $(CURDIR)/debian/tmp/usr/share/doc/$(package)/html
+	cd $(CURDIR)/debian/tmp/usr/share/doc/$(package)/html && cat /dev/null > xvfb-auth && xvfb-run --auto-servernum --error-file=xvfb-err --auth-file=xvfb-auth --server-args="-screen 0 800x600x24 -bs -deferglyphs none -dpi 96" $(CURDIR)/tools/create_html_info.pl -snap
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installexamples
+	dh_install
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
 
 # There are no architecture-dependent files to be uploaded
 # generated by this package.  If there were any they would be
 # made here.
 
-define checkdir
-	test -f debian/rules
-endef
-
 # Below here is fairly generic really
 
 binary:		binary-indep binary-arch
 
-checkroot:
-	$(checkdir)
-	test root = "`whoami`"
 
 .PHONY: binary binary-arch binary-indep clean checkroot
Index: Bleriot-0.9.2/debian/compat
===================================================================
--- /dev/null
+++ Bleriot-0.9.2/debian/compat
@@ -0,0 +1,1 @@
+10
\ No newline at end of file
Index: Bleriot-0.9.2/debian/install
===================================================================
--- /dev/null
+++ Bleriot-0.9.2/debian/install
@@ -0,0 +1,2 @@
+usr/share/doc/bleriot-fonts
+usr/X11R6/lib/X11/fonts/misc/bleriot*
\ No newline at end of file
openSUSE Build Service is sponsored by