]>
Commit | Line | Data |
---|---|---|
a8ee23ad | 1 | # |
2 | # Conditional build: | |
a8ee23ad | 3 | %bcond_without tests # do not perform "make test" |
4 | # | |
a8ee23ad | 5 | %define pdir Class |
6 | %define pnam C3-XS | |
7 | Summary: Class::C3::XS - XS speedups for Class::C3 | |
7e84e0cc | 8 | Summary(pl.UTF-8): Class::C3::XS - przyspieszacze XS dla Class::C3 |
a8ee23ad | 9 | Name: perl-Class-C3-XS |
53ed94e6 | 10 | Version: 0.14 |
46aa666f | 11 | Release: 3 |
a8ee23ad | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz | |
53ed94e6 | 16 | # Source0-md5: e67706609244b230d1899000a6c666e4 |
a8ee23ad | 17 | URL: http://search.cpan.org/dist/Class-C3-XS/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
7e84e0cc JB |
23 | This contains XS performance enhancers for Class::C3 version 0.16 and |
24 | higher. The main Class::C3 package will use this package automatically | |
25 | if it can find it. Do not use this package directly, use Class::C3 | |
26 | instead. | |
a8ee23ad | 27 | |
7e84e0cc JB |
28 | %description -l pl.UTF-8 |
29 | Ten pakiet zawiera moduły XS przyspieszające Class::C3 w wersji 0.16 i | |
30 | późniejszych. Główny pakiet Class::C3 używa tego pakietu automatycznie | |
31 | jeśli go znajdzie. Nie należy używać go bezpośrednio, jedynie przez | |
32 | Class::C3. | |
a8ee23ad | 33 | |
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
38 | %{__perl} Makefile.PL \ | |
39 | INSTALLDIRS=vendor | |
40 | %{__make} \ | |
e6b7d379 | 41 | CC="%{__cc}" \ |
a8ee23ad | 42 | OPTIMIZE="%{rpmcflags}" |
43 | ||
44 | %{?with_tests:%{__make} test} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} pure_install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
53ed94e6 JB |
57 | %doc Changes |
58 | %{perl_vendorarch}/Class/C3/XS.pm | |
a8ee23ad | 59 | %dir %{perl_vendorarch}/Class/C3 |
60 | %dir %{perl_vendorarch}/auto/Class/C3 | |
61 | %dir %{perl_vendorarch}/auto/Class/C3/XS | |
53ed94e6 JB |
62 | %attr(755,root,root) %{perl_vendorarch}/auto/Class/C3/XS/XS.so |
63 | %{_mandir}/man3/Class::C3::XS.3pm* |