forked from pool/ocrad
checked in (request 30204)
OBS-URL: https://build.opensuse.org/package/show/graphics/ocrad?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
44c2ab150e
commit
7cff5d852f
100
ocrad-0.17-gcc43.patch
Normal file
100
ocrad-0.17-gcc43.patch
Normal file
@@ -0,0 +1,100 @@
|
||||
diff -Naur ocrad-0.17.org/character_r12.cc ocrad-0.17/character_r12.cc
|
||||
--- ocrad-0.17.org/character_r12.cc 2008-01-07 14:11:20.548674000 +0100
|
||||
+++ ocrad-0.17/character_r12.cc 2008-01-07 14:25:56.521831000 +0100
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <cstdio>
|
||||
#include <vector>
|
||||
+#include <cstdlib>
|
||||
#include "common.h"
|
||||
#include "rectangle.h"
|
||||
#include "ucs.h"
|
||||
diff -Naur ocrad-0.17.org/common.cc ocrad-0.17/common.cc
|
||||
--- ocrad-0.17.org/common.cc 2008-01-07 14:11:20.567656000 +0100
|
||||
+++ ocrad-0.17/common.cc 2008-01-07 14:12:38.117025000 +0100
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
+#include <cstring>
|
||||
#include "common.h"
|
||||
|
||||
|
||||
diff -Naur ocrad-0.17.org/page_image.cc ocrad-0.17/page_image.cc
|
||||
--- ocrad-0.17.org/page_image.cc 2008-01-07 14:11:20.612610000 +0100
|
||||
+++ ocrad-0.17/page_image.cc 2008-01-07 14:19:52.943771000 +0100
|
||||
@@ -19,6 +19,8 @@
|
||||
#include <cctype>
|
||||
#include <cstdio>
|
||||
#include <vector>
|
||||
+#include <climits>
|
||||
+#include <string>
|
||||
|
||||
#include "common.h"
|
||||
#include "rational.h"
|
||||
diff -Naur ocrad-0.17.org/page_image_layout.cc ocrad-0.17/page_image_layout.cc
|
||||
--- ocrad-0.17.org/page_image_layout.cc 2008-01-07 14:11:20.650575000 +0100
|
||||
+++ ocrad-0.17/page_image_layout.cc 2008-01-07 14:21:28.079532000 +0100
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <vector>
|
||||
+#include <string>
|
||||
|
||||
#include "common.h"
|
||||
#include "rational.h"
|
||||
diff -Naur ocrad-0.17.org/textblock.cc ocrad-0.17/textblock.cc
|
||||
--- ocrad-0.17.org/textblock.cc 2008-01-07 14:11:20.671554000 +0100
|
||||
+++ ocrad-0.17/textblock.cc 2008-01-07 14:29:36.775354000 +0100
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <vector>
|
||||
+#include <string>
|
||||
|
||||
#include "common.h"
|
||||
#include "rational.h"
|
||||
diff -Naur ocrad-0.17.org/textline.cc ocrad-0.17/textline.cc
|
||||
--- ocrad-0.17.org/textline.cc 2008-01-07 14:11:20.675546000 +0100
|
||||
+++ ocrad-0.17/textline.cc 2008-01-07 14:27:08.152127000 +0100
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <cctype>
|
||||
#include <cstdio>
|
||||
#include <vector>
|
||||
+#include <string>
|
||||
|
||||
#include "common.h"
|
||||
#include "rational.h"
|
||||
diff -Naur ocrad-0.17.org/textline_r2.cc ocrad-0.17/textline_r2.cc
|
||||
--- ocrad-0.17.org/textline_r2.cc 2008-01-07 14:11:20.679548000 +0100
|
||||
+++ ocrad-0.17/textline_r2.cc 2008-01-07 14:28:11.473737000 +0100
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <cctype>
|
||||
#include <cstdio>
|
||||
+#include <cstdlib>
|
||||
#include <vector>
|
||||
|
||||
#include "common.h"
|
||||
diff -Naur ocrad-0.17.org/textpage.cc ocrad-0.17/textpage.cc
|
||||
--- ocrad-0.17.org/textpage.cc 2008-01-07 14:11:20.685540000 +0100
|
||||
+++ ocrad-0.17/textpage.cc 2008-01-07 14:31:27.944066000 +0100
|
||||
@@ -15,6 +15,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
+#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
diff -Naur ocrad-0.17.org/track.cc ocrad-0.17/track.cc
|
||||
--- ocrad-0.17.org/track.cc 2008-01-07 14:11:20.703522000 +0100
|
||||
+++ ocrad-0.17/track.cc 2008-01-07 14:15:00.739270000 +0100
|
||||
@@ -15,6 +15,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
+#include <cstdio>
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
3
ocrad-0.17.tar.bz2
Normal file
3
ocrad-0.17.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:eba6cf9bae61dfe7b2633ecb05c282682c2ac998edaa57a13bcb04c0542070ae
|
||||
size 81287
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:22054c5cc32e23ef19258c63fd329d0eee9dac97a746f840bac46514a86a5816
|
||||
size 82409
|
@@ -1,21 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 11 21:49:07 UTC 2009 - freitag@novell.com
|
||||
|
||||
- update to version 0.18
|
||||
* Added a layout analyser able to process arbitrary pages.
|
||||
* Added new option `--quiet'.
|
||||
* The `--layout' option no more accepts an argument.
|
||||
* The `--crop' option now accepts negative coordinates.
|
||||
* New recognized letter; 'a' with ring above.
|
||||
* Fixed recognition on files with a single big character.
|
||||
* Fixed bug that didn't write maxval when saving pgm or ppm.
|
||||
* Fixed some includes that prevented compilation with GCC 4.3.0.
|
||||
* "make install-info" should now work on Debian and OS X.
|
||||
* Arg_parser updated to 1.2.
|
||||
* Verbosity control of messages has been modified.
|
||||
- add info files post and postun scripts
|
||||
- stripped binary ocrad
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de
|
||||
|
||||
|
14
ocrad.spec
14
ocrad.spec
@@ -22,7 +22,7 @@ Name: ocrad
|
||||
BuildRequires: gcc-c++
|
||||
Url: https://savannah.gnu.org/projects/ocrad/
|
||||
Summary: GNU Ocrad--Optical Character Recognition Program
|
||||
Version: 0.18
|
||||
Version: 0.17
|
||||
Release: 68
|
||||
Group: Productivity/Graphics/Other
|
||||
#Requires:
|
||||
@@ -30,9 +30,8 @@ Group: Productivity/Graphics/Other
|
||||
License: GPL v2 or later
|
||||
# URL:
|
||||
Source0: ocrad-%{version}.tar.bz2
|
||||
# Patch: ocrad-%{version}-gcc43.patch
|
||||
Patch: ocrad-%{version}-gcc43.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
PreReq: %install_info_prereq
|
||||
|
||||
%description
|
||||
GNU Ocrad is an OCR (Optical Character Recognition) program implemented
|
||||
@@ -57,7 +56,7 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -n ocrad-%{version}
|
||||
# %patch -p1
|
||||
%patch -p1
|
||||
|
||||
%build
|
||||
./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man
|
||||
@@ -71,12 +70,6 @@ fi
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
make install-man DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
%install_info --info-dir=%_infodir %_infodir/%name.info.gz
|
||||
|
||||
%postun
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
|
||||
%clean
|
||||
rm -fr $RPM_BUILD_ROOT
|
||||
|
||||
@@ -86,6 +79,7 @@ rm -fr $RPM_BUILD_ROOT
|
||||
/usr/share/info/ocrad*
|
||||
%doc %{_mandir}/man1/*
|
||||
%doc AUTHORS COPYING ChangeLog INSTALL README NEWS TODO
|
||||
%doc examples
|
||||
# spec file ends here
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user