# # Conditional build: # _without_tests - do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir Class %define pnam Fields Summary: Class::Fields - inspect the fields of a class Summary(pl): Class::Fields - doglądanie składowych klasy Name: perl-Class-Fields Version: 0.15 Release: 4 License: ? Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 536ba4dd740c1ceb30e322db98b6f0b6 BuildRequires: perl-devel >= 5.6.1 BuildRequires: perl-Carp-Assert BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description A collection of utility functions/methods for examining the data members of a class. It provides a nice, high-level interface that should stand the test of time and Perl upgrades nicely. %description -l pl Zestaw funkcji i metod narzędziowych do sprawdzania składowych klasy. Dają przyjemny, wysokopoziomowy interfejs, który powinien wytrzymać próbę czasu i uaktualnienia Perla. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=site \ INSTALLDIRS=vendor %{__make} %{!?_without_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{perl_vendorlib}/%{pdir}/%{pnam}.pm %{perl_vendorlib}/%{pdir}/%{pnam} %{perl_vendorlib}/*.pm %{_mandir}/man3/*