rpms/subtitleripper/F-18 .cvsignore, 1.3, 1.4 Makefile.patch, NONE, 1.1 binutils-gold.patch, NONE, 1.1 pgm2txt.patch, NONE, 1.1 sources, 1.3, 1.4 subtitleripper.spec, 1.8, 1.9 dead.package, 1.1, NONE

Rahul Sundaram sundaram at rpmfusion.org
Thu May 23 01:09:00 CEST 2013


Author: sundaram

Update of /cvs/free/rpms/subtitleripper/F-18
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv20484

Added Files:
	.cvsignore Makefile.patch binutils-gold.patch pgm2txt.patch 
	sources subtitleripper.spec 
Removed Files:
	dead.package 
Log Message:
initial



Index: .cvsignore
===================================================================
RCS file: .cvsignore
diff -N .cvsignore
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ .cvsignore	22 May 2013 23:08:59 -0000	1.4
@@ -0,0 +1 @@
+subtitleripper-0.3-4.tgz

Makefile.patch:
 Makefile |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

--- NEW FILE Makefile.patch ---
--- subtitleripper-0.3.4/Makefile.orig	2013-03-03 03:00:35.598130743 -0500
+++ subtitleripper-0.3.4/Makefile	2013-03-03 03:03:16.889727156 -0500
@@ -9,7 +9,12 @@
 
 ### enable ppm support ###
 DEFINES  += -D_HAVE_LIB_PPM_
-LIBS     += -lppm
+LIBS     += -lnetpbm
+INCLUDES += -I/usr/include/netpbm
+
+
+### getline is defined for us
+DEFINES += -DHAVE_GETLINE
 
 ### enable PNG support ###
 DEFINES += -D_HAVE_PNG_

binutils-gold.patch:
 Makefile |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- NEW FILE binutils-gold.patch ---
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:

pgm2txt.patch:
 pgm2txt |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

--- NEW FILE pgm2txt.patch ---
--- 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


Index: sources
===================================================================
RCS file: sources
diff -N sources
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ sources	22 May 2013 23:09:00 -0000	1.4
@@ -0,0 +1 @@
+c0bd49a88f667c68c4430ad25bbed510  subtitleripper-0.3-4.tgz


Index: subtitleripper.spec
===================================================================
RCS file: subtitleripper.spec
diff -N subtitleripper.spec
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ subtitleripper.spec	22 May 2013 23:09:00 -0000	1.9
@@ -0,0 +1,83 @@
+Summary:	Command line tool to rip DVD subtitles
+Name:		subtitleripper
+Version:	0.3
+Release:	7%{?dist}
+License:	GPLv2+
+Group:		Applications/Multimedia
+URL:		http://subtitleripper.sourceforge.net/
+Source0:	http://switch.dl.sourceforge.net/sourceforge/subtitleripper/%{name}-%{version}-4.tgz
+Patch0:		pgm2txt.patch
+Patch1:		Makefile.patch
+Patch2:		binutils-gold.patch
+BuildRequires:	netpbm-devel zlib-devel libpng-devel
+Requires:	gocr transcode
+
+%description
+Converts DVD subtitles into text format (e.g. subrip format) or VobSub
+format. Based on transcode.
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1 -b .patch0
+%patch1 -p1 -b .patch1
+%patch2 -p1 -b .patch2
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" make
+
+%install
+mkdir -p $RPM_BUILD_ROOT/%{_bindir}
+for i in pgm2txt srttool subtitle2pgm subtitle2vobsub vobsub2pgm
+do
+  install -m 0755 $i $RPM_BUILD_ROOT/%{_bindir}
+done
+
+install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/subtitleripper
+install -m 644 *.sed $RPM_BUILD_ROOT%{_datadir}/subtitleripper
+
+%files
+%doc ChangeLog README*
+%{_bindir}/pgm2txt
+%{_bindir}/srttool
+%{_bindir}/subtitle2pgm
+%{_bindir}/subtitle2vobsub
+%{_bindir}/vobsub2pgm
+%{_datadir}/%{name}
+
+%changelog
+* Sun Mar 03 2013 Rahul Sundaram <sundaram at fedoraproject.org> - 0.3-7
+- included and modified some patches from Debian/Ubuntu and Gentoo
+- re-enable png support
+- included .sed files for gocr
+- included vobsub2pgm binary
+- added requires on gocr and transcode
+- cleanup spec to follow current Fedora guidelines
+
+* Tue Aug 19 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.3-6
+- added _default_patch_fuzz define
+
+* Sun Aug 03 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.3-5
+- rebuild
+
+* Thu Mar 09 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+- switch to new release field
+- drop Epoch
+
+* Wed Sep 21 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> 0:0.3-0.lvn.4
+- Drop BR libpng, too
+
+* Sat Sep 10 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> 0:0.3-0.lvn.3
+- Disable png-support for now cause it does not compile on FC4
+
+* Mon Jun 28 2004 Dams <anvil[AT]livna.org> 0:0.3-0.lvn.2.4
+- BuildReq libpng-devel
+- Fix for libnetpbm on FC2
+
+* Mon Jun 28 2004 Dams <anvil[AT]livna.org> 0:0.3.4-0.lvn.1
+- Updated to 0.3-4
+
+* Wed May 14 2003 Dams <anvil[AT]livna.org> 0:0.3-0.fdr.2
+- Added missing zlib-devel BuildRequires
+
+* Sat May 10 2003 Dams <anvil[AT]livna.org> 
+- Initial build.


--- dead.package DELETED ---


More information about the rpmfusion-commits mailing list