# # Conditional build: %bcond_without tests # do perform "make test" %define pdir Role %define pnam Basic Summary: Role::Basic - Just roles Name: perl-Role-Basic Version: 0.13 Release: 1 License: GPL or Artistic Group: Development/Languages/Perl Source0: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/Role-Basic-%{version}.tar.gz # Source0-md5: 2985fbb47bd0a862bd56bc7cbba6e673 URL: http://search.cpan.org/dist/Role-Basic/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Role::Basic - Just roles. Nothing else. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_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}/Role/Basic.pm %{_mandir}/man3/*