3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Class::Fields - inspect the fields of a class
9 Summary(pl.UTF-8): Class::Fields - doglądanie składowych klasy
10 Name: perl-Class-Fields
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 22874976c81830bed35b5988d3879aee
17 URL: http://search.cpan.org/dist/Class-Fields/
18 BuildRequires: perl-Carp-Assert
19 BuildRequires: perl(base) >= 2.0
20 BuildRequires: perl-devel >= 1:5.8.1
21 BuildRequires: rpm-perlprov >= 4.1-13
22 Requires: perl(base) >= 2.0
23 Requires: perl-base >= 1:5.8.1
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 A collection of utility functions/methods for examining the data
29 members of a class. It provides a nice, high-level interface that
30 should stand the test of time and Perl upgrades nicely.
32 %description -l pl.UTF-8
33 Zestaw funkcji i metod narzędziowych do sprawdzania składowych
34 klasy. Dają przyjemny, wysokopoziomowy interfejs, który powinien
35 wytrzymać próbę czasu i uaktualnienia Perla.
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39 rm t/bugs.t # expected warning has changed; try to remove it after 0.201
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %{perl_vendorlib}/%{pdir}/%{pnam}.pm
60 %{perl_vendorlib}/%{pdir}/%{pnam}
61 %{perl_vendorlib}/*.pm