Accepting request 62134 from home:adra:branches:graphics
thanks OBS-URL: https://build.opensuse.org/request/show/62134 OBS-URL: https://build.opensuse.org/package/show/graphics/ocrad?expand=0&rev=15
This commit is contained in:
parent
3491744f7d
commit
2f46675dd5
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:22054c5cc32e23ef19258c63fd329d0eee9dac97a746f840bac46514a86a5816
|
||||
size 82409
|
3
ocrad-0.21.tar.bz2
Normal file
3
ocrad-0.21.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8c5cdf555e523430cb7c3da4817c049f808606c0581173790d8277ab95375503
|
||||
size 89706
|
14
ocrad-build-with-optflags.patch
Normal file
14
ocrad-build-with-optflags.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff -up ./configure.old ./configure
|
||||
--- ./configure.old 2010-09-06 17:43:43.074186313 +0000
|
||||
+++ ./configure 2010-09-06 17:44:31.969195119 +0000
|
||||
@@ -29,10 +29,6 @@ infodir='$(datadir)/info'
|
||||
libdir='${exec_prefix}/lib'
|
||||
mandir='$(datadir)/man'
|
||||
sysconfdir='$(prefix)/etc'
|
||||
-CXX=
|
||||
-CPPFLAGS=
|
||||
-CXXFLAGS='-Wall -W -O2'
|
||||
-LDFLAGS=
|
||||
|
||||
# Loop over all args
|
||||
while [ -n "$1" ] ; do
|
@ -1,3 +1,47 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 18 20:37:28 UTC 2011 - asterios.dramis@gmail.com
|
||||
|
||||
- Update to 0.21
|
||||
* Fixed some internal errors triggered by noisy input.
|
||||
* ocrad.texinfo: Added chapter `OCR Results File'.
|
||||
* main.cc: Set stdin/stdout in binary mode on MSVC and OS2.
|
||||
- Spec file updates:
|
||||
* Changes based on rpmdevtools templates and spec-cleaner run.
|
||||
* Updates in Summary:, %description, %build and %install sections.
|
||||
* Changed License: to GPLv3+.
|
||||
* Updates in info files installation.
|
||||
* Minor other updates.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 6 17:57:38 UTC 2010 - masterpatricko@gmail.com
|
||||
|
||||
- Update to 0.20
|
||||
* ocradlib.h: Added new function OCRAD_scale.
|
||||
* ocradlib.h: Added new function OCRAD_result_chars_total.
|
||||
* ocradlib.h: Added new function OCRAD_result_chars_block.
|
||||
* ocradlib.h: Added new function OCRAD_result_chars_line.
|
||||
- add ocrad-build-with-optflags.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 4 12:41:27 UTC 2010 - coolo@novell.com
|
||||
|
||||
- put devel files in -devel subpackage
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 7 12:15:49 UTC 2010 - freitag@novell.com
|
||||
|
||||
- update to version 0.19
|
||||
* Version 0.19 released.
|
||||
* Added library interface (ocradlib.h).
|
||||
* Option `--crop' replaced with similar but different option
|
||||
`--cut', which can accept coordinates taken from the ORF file.
|
||||
* Recognition of files with a single character and without white
|
||||
space at the edges has been fixed.
|
||||
* testsuite/check.sh: Added new tests for the library interface
|
||||
and for single character images.
|
||||
* New files ocradlib.h, ocradlib.cc, ocrcheck.cc.
|
||||
* Makefile.in: Added "--name" option to help2man invocation.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 11 21:49:07 UTC 2009 - freitag@novell.com
|
||||
|
||||
|
100
ocrad.spec
100
ocrad.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ocrad (Version 0.18)
|
||||
# spec file for package ocrad (Version 0.21)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,75 +17,71 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: ocrad
|
||||
BuildRequires: gcc-c++
|
||||
Url: https://savannah.gnu.org/projects/ocrad/
|
||||
Summary: GNU Ocrad--Optical Character Recognition Program
|
||||
Version: 0.18
|
||||
Version: 0.21
|
||||
Release: 1
|
||||
Summary: Optical Character Recognition Program
|
||||
|
||||
License: GPLv3+
|
||||
Url: https://savannah.gnu.org/projects/ocrad/
|
||||
Group: Productivity/Graphics/Other
|
||||
#Requires:
|
||||
#Provides:
|
||||
License: GPLv2+
|
||||
# URL:
|
||||
Source0: ocrad-%{version}.tar.bz2
|
||||
# Patch: ocrad-%{version}-gcc43.patch
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
# PATCH-FIX-OPENSUSE ocrad-build-with-optflags.patch masterpatricko@gmail.com -- Make the package compile with optflags
|
||||
Patch0: ocrad-build-with-optflags.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
PreReq: %install_info_prereq
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
Requires(post): info
|
||||
Requires(preun): info
|
||||
|
||||
%description
|
||||
GNU Ocrad is an OCR (Optical Character Recognition) program implemented
|
||||
as a filter and based on a feature extraction method. It reads a bitmap
|
||||
image in PBM format and outputs text in the ISO-8859-1 (Latin-1)
|
||||
charset. It can be used as a stand-alone console application or as a
|
||||
back-end to other programs.
|
||||
GNU Ocrad is an OCR (Optical Character Recognition) program based on a feature
|
||||
extraction method. It reads images in pbm (bitmap), pgm (greyscale) or ppm
|
||||
(color) formats and produces text in byte (8-bit) or UTF-8 formats.
|
||||
|
||||
gocr is another interesting command line OCR tool. Both can be plugged
|
||||
into Kooka, the KDE scan and OCR program.
|
||||
Also includes a layout analyser able to separate the columns or blocks of text
|
||||
normally found on printed pages.
|
||||
|
||||
Ocrad can be used as a stand-alone console application, or as a backend to
|
||||
other programs.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for GNU ocrad
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Antonio Diaz Diaz
|
||||
|
||||
%define INSTALL install -m755 -s
|
||||
%define INSTALL_SCRIPT install -m755
|
||||
%define INSTALL_DIR install -d -m755
|
||||
%define INSTALL_DATA install -m644
|
||||
%description devel
|
||||
Development files for GNU ocrad - useful for programs implementing OCR.
|
||||
|
||||
%prep
|
||||
%setup -n ocrad-%{version}
|
||||
# %patch -p1
|
||||
%setup -q
|
||||
%patch0
|
||||
|
||||
%build
|
||||
./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man
|
||||
make CXXFLAGS='${RPM_OPT_FLAGS}'
|
||||
%configure
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
if [ ! "x" = "x$RPM_BUILD_ROOT" ] ; then
|
||||
rm -fr $RPM_BUILD_ROOT
|
||||
%{INSTALL_DIR} $RPM_BUILD_ROOT
|
||||
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
|
||||
%make_install install-man
|
||||
%{__rm} -f %{buildroot}%{_libexecdir}/libocrad.a
|
||||
|
||||
%clean
|
||||
rm -fr $RPM_BUILD_ROOT
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%post
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
|
||||
%preun
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
/usr/bin/ocrad
|
||||
/usr/share/info/ocrad*
|
||||
%doc %{_mandir}/man1/*
|
||||
%doc AUTHORS COPYING ChangeLog INSTALL README NEWS TODO
|
||||
# spec file ends here
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
||||
%{_bindir}/ocrad
|
||||
%doc %{_infodir}/ocrad*
|
||||
%doc %{_mandir}/man1/ocrad*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/ocradlib.h
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user