# $Revision: 1.2 $, $Date: 2002/08/11 01:38:59 $ %include /usr/lib/rpm/macros.perl %define pdir AI %define pnam Categorizer Summary: AI::Categorize -- Automatic Text Categorization Summary(pl): AI::Categorize -- Automatyczna klasyfikacja tekstu Name: perl-%{pdir}-%{pnam} Version: 0.03 Release: 2 License: GPL/Artistic Group: Development/Languages/Perl Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz BuildRequires: perl >= 5.6 BuildRequires: rpm-perlprov >= 3.0.3-26 #%{!?_without_tests:BuildRequires perl-Statistics-Contingency} #%{!?_without_tests:BuildRequires perl-Lingua-Stem} BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description "AI::Categorizer" is a framework for automatic text categorization. It consists of a collection of Perl modules that implement common categorization tasks, and a set of defined relationships among those modules. The various details are flexible - for example, you can choose what categorization algorithm to use, what features (words or otherwise) of the documents should be used (or how to automatically choose these features), what format the documents are in, and so on. %description -l pl AI::Categorizer to szkielet do automatycznej klasyfikacji tekstu. Sk³ada siê z zestawu modu³ów Perla z implementacj± wspólnych zadañ klasyfikuj±cych oraz zbioru zdefiniowanych relacji miêdzy tymi modu³ami. Ró¿ne szczegó³y s± elastyczne - na przyk³ad mo¿na wybraæ, jaki algorytm klasyfikacji ma byæ u¿yty, które w³asno¶ci (s³owa czy inne) dokumentów powinny byæ wykorzystane (lub jak automatycznie wybraæ te cechy), w jakim formacie s± dokumenty itd. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build perl Makefile.PL %{__make} #%{!?_without_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{perl_sitelib}/%{pdir}/*.pm %{perl_sitelib}/%{pdir}/%{pnam} %{_mandir}/man3/* %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog * %{date} PLD Team <feedback@pld.org.pl> All persons listed below can be reached at <cvs_login>@pld.org.pl $Log: perl-AI-Categorizer.spec,v $ Revision 1.2 2002/08/11 01:38:59 qboosh - pl description, release 2 Revision 1.1 2002/08/03 13:12:16 radek - new, stbr