LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File mguesser.spec of Package mguesser (Project home:zhonghuaren)

Name:				mguesser
Version:			0.4
Release:			2.41
Summary:			Text Charset and Language Guesser
# http://www.mnogosearch.org/guesser/mguesser-%{version}.tar.gz
Source:			mguesser-%{version}.tar.bz2
Patch1:			mguesser-makefile.patch
Patch2:			mguesser-fix_printf_format.patch
URL:				http://www.mnogosearch.org/guesser/
Group:			Productivity/File utilities
License:			GNU General Public License (GPL)
BuildRoot:		%{_tmppath}/build-%{name}-%{version}
BuildRequires:	make gcc glibc-devel

mguesser is a standalong part of libudmsearch (a core of mnogo search engine
http://mnogosearch.org) which allows to guess text's charset and language.

Guessing is implemented using "N-Gram-Based Text Categorization" technique
which is implemented in TextCat language guesser written in Perl
(http://www.let.rug.nl/~vannoord/TextCat/). mguesser is significantly faster
than TextCat especially on large texts.

This package consist of C written N-gram based algorythms as well as a number
of maps for texts in various languages and charsets. Take a look into "maps"
directory of this package to check currently supported languages and charsets.

%setup -q

%__make %{?jobs:-j%{jobs}} LMDIR="%{_datadir}/%{name}/maps" OPTFLAGS="%{optflags}"

%__rm -rf "$RPM_BUILD_ROOT"
%__install -D -m 0755 mguesser "$RPM_BUILD_ROOT%{_bindir}/mguesser"
%__install -d "$RPM_BUILD_ROOT%{_datadir}/%{name}/maps"
%__cp maps/*.lm "$RPM_BUILD_ROOT%{_datadir}/%{name}/maps/"

%__rm -rf "$RPM_BUILD_ROOT"


* Wed Nov 30 2011 Huaren Zhong <huaren.zhong@gmail.com> - 0.4
- Rebuild for Fedora

* Thu Mar  6 2008 Pascal Bleser <guru@unixtech.be> 0.4
- pass optflags
- moved to openSUSE Build Service
- new upstream version

* Thu Nov 23 2006 Pascal Bleser <guru@unixtech.be> 0.2-2
- rewrote spec file, pass -j

* Mon Nov 21 2005 Pascal Bleser <guru@unixtech.be> 0.2-1
- new package