Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37039362
en ru br
ALT Linux repositórios
S:0.10.18-alt1_10

Group :: Sistema/Bibliotecas
RPM: libhocr

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

# BEGIN SourceDeps(oneline):
BuildRequires: /usr/bin/swig gcc-c++ python-devel swig
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# %%name and %%version is ahead of its definition. Predefining for rpm 4.0 compatibility.
%define name libhocr
%define version 0.10.18
# Override default upstream location [/usr/share/doc/libhocr]
%global hocrdocdir %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}

%define major 0
%define libname libhocr%{major}
%define devname libhocr-devel

Name: libhocr
Version: 0.10.18
Release: alt1_10
Summary: A Hebrew optical character recognition library

Group: System/Libraries
License: GPLv3+
URL: http://hocr.berlios.de
Source0: http://download.berlios.de/hocr/%{name}-%{version}.tar.bz2
Patch1: libhocr-fix-automake.patch
Patch2: libhocr-0.10.18-linking.patch
BuildRequires: libfftw3-devel
BuildRequires: libhspell-devel
BuildRequires: libtiff-devel libtiffxx-devel
BuildRequires: gtk2-devel
BuildRequires: glib2-devel libgio-devel
Obsoletes: %{name}-gtk < 0.10.18-9
Obsoletes: %{name}-python < 0.10.18-9
Source44: import.info

%description
LibHocr is a GNU Hebrew optical character recognition library. It scans
document images, improve the image, analyzes the page layout, recognizes
the characters and outputs the text. The output texts are now editable
text, ready for your blog, word processor or any other use.

%package -n %{devname}
Summary: Development files for %{name}
Group: System/Libraries
Requires: libhocr = %{version}-%{release}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package -n %{libname}
Summary: A Hebrew optical character recognition library
Group: System/Libraries
Conflicts: %{name} < 0.10.18-2
Conflicts: libhocr < 0.10.18
Obsoletes: libhocr < 0.10.18

%description -n %{libname}
LibHocr is a GNU Hebrew optical character recognition library. It scans
document images, improve the image, analyzes the page layout, recognizes
the characters and outputs the text. The output texts are now editable
text, ready for your blog, word processor or any other use.

%prep
%setup -q
%patch1 -p1
%patch2 -p1


%build
autoreconf -vfi
export CFLAGS="%optflags -Werror-implicit-function-declaration"
%configure \
--disable-static \
--disable-hocr-gtk \
--disable-python
make

%install
%makeinstall_std \
hocrdocdir=%{hocrdocdir} \
examples_binding_dir=%{hocrdocdir}/examples/bindings

# we don't want these

find %{buildroot} -name '*.la' -delete
rm -f %{buildroot}/%{hocrdocdir}/NEWS # Empty, not usefull.
rm -f %{buildroot}/%{hocrdocdir}/INSTALL # Not needed anymore ;-)

# "fix" icons

%if 0
for i in 48 128; do
install -Dpm644 ./examples/hocr-gtk/hocr1-${i}.png \
%{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/hocr.png
done
rm -rf %{buildroot}%{_datadir}/pixmaps/
%endif

%files
%doc %dir %{hocrdocdir}
%doc %{hocrdocdir}/AUTHORS
%doc %{hocrdocdir}/COPYING
%doc %{hocrdocdir}/ChangeLog
%doc %{hocrdocdir}/HACKING
%doc %{hocrdocdir}/README
%{_bindir}/hocr
%{_mandir}/man1/*.1*

%files -n %{libname}
%{_libdir}/%{name}*.so.%{major}
%{_libdir}/%{name}*.so.%{major}.*

%files -n %{devname}
%doc %{hocrdocdir}/examples
%doc %{_mandir}/man3/*.3*
%{_includedir}/%{name}/
%{_libdir}/%{name}*.so
%{_libdir}/pkgconfig/%{name}*.pc


%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009