]>
Commit | Line | Data |
---|---|---|
a7b1870a AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Coro | |
7 | %define pnam Coro | |
8 | Summary: Coro - do events the coro-way | |
9 | Name: perl-Coro | |
10 | Version: 1.9 | |
11 | Release: 0.1 | |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: 63efa9fb31ded80f2c7d1fb900163824 | |
17 | BuildRequires: perl-devel >= 1:5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | This module enables you to create programs using the powerful Event | |
23 | model (and module), while retaining the linear style known from simple | |
24 | or threaded programs. | |
25 | ||
26 | %prep | |
27 | %setup -q -n %{pnam}-%{version} | |
28 | ||
29 | %build | |
30 | echo "y | |
31 | l | |
32 | 16384" | %{__perl} Makefile.PL \ | |
33 | INSTALLDIRS=vendor | |
34 | %{__make} \ | |
35 | OPTIMIZE="%{rpmcflags}" | |
36 | ||
37 | %{?with_tests:%{__make} test} | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %{__make} install \ | |
43 | DESTDIR=$RPM_BUILD_ROOT | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc ANNOUNCE ChangeLog README TODO | |
51 | ||
52 | %{perl_vendorarch}/Coro.pm | |
53 | %{perl_vendorarch}/Coro | |
54 | %dir %{perl_vendorarch}/auto/Coro | |
55 | %{perl_vendorarch}/auto/Coro/*.bs | |
56 | %attr(755,root,root) %{perl_vendorarch}/auto/Coro/*.so | |
57 | %{_mandir}/man3/* |