]>
Commit | Line | Data |
---|---|---|
8622e893 | 1 | # |
2 | # Conditional build: | |
a45f558d | 3 | %bcond_without tests # unit tests |
80f481af ER |
4 | |
5 | %define pdir Class | |
6 | %define pnam Unload | |
a45f558d JB |
7 | Summary: Class::Unload - unload a class |
8 | Summary(pl.UTF-8): Class::Unload - wyładowanie klasy | |
8622e893 | 9 | Name: perl-Class-Unload |
44183e56 | 10 | Version: 0.11 |
24788a71 | 11 | Release: 1 |
a45f558d | 12 | # same as perl 5 |
8622e893 | 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 |
a45f558d JB |
17 | URL: https://metacpan.org/dist/Class-Unload |
18 | BuildRequires: perl-ExtUtils-MakeMaker | |
8622e893 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
a45f558d | 21 | BuildRequires: rpmbuild(macros) >= 1.745 |
8622e893 | 22 | %if %{with tests} |
23 | BuildRequires: perl-Class-Inspector | |
a45f558d JB |
24 | BuildRequires: perl-Test-Requires |
25 | BuildRequires: perl-Test-Simple >= 0.88 | |
8622e893 | 26 | %endif |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Unloads the given class by clearing out its symbol table and removing | |
80f481af | 32 | it from INC hash. |
8622e893 | 33 | |
a45f558d JB |
34 | %description -l pl.UTF-8 |
35 | Moduł wyładowuje podaną klasę czyszcząc jego tablicę symboli i | |
36 | usuwając ją z hasza INC. | |
37 | ||
8622e893 | 38 | %prep |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | %{__make} | |
45 | ||
46 | %{?with_tests:%{__make} test} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
a45f558d | 50 | |
8622e893 | 51 | %{__make} pure_install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
a45f558d JB |
59 | %doc Changes README |
60 | %{perl_vendorlib}/Class/Unload.pm | |
61 | %{_mandir}/man3/Class::Unload.3pm* |