# # Conditional build: %bcond_with tests # perform "make test" %bcond_without autodeps # don't BR packages needed only for resolving deps # %include /usr/lib/rpm/macros.perl %define pdir UNIVERSAL %define pnam moniker Summary: Guess how class would be called in real world Summary(pl): Odgadywanie nazwy obiektu w świecie rzeczywistym Name: perl-%{pdir}-%{pnam} Version: 0.06 Release: 1 # same as perl License: GPL or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 416e87d67567078090e76b6d406f0b26 BuildRequires: perl-devel >= 5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with autodeps} || %{with_tests} BuildRequires: perl-Lingua-EN-Inflect >= 1.88 %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description UNIVERSAL::moniker enables classes to make a good guess at what they would be called in the real world. %description -l pl UNIVERSAL::moniker pozwala klasom na odgadnięcia jak w świecie rzeczywistym nazywałby się należące do nich obiekty. %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) %doc README %{perl_vendorlib}/%{pdir}/*.pm %{_mandir}/man3/*