--- manpages-tr-1.0.5.1.orig/debian/compat +++ manpages-tr-1.0.5.1/debian/compat @@ -1 +1 @@ -4 +7 --- manpages-tr-1.0.5.1.orig/debian/rules +++ manpages-tr-1.0.5.1/debian/rules @@ -4,6 +4,8 @@ #export DH_VERBOSE=1 +include /usr/share/quilt/quilt.make + MIRRORURL:=http://ftp.de.debian.org/debian CONTENTS_ARCHLIST:=amd64 i386 CONTENTS=$(foreach arch,$(CONTENTS_ARCHLIST),/tmp/manpages-tr.build/Contents-$(arch).gz) @@ -46,16 +48,17 @@ # Standard rules to follow # -build: +build: patch # Builds the binary package. # empty -clean: +clean: unpatch dh_testdir dh_testroot rm -f build-stamp install-stamp -rm -rf *~ *.orig "#*" debian/manpages-tr debian/*~ debian/files* source/xml2man -rm -rf tr/* + -rm -rf locales/ dh_clean binary-arch: build @@ -64,7 +67,8 @@ dh_testdir dh_testroot dh_installdirs - $(MAKE) deb-build + sh debian/locale-gen + LOCPATH=$(CURDIR)/locales $(MAKE) deb-build # $(MAKE) prefix=`pwd`/debian/manpages-tr/usr/share install # Better use dh_installman, which has the nice feature of turning # all the .so-links to proper symlinks. @@ -78,17 +82,9 @@ grep -v '^#' debian/manpages-tr.prune | while read exists crap; do \ exists=`echo "$$exists" | \ sed -e 's,usr/share/man/tr\.[^/]\+,usr/share/man/tr,'`;\ - test -f `pwd`/debian/manpages-tr/"$$exists" || \ - test -L `pwd`/debian/manpages-tr/"$$exists" && \ - rm -f `pwd`/debian/manpages-tr/"$$exists" || \ - true; \ + rm -f `pwd`/debian/manpages-tr/"$$exists".gz; \ done dh_movefiles --sourcedir=debian/manpages-tr - while read dir; do \ - test -d debian/manpages-tr/$$dir && \ - rmdir debian/manpages-tr/$$dir || \ - true; \ - done < debian/manpages-tr.files dh_installdocs dh_installchangelogs dh_compress --- manpages-tr-1.0.5.1.orig/debian/control +++ manpages-tr-1.0.5.1/debian/control @@ -2,8 +2,8 @@ Section: doc Priority: optional Maintainer: Murat Demirten -Build-Depends: debhelper (>= 5.0), zlib1g-dev, libxslt1.1, libxml2 -Standards-Version: 3.7.3 +Build-Depends: debhelper (>= 7), zlib1g-dev, libxslt1.1, libxml2, xsltproc, locales, quilt +Standards-Version: 3.8.3 Package: manpages-tr Architecture: all --- manpages-tr-1.0.5.1.orig/debian/locale-gen +++ manpages-tr-1.0.5.1/debian/locale-gen @@ -0,0 +1,30 @@ +#!/bin/sh + +LOCPATH=`pwd`/locales +export LOCPATH + +[ -d $LOCPATH ] || mkdir -p $LOCPATH + +umask 022 + +echo "Generating locales..." +while read locale charset; do + case $locale in \#*) continue;; esac + [ -n "$locale" -a -n "$charset" ] || continue + echo -n " `echo $locale | sed 's/\([^.\@]*\).*/\1/'`" + echo -n ".$charset" + echo -n `echo $locale | sed 's/\([^\@]*\)\(\@.*\)*/\2/'` + echo -n '...' + if [ -f $LOCPATH/$locale ]; then + input=$locale + else + input=`echo $locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'` + fi + localedef -i $input -c -f $charset $LOCPATH/$locale #-A /etc/locale.alias + echo ' done'; \ +done < Wed, 29 Oct 2009 14:12:18 +0200 + +manpages-tr (1.0.5.1-1.2) unstable; urgency=low + + * Non-maintainer upload to fix an RC bug. + * Apply patch by Nicolas François to fix broken pruning of manpages + (Closes: #526033) - thanks Nicolas! + + -- Holger Levsen Sun, 09 Aug 2009 12:30:16 +0200 + +manpages-tr (1.0.5.1-1.1) unstable; urgency=low + + * Non-maintainer upload to fix a RG bug. + * Fix bashisms (Closes: #485057) + - Thanks to Manuel Prinz for the patch. + + Build-Depend on quilt to manage patch + + -- Raphael Geissert Sat, 28 Jun 2008 14:30:54 -0500 + +manpages-tr (1.0.5.1-1) unstable; urgency=low + + * Fixed debian/rules build error on manpage-tr.files temprorary file. + Closes: #479941 + * Fixed \N'45' problem in man pages. Closes: #478085 + + -- Murat Demirten Thu, 7 May 2008 23:06:14 +0300 + +manpages-tr (1.0.5-1) unstable; urgency=low + + * Added build dependency against locales and xsltproc package due + to the tr_TR.UTF-8 locale requirements at build stage. Added locale-gen + script for generating tr_TR.UTF-8 locale for build. Closes: #477960 + + -- Murat Demirten Sat, 26 Apr 2008 19:28:30 +0300 + manpages-tr (1.0.5) unstable; urgency=low * New upstream version. --- manpages-tr-1.0.5.1.orig/debian/README.source +++ manpages-tr-1.0.5.1/debian/README.source @@ -0,0 +1,2 @@ +This package uses author's custom build mechanism on source/manderle.sh + --- manpages-tr-1.0.5.1.orig/debian/patches/series +++ manpages-tr-1.0.5.1/debian/patches/series @@ -0,0 +1 @@ +bashisms.patch --- manpages-tr-1.0.5.1.orig/debian/patches/bashisms.patch +++ manpages-tr-1.0.5.1/debian/patches/bashisms.patch @@ -0,0 +1,30 @@ +Index: manpages-tr-1.0.5.1/source/manderle.sh +=================================================================== +--- manpages-tr-1.0.5.1.orig/source/manderle.sh ++++ manpages-tr-1.0.5.1/source/manderle.sh +@@ -1,8 +1,8 @@ + #!/bin/sh + # + LANG=C gcc -Wall -lz -o xml2man xml2man.c +-mandirs=(1 2 3 4 5 6 7 8) +-for i in ${mandirs[@]}; ++mandirs="1 2 3 4 5 6 7 8" ++for i in ${mandirs}; + do + mkdir ../tr/man$i; + for j in man$i/*; +@@ -10,12 +10,12 @@ do + manfile=`basename $j .$i.xml`; + echo man$i/$manfile.$i derleniyor; + target="../tr/man$i/$manfile.$i"; +- if [ "$1" == "--debianize" ] ++ if [ "$1" = "--debianize" ] + then + ./xml2man $1 $j > ${target}.$1; + iconv -f UTF-8 -t ISO-8859-9 ${target}.$1 > $target; + rm -f ${target}.$1; +- elif [ "$1" == "--utf8" ] ++ elif [ "$1" = "--utf8" ] + then + ./xml2man $1 $j > $target; + else