]> git.pld-linux.org Git - packages/perl-Class-Unload.git/blame - perl-Class-Unload.spec
- pl, completed dependencies
[packages/perl-Class-Unload.git] / perl-Class-Unload.spec
CommitLineData
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
7Summary: Class::Unload - unload a class
8Summary(pl.UTF-8): Class::Unload - wyładowanie klasy
8622e893 9Name: perl-Class-Unload
44183e56 10Version: 0.11
24788a71 11Release: 1
a45f558d 12# same as perl 5
8622e893 13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
44183e56 16# Source0-md5: 0c28497de640aea4c3900fb52b7c6cb5
a45f558d
JB
17URL: https://metacpan.org/dist/Class-Unload
18BuildRequires: perl-ExtUtils-MakeMaker
8622e893 19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
a45f558d 21BuildRequires: rpmbuild(macros) >= 1.745
8622e893 22%if %{with tests}
23BuildRequires: perl-Class-Inspector
a45f558d
JB
24BuildRequires: perl-Test-Requires
25BuildRequires: perl-Test-Simple >= 0.88
8622e893 26%endif
27BuildArch: noarch
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31Unloads the given class by clearing out its symbol table and removing
80f481af 32it from INC hash.
8622e893 33
a45f558d
JB
34%description -l pl.UTF-8
35Moduł wyładowuje podaną klasę czyszcząc jego tablicę symboli i
36usuwają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
49rm -rf $RPM_BUILD_ROOT
a45f558d 50
8622e893 51%{__make} pure_install \
52 DESTDIR=$RPM_BUILD_ROOT
53
54%clean
55rm -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*
This page took 0.156458 seconds and 4 git commands to generate.