3 %bcond_without tests # do not perform "make test"
4 %bcond_without autodeps # don't BR packages needed only for resolving deps
6 %include /usr/lib/rpm/macros.perl
9 Summary: UNIVERSAL::moniker - guess how class would be called in real world
10 Summary(pl): UNIVERSAL::moniker - odgadywanie nazwy obiektu w ¶wiecie rzeczywistym
11 Name: perl-UNIVERSAL-moniker
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: e59b97ccf88f9fa68c3e5c18d7059d57
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 %if %{with autodeps} || %{with tests}
22 BuildRequires: perl-Lingua-EN-Inflect >= 1.88
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 UNIVERSAL::moniker enables classes to make a good guess at what they
29 would be called in the real world.
32 UNIVERSAL::moniker pozwala klasom na odgadniêcia jak w ¶wiecie
33 rzeczywistym nazywa³by siê nale¿±ce do nich obiekty.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{perl_vendorlib}/%{pdir}/*.pm