]>
Commit | Line | Data |
---|---|---|
5ced07dc AM |
1 | # |
2 | # Conditional build: | |
e1756c8f | 3 | %bcond_without tests # unit tests |
5ced07dc AM |
4 | # |
5 | %define pdir Reply | |
5ced07dc | 6 | Summary: Reply - read, eval, print, loop, yay! |
e1756c8f | 7 | Summary(pl.UTF-8): Reply - read, eval, print, loop, yay! - przetwarzanie w pętli |
5ced07dc | 8 | Name: perl-Reply |
35bf60b2 AM |
9 | Version: 0.42 |
10 | Release: 1 | |
e1756c8f | 11 | License: MIT |
5ced07dc AM |
12 | Group: Development/Languages/Perl |
13 | Source0: http://www.cpan.org/modules/by-authors/id/D/DO/DOY/Reply-%{version}.tar.gz | |
35bf60b2 | 14 | # Source0-md5: 194495d634db7d8636e42ea49295914a |
e1756c8f JB |
15 | URL: https://metacpan.org/dist/Reply |
16 | BuildRequires: perl-ExtUtils-MakeMaker | |
5ced07dc AM |
17 | BuildRequires: perl-devel >= 1:5.8.0 |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
e1756c8f | 19 | BuildRequires: rpmbuild(macros) >= 1.745 |
5ced07dc | 20 | %if %{with tests} |
e1756c8f JB |
21 | BuildRequires: perl-Config-INI-Reader-Ordered |
22 | BuildRequires: perl-Devel-LexAlias | |
5ced07dc | 23 | BuildRequires: perl-Eval-Closure >= 0.11 |
e1756c8f JB |
24 | BuildRequires: perl-File-HomeDir |
25 | BuildRequires: perl-Getopt-Long >= 2.36 | |
5ced07dc AM |
26 | BuildRequires: perl-Module-Runtime |
27 | BuildRequires: perl-Package-Stash | |
e1756c8f JB |
28 | BuildRequires: perl-PadWalker |
29 | BuildRequires: perl-Scalar-List-Utils | |
30 | BuildRequires: perl-Term-ANSIColor | |
31 | BuildRequires: perl-Test-Simple >= 0.88 | |
32 | BuildRequires: perl-Time-HiRes | |
5ced07dc AM |
33 | BuildRequires: perl-Try-Tiny |
34 | %endif | |
35 | BuildArch: noarch | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | NOTE: This is an early release, and implementation details of this | |
e1756c8f | 40 | module are still very much in flux. |
5ced07dc AM |
41 | |
42 | Reply is a lightweight, extensible REPL for Perl. It is plugin-based | |
e1756c8f JB |
43 | (Reply::Plugin), and through plugins supports many advanced features |
44 | such as coloring and pretty printing, readline support, and pluggable | |
45 | commands. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | UWAGA: to jest wczesne wydanie i szczegóły implementacji modułu często | |
49 | się zmieniają. | |
50 | ||
51 | Reply to lekka, rozszerzalna implementacja REPL (Read-Eval-Print-Loop, | |
52 | czyli odczyt-przeliczenie-wypisanie-zapętlenie) dla Perla. Jest oparta | |
53 | na wtyczkach (Reply::Plugin) i poprzez wtyczki obsługuje wiele | |
54 | zaawansowanych funkcji, takich jak kolorowanie czy ładne wypisywanie, | |
55 | obsługa readline i ładowalne polecenia. | |
5ced07dc AM |
56 | |
57 | %prep | |
58 | %setup -q -n %{pdir}-%{version} | |
59 | ||
60 | %build | |
61 | %{__perl} Makefile.PL \ | |
62 | INSTALLDIRS=vendor | |
63 | %{__make} | |
64 | ||
65 | %{?with_tests:%{__make} test} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %{__make} pure_install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc Changes README | |
79 | %attr(755,root,root) %{_bindir}/reply | |
e1756c8f JB |
80 | %{perl_vendorlib}/Reply.pm |
81 | %{perl_vendorlib}/Reply | |
5ced07dc | 82 | %{_mandir}/man1/reply.1* |
e1756c8f | 83 | %{_mandir}/man3/Reply*.3pm* |