diff --git a/ocrad-0.22.tar.bz2 b/ocrad-0.22.tar.bz2 deleted file mode 100644 index 6ac90ee..0000000 --- a/ocrad-0.22.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:885a0aa03059c1aeda222ca6fc65b7ddcfc70395b39c9cd68524d25f315ce587 -size 93045 diff --git a/ocrad-0.23.tar.lz b/ocrad-0.23.tar.lz new file mode 100644 index 0000000..13563a1 --- /dev/null +++ b/ocrad-0.23.tar.lz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5bc9479c01fe8c64aa836c8636dff65e9b459c2edbd4fc0656f47f435d9a06f +size 87385 diff --git a/ocrad-build-with-optflags.patch b/ocrad-build-with-optflags.patch deleted file mode 100644 index ccc7e23..0000000 --- a/ocrad-build-with-optflags.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- configure.orig 2013-07-24 08:20:58.611942166 +0000 -+++ configure 2013-07-24 08:23:38.298054685 +0000 -@@ -24,10 +24,6 @@ - infodir='$(datarootdir)/info' - libdir='${exec_prefix}/lib' - mandir='$(datarootdir)/man' --CXX=g++ --CPPFLAGS= --CXXFLAGS='-Wall -W -O2' --LDFLAGS= - - # checking whether we are using GNU C++. - ${CXX} --version > /dev/null 2>&1 diff --git a/ocrad.changes b/ocrad.changes index 2e8bf18..a1c70b3 100644 --- a/ocrad.changes +++ b/ocrad.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sun May 4 22:36:24 UTC 2014 - asterios.dramis@gmail.com + +- Update to 0.23: + * Improvements in character recognition. + * Filters of type '*_only' now remove leading whitespace. + * ocradlib.h: Changed 'uint8_t' to 'unsigned char'. + * Added some missing inclusions of 'cstdlib'. + * ocrad.texinfo: Renamed to ocrad.texi. +- Added lzip build requirement in order to extract the package. +- Removed ocrad-build-with-optflags.patch and instead added a fix inside the + spec file. + ------------------------------------------------------------------- Wed Jul 24 08:27:47 UTC 2013 - toganm@opensuse.org diff --git a/ocrad.spec b/ocrad.spec index 3b87965..3c15ddd 100644 --- a/ocrad.spec +++ b/ocrad.spec @@ -1,7 +1,7 @@ # # spec file for package ocrad # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 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,21 +17,18 @@ Name: ocrad -Version: 0.22 +Version: 0.23 Release: 0 Summary: Optical Character Recognition Program License: GPL-3.0+ Group: Productivity/Graphics/Other - -Url: https://savannah.gnu.org/projects/ocrad/ -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 - +Url: http://www.gnu.org/software/ocrad/ +Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.lz BuildRequires: gcc-c++ +BuildRequires: lzip Requires(post): info Requires(preun): info +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description GNU Ocrad is an OCR (Optical Character Recognition) program based on a feature @@ -53,28 +50,24 @@ Development files for GNU ocrad - useful for programs implementing OCR. %prep %setup -q -%patch0 %build %configure -%{__make} %{?_smp_mflags} +make CXXFLAGS="%{optflags}" %{?_smp_mflags} %install -%make_install install-man -%{__rm} -f %{buildroot}%{_libdir}/libocrad.a - -%clean -%{__rm} -rf %{buildroot} +make DESTDIR=%{buildroot} install +rm -f %{buildroot}%{_libdir}/libocrad.a %post -%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz +%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} %preun -%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} %files %defattr(-,root,root,-) -%doc AUTHORS COPYING ChangeLog NEWS README +%doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/ocrad %doc %{_infodir}/ocrad* %doc %{_mandir}/man1/ocrad*