3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: Chatbot::Eliza Perl module - a clone of the classic Eliza program
9 Summary(pl.UTF-8): Moduł Perla Chatbot::Eliza - klon klasycznego programu Eliza
10 Name: perl-Chatbot-Eliza
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 754199bbe591eaa11301aee108586fcd
18 URL: http://search.cpan.org/dist/Chatbot-Eliza/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Chatbot::Eliza Perl module implements classic Eliza algorithm. The
26 original Eliza program was written by Joseph Weizenbaum and described
27 in the Communications of the ACM in 1966. Eliza is a mock Rogerian
28 psychotherapist. It prompts for user input, and uses a simple
29 transformation algorithm to change user input into a follow-up
30 question. The program is designed to give the appearance of
33 %description -l pl.UTF-8
34 Moduł Perla Chatbot::Eliza stanowi implementację klasycznego algorytmu
35 Eliza. Oryginalny program Eliza został napisany przez Josepha
36 Weizenbauma i opisany w Communications of the ACM w 1966. Eliza jest
37 imitacją zabawnego psychoterapeuty. Prosi użytkownika o informacje i,
38 używając prostego algorytmu transformacyjnego, zmienia informacje
39 użytkownika w następne pytanie. Program zaprojektowano aby
40 zaprezentować rozumienie.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc README *txt twobots
64 %dir %{perl_vendorlib}/Chatbot
65 %{perl_vendorlib}/Chatbot/Eliza.pm