]>
Commit | Line | Data |
---|---|---|
83945e91 | 1 | # |
2 | # Conditional build: | |
b6be99a3 | 3 | %bcond_without tests # do not perform "make test" |
83945e91 | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
b6be99a3 | 6 | %define pdir Class |
7 | %define pnam Factory-Util | |
36f913d3 | 8 | Summary: Class::Factory::Util - provide utility methods for factory classes |
c738f914 | 9 | Summary(pl.UTF-8): Class::Factory::Util - dostarczanie metod narzędziowych dla klas przemysłowych |
83945e91 | 10 | Name: perl-Class-Factory-Util |
11 | Version: 1.6 | |
abeed1d3 | 12 | Release: 2 |
83945e91 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: 88b4471f9c22abcc1192f87be013cc18 | |
36f913d3 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
83945e91 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | This module exports a method that is useful for factory classes. | |
25 | ||
9d3db9f5 JR |
26 | %description -l pl.UTF-8 |
27 | Ten moduł eksportuje metodę, która może być przydatna dla klas | |
28 | przemysłowych. | |
83945e91 | 29 | |
30 | %prep | |
31 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
32 | ||
33 | %build | |
34 | %{__perl} Makefile.PL \ | |
35 | INSTALLDIRS=vendor | |
36 | %{__make} | |
37 | ||
38 | %{?with_tests:%{__make} test} | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %{__make} install \ | |
44 | DESTDIR=$RPM_BUILD_ROOT | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc Changes | |
abeed1d3 | 52 | %dir %{perl_vendorlib}/Class/Factory |
53 | %{perl_vendorlib}/Class/Factory/*.pm | |
83945e91 | 54 | %{_mandir}/man3/* |