]> git.pld-linux.org Git - packages/gocr.git/commitdiff
- new package
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 4 Jul 2001 16:19:24 +0000 (16:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gocr-DESTDIR.patch -> 1.1
    gocr-paths.patch -> 1.1
    gocr.spec -> 1.1

gocr-DESTDIR.patch [new file with mode: 0644]
gocr-paths.patch [new file with mode: 0644]
gocr.spec [new file with mode: 0644]

diff --git a/gocr-DESTDIR.patch b/gocr-DESTDIR.patch
new file mode 100644 (file)
index 0000000..250d901
--- /dev/null
@@ -0,0 +1,28 @@
+--- gocr-0.3.2/src/Makefile.in.orig    Thu May 24 15:05:31 2001
++++ gocr-0.3.2/src/Makefile.in Wed Jul  4 01:42:05 2001
+@@ -61,9 +61,10 @@
+ # PHONY = don't look at file clean, -rm = start rm and ignore errors
+ .PHONY : clean proper install
+ install: all
+-      $(INSTALL) ../bin/$(PROGRAM) $(bindir)
+-      $(INSTALL) $(LIBPGMASCLIB) $(libdir)
+-      $(INSTALL) $(INCLUDEFILES) $(includedir)
++      $(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
++      $(INSTALL) ../bin/$(PROGRAM) $(DESTDIR)$(bindir)
++      $(INSTALL) $(LIBPGMASCLIB) $(DESTDIR)$(libdir)
++      $(INSTALL) $(INCLUDEFILES) $(DESTDIR)$(includedir)
+ clean:
+       -rm -f *.o *~
+--- gocr-0.3.2/man/Makefile.in.orig    Thu May 24 15:05:31 2001
++++ gocr-0.3.2/man/Makefile.in Wed Jul  4 01:42:59 2001
+@@ -15,7 +15,8 @@
+ # PHONY = don't look at file clean, -rm = start rm and ignore errors
+ .PHONY : clean proper install
+ install: all
+-      $(INSTALL) ../man/man1/$(PROGRAM).1 $(mandir)/man1
++      $(INSTALL) -d $(DESTDIR)$(mandir)/man1
++      $(INSTALL) ../man/man1/$(PROGRAM).1 $(DESTDIR)$(mandir)/man1
+ clean:
+       -rm -f *.o *~
diff --git a/gocr-paths.patch b/gocr-paths.patch
new file mode 100644 (file)
index 0000000..c49a408
--- /dev/null
@@ -0,0 +1,48 @@
+--- gocr-0.3.2/frontend/gnome/src/functions.c.orig     Thu May 24 15:05:31 2001
++++ gocr-0.3.2/frontend/gnome/src/functions.c  Wed Jul  4 02:25:18 2001
+@@ -209,7 +209,7 @@
+                       "DUST=%d\n"
+                       "SPACE=%d\n"
+                       "VIEWER=%s\n"
+-                      "PATH=/usr/local/bin/gocr\n",
++                      "PATH=/usr/bin/gocr\n",
+                       nGrey,
+                       nDust,
+                       nSpace,
+@@ -334,8 +334,8 @@
+   gtk_widget_show ( GTK_WIDGET (label));
+   if ( Path == NULL)
+     {
+-      Path = g_malloc(strlen("/usr/local/bin/gocr\0"+1));
+-      sprintf(Path,"/usr/local/bin/gocr");
++      Path = g_malloc(strlen("/usr/bin/gocr\0"+1));
++      sprintf(Path,"/usr/bin/gocr");
+     }
+   TxtPath=gtk_entry_new();
+--- gocr-0.3.2/src/Makefile.in.orig    Wed Jul  4 02:26:16 2001
++++ gocr-0.3.2/src/Makefile.in Wed Jul  4 02:40:40 2001
+@@ -27,9 +27,9 @@
+ # these two lines are for cross-compiling, not tested
+ #srcdir = @srcdir@
+ #VPATH = @srcdir@
+-bindir = @prefix@@bindir@
+-libdir = @prefix@@libdir@
+-includedir = @prefix@@includedir@
++bindir = @bindir@
++libdir = @libdir@
++includedir = @includedir@
+ CC=@CC@
+ RANLIB=@RANLIB@
+--- gocr-0.3.2/man/Makefile.in.orig    Wed Jul  4 02:26:16 2001
++++ gocr-0.3.2/man/Makefile.in Wed Jul  4 02:41:14 2001
+@@ -4,7 +4,7 @@
+ PROGRAM = gocr
+-mandir = @prefix@@mandir@
++mandir = @mandir@
+ INSTALL=@INSTALL@
diff --git a/gocr.spec b/gocr.spec
new file mode 100644 (file)
index 0000000..dd8484c
--- /dev/null
+++ b/gocr.spec
@@ -0,0 +1,88 @@
+Summary:       GNU OCR
+Summary(pl):   Program GNU do OCR
+Name:          gocr
+Version:       0.3.2
+Release:       1
+License:       GPL
+Group:         Applications/Graphics
+Group(de):     Applikationen/Grafik
+Group(pl):     Aplikacje/Grafika
+Source0:       ftp://download.sourceforge.net/pub/sourceforge/jocr/%{name}-%{version}.tar.gz
+Patch0:                %{name}-DESTDIR.patch
+Patch1:                %{name}-paths.patch
+URL:           http://jocr.sourceforge.net/
+BuildRequires: netpbm-devel
+BuildRequires: gtk+-devel >= 1.2.8
+BuildRequires: tetex-latex
+BuildRequires: tetex-dvips
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _xprefix        /usr/X11R6
+%define                _xbindir        %{_xprefix}/bin
+
+%description
+GOCR is an optical character recognition program, released under the
+GNU General Public License. It reads images in many formats (pnm, pbm,
+pgm, ppm, some pcx and tga image files (or PNM from stdin); if
+pnm-tools installed and running linux-like system you can also use
+pnm.gz, pnm.bz2, png, jpg, tiff, gif, bmp and others) and outputs
+a text file.
+
+%description -l pl
+GOCR jest programem do rozpoznawania pisma wypuszczonym na licencji
+GNU GPL. Czyta obrazki w formatach pnm, pbm, pgm, ppm, niektóre pcx
+i tga; je¿eli s± zainstalowane narzêdzia do PNM, mo¿e te¿ czytaæ
+pnm.gz, pnm.bz2, png,jpg, tiff, gif, bmp i inne. Wynikiem jest plik
+tekstowy.
+
+%package gtk
+Summary:       Gtk+ frontend for gocr
+Summary(pl):   Frontend Gtk+ do gocr
+Group:         X11/Applications/Graphics
+Group(de):     X11/Applikationen/Grafik
+Group(pl):     X11/Aplikacje/Grafika
+Requires:      %{name} = %{version}
+
+%description gtk
+Gtk+-based frontend for gocr.
+
+%description gtk -l pl
+Frontend do gocr oparty o Gtk+.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+%configure
+%{__make}
+
+cd frontend/gnome
+%configure --prefix=%{_xprefix} --bindir=%{_xbindir}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+ln -sf gnome/mkinstalldirs frontend/mkinstalldirs
+%{__make} -C frontend/gnome install DESTDIR=$RPM_BUILD_ROOT
+
+gzip -9nf AUTHORS BUGS CREDITS HISTORY README REMARK.txt REVIEW TODO \
+       doc/{examples.txt,ocr.ps,unicode.txt} \
+       frontend/gnome/{AUTHORS,README,TODO}
+
+%clean
+#rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc *.gz doc/*.gz
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*
+
+%files gtk
+%defattr(644,root,root,755)
+%doc frontend/gnome/*.gz
+%attr(755,root,root) %{_xbindir}/*
This page took 0.036768 seconds and 4 git commands to generate.