]>
Commit | Line | Data |
---|---|---|
541a8cba | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Class | |
7 | %define pnam XSAccessor | |
8 | Summary: Class::XSAccessor - Generate fast XS accessors without runtime compilation | |
9 | Summary(pl.UTF-8): Class::XSAccessor - Generuj szybkie funkcje dostępu XS bez kompilacji w czasie uruchomienia | |
10 | Name: perl-Class-XSAccessor | |
65862fa7 | 11 | Version: 1.13 |
58c6ba3d | 12 | Release: 6 |
541a8cba | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/%{pdir}-%{pnam}-%{version}.tar.gz | |
65862fa7 | 17 | # Source0-md5: 3650906917d824582ad82e1bd974da45 |
541a8cba | 18 | URL: http://search.cpan.org/dist/Class-XSAccessor/ |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl(AutoXS::Header) >= 1.00 | |
23 | %endif | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Class::XSAccessor implements fast read, write and read/write accessors | |
28 | in XS. Additionally, it can provide predicates such as has_foo() for | |
29 | testing whether the attribute foo is defined in the object. It only | |
30 | works with objects that are implemented as ordinary hashes. | |
31 | Class::XSAccessor::Array implements the same interface for objects | |
32 | that use arrays for their internal representation. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Class::XSAccessor - Generuj szybkie funkcje dostępu XS bez kompilacji | |
36 | w czasie uruchomienia. | |
37 | ||
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | %{__make} \ | |
45 | CC="%{__cc}" \ | |
46 | OPTIMIZE="%{rpmcflags}" | |
47 | ||
48 | %{?with_tests:%{__make} test} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} pure_install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc Changes README | |
62 | %{perl_vendorarch}/Class/*.pm | |
eead4090 | 63 | %dir %{perl_vendorarch}/Class/XSAccessor |
64 | %{perl_vendorarch}/Class/XSAccessor/*.pm | |
541a8cba | 65 | %dir %{perl_vendorarch}/auto/Class/XSAccessor |
541a8cba | 66 | %attr(755,root,root) %{perl_vendorarch}/auto/Class/XSAccessor/*.so |
67 | %{_mandir}/man3/* |