SHA256
1
0
forked from pool/ocrad

Accepting request 25160 from home:kfreitag:branches:graphics

Copy from home:kfreitag:branches:graphics/ocrad via accept of submit request 25160 revision 3.
Request was accepted with message:
ok

OBS-URL: https://build.opensuse.org/request/show/25160
OBS-URL: https://build.opensuse.org/package/show/graphics/ocrad?expand=0&rev=4
This commit is contained in:
2009-12-02 10:10:41 +00:00
committed by Git OBS Bridge
parent d245df2bfd
commit 3d52be6ebd
6 changed files with 37 additions and 86 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package ocrad (Version 0.20)
# spec file for package ocrad (Version 0.17)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 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
@@ -22,15 +22,17 @@ Name: ocrad
BuildRequires: gcc-c++
Url: https://savannah.gnu.org/projects/ocrad/
Summary: GNU Ocrad--Optical Character Recognition Program
Version: 0.20
Release: 1
Version: 0.18
Release: 68
Group: Productivity/Graphics/Other
License: GPLv2+
#Requires:
#Provides:
License: GPL v2 or later
# URL:
Source0: ocrad-%{version}.tar.bz2
# Patch: ocrad-%{version}-gcc43.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
Patch0: ocrad-build-with-optflags.patch
PreReq: %install_info_prereq
%description
GNU Ocrad is an OCR (Optical Character Recognition) program implemented
@@ -42,26 +44,32 @@ back-end to other programs.
gocr is another interesting command line OCR tool. Both can be plugged
into Kooka, the KDE scan and OCR program.
%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
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
%prep
%setup
%patch0
%setup -n ocrad-%{version}
# %patch -p1
%build
%configure
%{__make} %{?_smp_mflags} VERBOSE=1
./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man
make CXXFLAGS='${RPM_OPT_FLAGS}'
%install
%makeinstall install-man
%{__rm} -f $RPM_BUILD_ROOT%{_libexecdir}/libocrad.a
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
@@ -70,17 +78,14 @@ Development files for GNU ocrad - useful for programs implementing OCR
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%clean
%{__rm} -fr $RPM_BUILD_ROOT
rm -fr $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_bindir}/ocrad
%{_infodir}/ocrad*
/usr/bin/ocrad
/usr/share/info/ocrad*
%doc %{_mandir}/man1/*
%doc AUTHORS COPYING ChangeLog INSTALL README NEWS TODO
%files devel
%defattr(-, root, root)
%{_includedir}/ocradlib.h
# spec file ends here
%changelog