]>
Commit | Line | Data |
---|---|---|
8622e893 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
80f481af ER |
4 | |
5 | %define pdir Class | |
6 | %define pnam Unload | |
8622e893 | 7 | %include /usr/lib/rpm/macros.perl |
8622e893 | 8 | Summary: Class::Unload - Unload a class |
8622e893 | 9 | Name: perl-Class-Unload |
44183e56 | 10 | Version: 0.11 |
24788a71 | 11 | Release: 1 |
8622e893 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz | |
44183e56 | 16 | # Source0-md5: 0c28497de640aea4c3900fb52b7c6cb5 |
8622e893 | 17 | URL: http://search.cpan.org/dist/Class-Unload/ |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-Class-Inspector | |
22 | %endif | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Unloads the given class by clearing out its symbol table and removing | |
80f481af | 28 | it from INC hash. |
8622e893 | 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 | |
8622e893 | 42 | %{__make} pure_install \ |
43 | DESTDIR=$RPM_BUILD_ROOT | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc Changes | |
51 | %{perl_vendorlib}/Class/*.pm | |
52 | %{_mandir}/man3/* |