SHA256
1
0
forked from pool/ocrad

Accepting request 62136 from graphics

Accepted submit request 62136 from user adrianSuSE

OBS-URL: https://build.opensuse.org/request/show/62136
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ocrad?expand=0&rev=14
This commit is contained in:
Ruediger Oertel
2011-02-20 23:53:35 +00:00
committed by Git OBS Bridge
4 changed files with 56 additions and 41 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a47cbeed943d3296289082caba21c28ccc2673ee394c12c8e38f525868e3636
size 89099

3
ocrad-0.21.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c5cdf555e523430cb7c3da4817c049f808606c0581173790d8277ab95375503
size 89706

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
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

View File

@@ -1,7 +1,7 @@
#
# spec file for package ocrad (Version 0.20)
# 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,70 +17,71 @@
# norootforbuild
Name: ocrad
BuildRequires: gcc-c++
Url: https://savannah.gnu.org/projects/ocrad/
Summary: GNU Ocrad--Optical Character Recognition Program
Version: 0.20
Version: 0.21
Release: 1
Group: Productivity/Graphics/Other
License: GPLv2+
Source0: ocrad-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
Summary: Optical Character Recognition Program
License: GPLv3+
Url: https://savannah.gnu.org/projects/ocrad/
Group: Productivity/Graphics/Other
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
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
License: GPLv2+
Summary: Development files for GNU ocrad
Group: Development/Libraries/C and C++
%description devel
Development files for GNU ocrad - useful for programs implementing OCR
Development files for GNU ocrad - useful for programs implementing OCR.
%prep
%setup
%setup -q
%patch0
%build
%configure
%{__make} %{?_smp_mflags} VERBOSE=1
%{__make} %{?_smp_mflags}
%install
%makeinstall install-man
%{__rm} -f $RPM_BUILD_ROOT%{_libexecdir}/libocrad.a
%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)
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/ocrad
%{_infodir}/ocrad*
%doc %{_mandir}/man1/*
%doc AUTHORS COPYING ChangeLog INSTALL README NEWS TODO
%doc %{_infodir}/ocrad*
%doc %{_mandir}/man1/ocrad*
%files devel
%defattr(-, root, root)
%defattr(-,root,root,-)
%{_includedir}/ocradlib.h
%changelog