]>
Commit | Line | Data |
---|---|---|
73ffa4e2 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
474cf122 | 4 | |
1e360d7c | 5 | %define pdir Class |
6 | %define pnam Loader | |
aaa816a4 | 7 | Summary: Class::Loader - load modules and create objects on demand |
a11f14a5 | 8 | Summary(pl.UTF-8): Class::Loader - wczytywanie modułów i tworzenie obiektów na żądanie |
1aca4995 | 9 | Name: perl-Class-Loader |
912867d9 | 10 | Version: 2.03 |
10c90c0c | 11 | Release: 2 |
aaa816a4 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
1aca4995 | 14 | Group: Development/Languages/Perl |
b8e07f41 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
912867d9 | 16 | # Source0-md5: 2e2ace3429380e2dad2f0e82137511b8 |
474cf122 | 17 | URL: http://search.cpan.org/dist/Class-Loader/ |
c5ccf5c4 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
12e3f31d | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
1aca4995 GS |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
aaa816a4 | 24 | Class::Loader is an inheritable class that provides a method, _load(), |
25 | to load a module from disk and construct an object by calling its | |
26 | constructor. | |
1aca4995 | 27 | |
a76c1bad JR |
28 | %description -l pl.UTF-8 |
29 | Class::Loader jest dziedziczoną klasą udostępniającą metodę _load(), | |
30 | służącą do wczytania modułu z dysku i stworzenia obiektu poprzez | |
31 | wywołanie jego konstruktora. | |
1aca4995 GS |
32 | |
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
12e3f31d | 37 | %{__perl} Makefile.PL \ |
baaffd76 | 38 | INSTALLDIRS=vendor |
1aca4995 GS |
39 | %{__make} |
40 | ||
73ffa4e2 | 41 | %{?with_tests:%{__make} test} |
42 | ||
1aca4995 GS |
43 | %install |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
73ffa4e2 | 46 | %{__make} install \ |
47 | DESTDIR=$RPM_BUILD_ROOT | |
1aca4995 | 48 | |
1aca4995 GS |
49 | %clean |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
c125c8a6 | 54 | %doc Changes |
12e3f31d | 55 | %{perl_vendorlib}/Class/Loader.pm |
1aca4995 | 56 | %{_mandir}/man3/* |