]>
Commit | Line | Data |
---|---|---|
7b0cf5c5 | 1 | # |
2 | # Conditional build: | |
3 | # _with_tests - perform "make test" | |
4 | # _without_autodeps - don't BR packages needed only for resolving deps | |
5 | # | |
6 | %include /usr/lib/rpm/macros.perl | |
7 | %define pdir UNIVERSAL | |
8 | %define pnam moniker | |
9 | Summary: Guess how class would be called in real world | |
10 | Name: perl-%{pdir}-%{pnam} | |
11 | Version: 0.03 | |
12 | Release: 1 | |
13 | License: Same as Perl itself | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: 281ec7f40432bb100f36ebe38632ec66 | |
17 | BuildRequires: perl-devel >= 5.8.0 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | %if 0%{!?_without_autodeps:1}%{?_with_tests:1} | |
20 | BuildRequires: perl-Lingua-EN-Inflect >= 1.88 | |
21 | %endif | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | UNIVERSAL::moniker enables classes to make a good guess at what they | |
27 | would be called in the real world. | |
28 | ||
29 | %prep | |
30 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
31 | ||
32 | %build | |
33 | %{__perl} Makefile.PL \ | |
34 | INSTALLDIRS=vendor | |
35 | %{__make} | |
36 | %{?_with_tests:%{__make} test} | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %{__make} install \ | |
42 | DESTDIR=$RPM_BUILD_ROOT | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc README | |
50 | %{perl_vendorlib}/%{pdir}/*.pm | |
51 | %{_mandir}/man3/* |