Accepting request 232625 from home:adra:branches:graphics

Update to 0.23, Added lzip build requirement, Removed ocrad-build-with-optflags.patch and instead added a fix inside the spec file

OBS-URL: https://build.opensuse.org/request/show/232625
OBS-URL: https://build.opensuse.org/package/show/graphics/ocrad?expand=0&rev=19
This commit is contained in:
2014-05-07 09:42:00 +00:00
committed by Git OBS Bridge
parent 6909c240b4
commit ec60006fd7
5 changed files with 28 additions and 35 deletions

View File

@@ -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*