]>
Commit | Line | Data |
---|---|---|
9a98803e | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
46bf7354 | 4 | |
c4a67f0e | 5 | %define pdir Chatbot |
6 | %define pnam Eliza | |
2c9871e9 | 7 | Summary: Chatbot::Eliza Perl module - a clone of the classic Eliza program |
f2807b67 | 8 | Summary(pl.UTF-8): Moduł Perla Chatbot::Eliza - klon klasycznego programu Eliza |
d2bf246d | 9 | Name: perl-Chatbot-Eliza |
f3cc1e95 | 10 | Version: 1.04 |
31d10685 | 11 | Release: 4 |
2c9871e9 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
d2bf246d | 14 | Group: Development/Languages/Perl |
02e39889 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
00f4aefb | 16 | # Source0-md5: 754199bbe591eaa11301aee108586fcd |
46bf7354 | 17 | URL: http://search.cpan.org/dist/Chatbot-Eliza/ |
5049116b | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
46bf7354 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
93ecbbfa | 20 | BuildArch: noarch |
70807ce3 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
d2bf246d | 22 | |
23 | %description | |
46bf7354 | 24 | Chatbot::Eliza Perl module implements classic Eliza algorithm. The |
2c9871e9 | 25 | original Eliza program was written by Joseph Weizenbaum and described |
46bf7354 ER |
26 | in the Communications of the ACM in 1966. Eliza is a mock Rogerian |
27 | psychotherapist. It prompts for user input, and uses a simple | |
2c9871e9 | 28 | transformation algorithm to change user input into a follow-up |
46bf7354 | 29 | question. The program is designed to give the appearance of |
2c9871e9 | 30 | understanding. |
d2bf246d | 31 | |
4ec87377 JR |
32 | %description -l pl.UTF-8 |
33 | Moduł Perla Chatbot::Eliza stanowi implementację klasycznego algorytmu | |
34 | Eliza. Oryginalny program Eliza został napisany przez Josepha | |
2c9871e9 | 35 | Weizenbauma i opisany w Communications of the ACM w 1966. Eliza jest |
4ec87377 JR |
36 | imitacją zabawnego psychoterapeuty. Prosi użytkownika o informacje i, |
37 | używając prostego algorytmu transformacyjnego, zmienia informacje | |
38 | użytkownika w następne pytanie. Program zaprojektowano aby | |
39 | zaprezentować rozumienie. | |
d2bf246d | 40 | |
41 | %prep | |
26189f3d | 42 | %setup -q -n %{pdir}-%{pnam}-%{version} |
d2bf246d | 43 | |
44 | %build | |
2ba9d3b6 | 45 | %{__perl} Makefile.PL \ |
1d9f82a6 | 46 | INSTALLDIRS=vendor |
d5b776f3 | 47 | %{__make} |
d2bf246d | 48 | |
9a98803e | 49 | %{?with_tests:%{__make} test} |
50 | ||
d2bf246d | 51 | %install |
52 | rm -rf $RPM_BUILD_ROOT | |
d2bf246d | 53 | |
9a98803e | 54 | %{__make} install \ |
55 | DESTDIR=$RPM_BUILD_ROOT | |
d2bf246d | 56 | |
d2bf246d | 57 | %clean |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
24404628 | 62 | %doc README *txt twobots |
2ba9d3b6 | 63 | %dir %{perl_vendorlib}/Chatbot |
64 | %{perl_vendorlib}/Chatbot/Eliza.pm | |
d2bf246d | 65 | %{_mandir}/man3/* |