Группа :: Разработка/Прочее
Пакет: libtextcat
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: libtextcat
Version: 2.2
Release: alt2
Packager: Victor Forsyuk <force at altlinux.org>
Summary: Text categorisation library
License: BSD
Group: Development/Other
URL: http://software.wise-guys.nl/libtextcat/
Source: http://software.wise-guys.nl/download/libtextcat-%version.tar.gz
%description
Libtextcat is a library with functions that implement the classification
technique described in Cavnar & Trenkle, "N-Gram-Based Text Categorization".
It was primarily developed for language guessing, a task on which it is known
to perform with near-perfect accuracy.
%package devel
Summary: Support files necessary to compile applications with libtextcat
Group: Development/C
Requires: libtextcat = %version-%release
%description devel
Libraries, headers, and support files necessary to compile applications using
libtextcat.
%prep
%setup
%build
%autoreconf
%configure --disable-static
%make_build
%install
%make_install DESTDIR=%buildroot install
# make install forgot about header file :\
install -pD -m644 src/textcat.h %buildroot%_includedir/textcat.h
# we also want to have testtextcat installed
install -m755 src/.libs/testtextcat %buildroot%_bindir
mkdir -p %buildroot%_datadir/libtextcat
cp -R langclass %buildroot%_datadir/libtextcat/
%files
%_libdir/*.so.*
%_datadir/*
%files devel
%doc README
%_bindir/*
%_libdir/*.so
%_includedir/*
%changelog
…
Полный changelog можно просмотреть здесь
Version: 2.2
Release: alt2
Packager: Victor Forsyuk <force at altlinux.org>
Summary: Text categorisation library
License: BSD
Group: Development/Other
URL: http://software.wise-guys.nl/libtextcat/
Source: http://software.wise-guys.nl/download/libtextcat-%version.tar.gz
%description
Libtextcat is a library with functions that implement the classification
technique described in Cavnar & Trenkle, "N-Gram-Based Text Categorization".
It was primarily developed for language guessing, a task on which it is known
to perform with near-perfect accuracy.
%package devel
Summary: Support files necessary to compile applications with libtextcat
Group: Development/C
Requires: libtextcat = %version-%release
%description devel
Libraries, headers, and support files necessary to compile applications using
libtextcat.
%prep
%setup
%build
%autoreconf
%configure --disable-static
%make_build
%install
%make_install DESTDIR=%buildroot install
# make install forgot about header file :\
install -pD -m644 src/textcat.h %buildroot%_includedir/textcat.h
# we also want to have testtextcat installed
install -m755 src/.libs/testtextcat %buildroot%_bindir
mkdir -p %buildroot%_datadir/libtextcat
cp -R langclass %buildroot%_datadir/libtextcat/
%files
%_libdir/*.so.*
%_datadir/*
%files devel
%doc README
%_bindir/*
%_libdir/*.so
%_includedir/*
%changelog
…
Полный changelog можно просмотреть здесь