]>
Commit | Line | Data |
---|---|---|
7b0cf5c5 | 1 | # |
2 | # Conditional build: | |
98d192c6 | 3 | %bcond_without tests # do not perform "make test" |
389e44aa | 4 | %bcond_without autodeps # don't BR packages needed only for resolving deps |
7b0cf5c5 | 5 | # |
f1e10109 | 6 | %define pdir UNIVERSAL |
7 | %define pnam moniker | |
e1c073ed | 8 | Summary: UNIVERSAL::moniker - guess how class would be called in real world |
aa35de75 | 9 | Summary(pl.UTF-8): UNIVERSAL::moniker - odgadywanie nazwy obiektu w świecie rzeczywistym |
e18c88f0 | 10 | Name: perl-UNIVERSAL-moniker |
2ff2ac6b | 11 | Version: 0.08 |
be69e7cf | 12 | Release: 2 |
d638aa68 | 13 | # same as perl |
98d192c6 | 14 | License: GPL v1+ or Artistic |
7b0cf5c5 | 15 | Group: Development/Languages/Perl |
0c00e0c0 | 16 | Source0: http://www.cpan.org/modules/by-module/UNIVERSAL/%{pdir}-%{pnam}-%{version}.tar.gz |
2ff2ac6b | 17 | # Source0-md5: e59b97ccf88f9fa68c3e5c18d7059d57 |
0c00e0c0 | 18 | URL: http://search.cpan.org/dist/UNIVERSAL-moniker/ |
d8ef9cb3 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
7b0cf5c5 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
5bdb1c27 | 21 | %if %{with autodeps} || %{with tests} |
7b0cf5c5 | 22 | BuildRequires: perl-Lingua-EN-Inflect >= 1.88 |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | UNIVERSAL::moniker enables classes to make a good guess at what they | |
29 | would be called in the real world. | |
30 | ||
f43c4328 JR |
31 | %description -l pl.UTF-8 |
32 | UNIVERSAL::moniker pozwala klasom na odgadnięcia jak w świecie | |
33 | rzeczywistym nazywałby się należące do nich obiekty. | |
d638aa68 | 34 | |
7b0cf5c5 | 35 | %prep |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
39 | %{__perl} Makefile.PL \ | |
40 | INSTALLDIRS=vendor | |
41 | %{__make} | |
98d192c6 | 42 | |
389e44aa | 43 | %{?with_tests:%{__make} test} |
7b0cf5c5 | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %{__make} install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc README | |
0c00e0c0 | 57 | %{perl_vendorlib}/UNIVERSAL/*.pm |
7b0cf5c5 | 58 | %{_mandir}/man3/* |