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:
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
|
||||
|
Reference in New Issue
Block a user