]>
Commit | Line | Data |
---|---|---|
3cc62918 | 1 | # |
2 | # Conditional build: | |
3 | # _without_tests - do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir POE | |
7 | Summary: POE - multitasking and networking framework for perl | |
8 | #Summary(pl): | |
9 | Name: perl-POE | |
10 | Version: 0.26 | |
11 | Release: 1 | |
12 | # same as perl | |
13 | License: GPL/Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz | |
16 | URL: http://poe.perl.org/ | |
17 | BuildRequires: perl-devel >= 5.6 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | %if %{!?_without_tests:1}0 | |
20 | BuildRequires: perl(Filter::Util::Call) >= 1.04 | |
21 | BuildRequires: perl-Compress-Zlib | |
22 | BuildRequires: perl-Curses | |
23 | BuildRequires: perl-Event | |
24 | BuildRequires: perl-IO-Tty | |
25 | BuildRequires: perl-Storable | |
26 | BuildRequires: perl-Term-ReadKey | |
27 | BuildRequires: perl-Time-HiRes | |
28 | BuildRequires: perl-URI | |
29 | BuildRequires: perl-libwww | |
30 | %endif | |
31 | BuildArch: noarch | |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %define _noautoreq perl(Curses) perl(HTTP::Date) perl(HTTP::Request) perl(HTTP::Response) perl(HTTP::Status) perl(URI) perl(Term::Cap) perl(Term::ReadKey) | |
35 | ||
36 | %description | |
37 | POE is an acronym of "Perl Object Environment". It's a networking | |
38 | and multitasking (some say cooperative threading) framework for Perl. | |
39 | It has been in active development since 1996, with its first open | |
40 | release in 1998. O'Reilly's Perl Conference (now OSCON) named POE | |
41 | "Best New Module" in 1999. | |
42 | ||
43 | POE has been used in mission-critical systems such as internetworked | |
44 | financial markets, file systems, commerce and application servers. | |
45 | It has been used in projects ranging from a few lines of code to tens | |
46 | of thousands. | |
47 | ||
48 | POE is compatible with perl versions as old as 5.005_03. | |
49 | ||
50 | POE includes an evolving component framework. Components are high-level, | |
51 | modular, reusable pieces of programs. Several components have been | |
52 | published on the CPAN, and more are listed on POE's web site. | |
53 | ||
54 | POE includes components and libraries for making quick work of network | |
55 | clients, servers, and peers. A simple stand-alone web application takes | |
56 | about 30 lines of code, most of which is your own custom logic. | |
57 | ||
58 | # %description -l pl | |
59 | # TODO | |
60 | ||
61 | %prep | |
62 | %setup -q -n %{pdir}-%{version} | |
63 | ||
64 | %build | |
65 | %{__perl} Makefile.PL \ | |
66 | INSTALLDIRS=vendor \ | |
67 | --default | |
68 | %{__make} | |
69 | ||
70 | %if %{!?_without_tests:1}0 | |
71 | %{__chmod} 000 t/06_tk.t t/21_gtk.t | |
72 | %{__make} test | |
73 | %endif | |
74 | ||
75 | install -d $RPM_BUILD_ROOT%{perl_vendorlib}/POE/Component/CD | |
76 | ||
77 | install -d $RPM_BUILD_ROOT%{_examplesdir} | |
78 | cp -r samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %doc CHANGES NEEDS README TODO | |
92 | %{perl_vendorlib}/%{pdir} | |
93 | %{_mandir}/man3/* |