--- subtitleripper-0.3.4.orig/debian/control +++ subtitleripper-0.3.4/debian/control @@ -0,0 +1,19 @@ +Source: subtitleripper +Section: x11 +Priority: optional +XSBC-Original-Maintainer: Christian Marillat +Maintainer: Ubuntu Developers +Bugs: mailto:marillat@debian.org +Standards-Version: 3.7.2 +Build-Depends: debhelper (>> 4.0.0), libnetpbm10-dev, libpng12-dev | libpng-dev, dpatch + +Package: subtitleripper +Architecture: any +Depends: ${shlibs:Depends}, gocr, transcode +Recommends: imagemagick +Description: DVD Subtitle Ripper for Linux + If you want to convert DVD subtitles into text format (e.g. subrip format) + or VobSub format this program could be useful for you. However, it is only + one tiny tool that you need in the process of producing srt files. This + software depends heavily on transcode for its input and is therefore part + of the transcode package (see transcode's contrib directory). --- subtitleripper-0.3.4.orig/debian/copyright +++ subtitleripper-0.3.4/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by Christian Marillat on +Sat, 23 Nov 2002 17:15:02 +0100. + +It was downloaded from http://subtitleripper.sourceforge.net/ + +Upstream Author: Arne Driescher + +Copyright: 2002 Arne Driescher + + You should have received a copy of the GNU General Public License with the + Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; if + not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth + Floor, Boston, MA 02110-1301, USA. --- subtitleripper-0.3.4.orig/debian/changelog +++ subtitleripper-0.3.4/debian/changelog @@ -0,0 +1,100 @@ +subtitleripper (0.3.4-0.5ubuntu2) natty; urgency=low + + * debian/patches/03_binutils-gold.dpatch: Fix FTBFS binutils-gold with + ld as-needed by adding LIBS after object. (LP: #720725) + + -- Mahyuddin Susanto Thu, 17 Feb 2011 21:10:09 +0700 + +subtitleripper (0.3.4-0.5ubuntu1) karmic; urgency=low + + * Add define HAVE_GETLINE in Makefile (modifying 02_Makefile) to + fix FTBFS. + + -- Stefan Potyra Sat, 26 Sep 2009 19:34:58 +0200 + +subtitleripper (0.3.4-0.5) unstable; urgency=low + + * Improvments from Robert Bihlmeyer : + o Move gocr in Depends and add transcode too. + o Now the default image browser is display (from the imagemagick + package) instead of xv. + + -- Christian Marillat Sun, 28 May 2006 15:59:33 +0200 + +subtitleripper (0.3.4-0.4) unstable; urgency=low + + * Add a watch file. + * Rebuild for amd64. + * Use debhelper V4 + * debian/copyright update fsf address. + + -- Christian Marillat Sat, 13 May 2006 17:34:49 +0200 + +subtitleripper (0.3.4-0.3) unstable; urgency=low + + * Use dpatch. + * New patch to link against libnetpbm10-dev and update build-depends. + + -- Christian Marillat Thu, 20 Oct 2005 10:39:03 +0200 + +subtitleripper (0.3.4-0.2) unstable; urgency=low + + * My patch for the .sed file was not applied. Fixed. + + -- Christian Marillat Thu, 18 Nov 2004 14:05:19 +0100 + +subtitleripper (0.3.4-0.1) unstable; urgency=low + + * Add vobsub2pgm in the package. + + -- Christian Marillat Sat, 7 Feb 2004 09:36:58 +0100 + +subtitleripper (0.3.4-0.0) unstable; urgency=low + + * New upstream release. + + -- Christian Marillat Fri, 16 Jan 2004 14:01:56 +0100 + +subtitleripper (0.3.2-0.0) unstable; urgency=low + + * News updatream release. + + -- Christian Marillat Fri, 5 Sep 2003 17:13:45 +0200 + +subtitleripper (0.3.1-0.2) unstable; urgency=low + + * debian/control recommends gocr for pgm2txt + + -- Christian Marillat Sat, 19 Jul 2003 18:16:57 +0200 + +subtitleripper (0.3.1-0.1) unstable; urgency=low + + * Fix in pgm2txt (missing /) Thanks to Moku. + + -- Christian Marillat Wed, 28 May 2003 23:42:08 +0200 + +subtitleripper (0.3.1-0.0) unstable; urgency=low + + * New upstream release (No change) + + -- Christian Marillat Tue, 25 Feb 2003 16:06:21 +0100 + +subrip (0.3cvs20030217-0.0) unstable; urgency=low + + * CVS release who add the possibility to add language to an existing sub + and idx files. + + -- Christian Marillat Mon, 17 Feb 2003 15:53:58 +0100 + +subrip (0.3-2) unstable; urgency=low + + * Install srttool and move pgm2txt in /usr/bin + + -- Christian Marillat Tue, 4 Feb 2003 00:37:59 +0100 + +subrip (0.3-1) unstable; urgency=low + + * Initial Release. + + -- Christian Marillat Sat, 23 Nov 2002 17:15:02 +0100 + --- subtitleripper-0.3.4.orig/debian/rules +++ subtitleripper-0.3.4/debian/rules @@ -0,0 +1,70 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif + +CFLAGS = -Wall -g + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +build: build-stamp +build-stamp: patch-stamp + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + $(MAKE) clean + + debian/rules unpatch + + dh_clean subtitle2vobsub.o vobsub2pgm.o + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs usr/bin usr/share/subtitleripper + + cp srttool subtitle2pgm pgm2txt debian/subtitleripper/usr/bin + cp vobsub2pgm subtitle2vobsub debian/subtitleripper/usr/bin + cp *.sed debian/subtitleripper/usr/share/subtitleripper + cp debian/gocrfilter_fr.sed debian/subtitleripper/usr/share/subtitleripper + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs README* + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install patch unpatch --- subtitleripper-0.3.4.orig/debian/compat +++ subtitleripper-0.3.4/debian/compat @@ -0,0 +1 @@ +4 --- subtitleripper-0.3.4.orig/debian/watch +++ subtitleripper-0.3.4/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://sf.net/subtitleripper/subtitleripper-(.*)\.tgz --- subtitleripper-0.3.4.orig/debian/gocrfilter_fr.sed +++ subtitleripper-0.3.4/debian/gocrfilter_fr.sed @@ -0,0 +1,18 @@ +# Replace common gocr mistakes in frensh language +# Please use info sed to obtain more information +# about sed syntax or read +# http://www.ptug.org/sed/sedfaq.htm +# File contributed by +# Guillaume Rousse +s/\/les/g +s/\/la/g +s/-Ia\>/-la/g +s/\/là/g +s/\/le/g +s/-Ie\>/-le/g +s/\/lui/g +s/\/leur/g +s/\/Ils/g +s/\/Il/g +s/''/"/g +s/í/i/g --- subtitleripper-0.3.4.orig/debian/patches/01_pgm2txt.dpatch +++ subtitleripper-0.3.4/debian/patches/01_pgm2txt.dpatch @@ -0,0 +1,59 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_configure.dpatch by Christian Marillat +## +## All lines beginning with ## DP:' are a description of the patch. +## DP: Fix the path for sed file. + +@DPATCH@ + +--- subtitleripper-0.3.4.orig/pgm2txt 2004-11-18 13:59:04.000000000 +0100 ++++ subtitleripper-0.3.4/pgm2txt 2004-11-18 14:00:25.000000000 +0100 +@@ -16,7 +16,7 @@ + # Adjust this path to where the files + # gocrfilter_en.sed gocrfilter_fr.sed gocrfilter_none.sed + # are located +-PATH_TO_LANGUAGE_FILTER=~/sourceforge/subtitleripper/src/ ++PATH_TO_LANGUAGE_FILTER=/usr/share/subtitleripper + + # set your options for gocr. Please read the gocr + # docs to find out more about this +@@ -35,8 +35,8 @@ + # Choose your favorite image viewer if you want to see + # the current pgm image while gocr is running. + # Enable the viewer with -v command line option. +-IMAGE_VIWER=xv +-IMAGE_VIEWER_OPTIONS=-q ++IMAGE_VIEWER=display ++IMAGE_VIEWER_OPTIONS= + + ###### End of configuration section ######### + +@@ -108,8 +108,8 @@ + shift $(($OPTIND - 1)) + PGM_BASE_NAME=$1 + +-if [ -f ${PATH_TO_LANGUAGE_FILTER}gocrfilter_${LANGUAGE}.sed ]; then +- FILTER_SCRIPT=${PATH_TO_LANGUAGE_FILTER}gocrfilter_${LANGUAGE}.sed ++if [ -f ${PATH_TO_LANGUAGE_FILTER}/gocrfilter_${LANGUAGE}.sed ]; then ++ FILTER_SCRIPT=${PATH_TO_LANGUAGE_FILTER}/gocrfilter_${LANGUAGE}.sed + echo "Using ${FILTER_SCRIPT} to filter gocr output" + else + echo " ------------------------------------------------" +@@ -153,7 +153,7 @@ + + echo "Converting $i into text" + if [ ! "$DISPLAY_PGM" = "false" ]; then +- ${IMAGE_VIWER} ${IMAGE_VIEWER_OPTIONS} $i & ++ ${IMAGE_VIEWER} ${IMAGE_VIEWER_OPTIONS} $i & + fi + if [ "none" = "${LANGUAGE}" ]; then + gocr ${GOCR_OPTIONS} -p ${DB_PATH} $i > $i.txt +@@ -163,7 +163,7 @@ + + # close the viewer + if [ ! "$DISPLAY_PGM" = "false" ]; then +- killall ${IMAGE_VIWER} ++ killall ${IMAGE_VIEWER} + fi + + done --- subtitleripper-0.3.4.orig/debian/patches/02_Makefile.dpatch +++ subtitleripper-0.3.4/debian/patches/02_Makefile.dpatch @@ -0,0 +1,29 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_configure.dpatch by Christian Marillat +## +## All lines beginning with ## DP:' are a description of the patch. +## DP: Lynk against netpbm instead of ppm + +@DPATCH@ +diff -urNad subtitleripper-0.3.4~/Makefile subtitleripper-0.3.4/Makefile +--- subtitleripper-0.3.4~/Makefile 2003-12-08 10:28:02.000000000 +0100 ++++ subtitleripper-0.3.4/Makefile 2009-09-26 19:34:52.000000000 +0200 +@@ -9,7 +9,7 @@ + + ### enable ppm support ### + DEFINES += -D_HAVE_LIB_PPM_ +-LIBS += -lppm ++LIBS += -lnetpbm + + ### enable PNG support ### + DEFINES += -D_HAVE_PNG_ +@@ -19,6 +19,9 @@ + DEFINES += -D_HAVE_ZLIB_ + LIBS += -lz + ++### getline is defined for us ++DEFINES += -DHAVE_GETLINE ++ + CC = gcc + WARN = -Wall -Wstrict-prototypes + COPT = -g -O2 --- subtitleripper-0.3.4.orig/debian/patches/03_binutils-gold.dpatch +++ subtitleripper-0.3.4/debian/patches/03_binutils-gold.dpatch @@ -0,0 +1,33 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## Description: Fix FTBFS binutils-gold with ld as-needed +## Author: Mahyuddin Susanto +## Bug: https://launchpad.net/bugs/720725 + +@DPATCH@ +diff -urNad subtitleripper-0.3.4~/Makefile subtitleripper-0.3.4/Makefile +--- subtitleripper-0.3.4~/Makefile 2011-02-17 20:51:42.183047389 +0700 ++++ subtitleripper-0.3.4/Makefile 2011-02-17 20:52:02.291199592 +0700 +@@ -73,19 +73,19 @@ + # Target + subtitle2pgm: subtitle2pgm.o spudec.o + @echo "Linking $@" +- @$(CC) $(LIBS) $^ -o $@ ++ @$(CC) $^ -o $@ $(LIBS) + + subtitle2vobsub: subtitle2vobsub.o vobsub.o + @echo "Linking $@" +- @$(CC) $(LIBS) $^ -o $@ ++ @$(CC) $^ -o $@ $(LIBS) + + srttool: srttool.o + @echo "Linking $@" +- @$(CC) $(LIBS) -g $^ -o $@ ++ @$(CC) -g $^ -o $@ $(LIBS) + + vobsub2pgm: vobsub2pgm.o vobsub.o spudec.o + @echo "Linking $@" +- @$(CC) $(LIBS) -g $^ -o $@ ++ @$(CC) -g $^ -o $@ $(LIBS) + + .PHONY: clean dist rpm + clean: --- subtitleripper-0.3.4.orig/debian/patches/00list +++ subtitleripper-0.3.4/debian/patches/00list @@ -0,0 +1,3 @@ +01_pgm2txt +02_Makefile +03_binutils-gold.dpatch