]> git.pld-linux.org Git - packages/perl-Class-Inspector.git/blob - perl-Class-Inspector.spec
- updated dependencies
[packages/perl-Class-Inspector.git] / perl-Class-Inspector.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Class
6 %define         pnam    Inspector
7 Summary:        Class::Inspector - provides information about classes
8 Summary(pl.UTF-8):      Class::Inspector - dostarczenie informacji o klasach
9 Name:           perl-Class-Inspector
10 Version:        1.36
11 Release:        1
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
16 # Source0-md5:  084c3aeec023639d21ecbaf7d4460b21
17 URL:            https://metacpan.org/release/Class-Inspector
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRequires:  rpmbuild(macros) >= 1.745
21 %if %{with tests}
22 BuildRequires:  perl(File::Spec) >= 0.82
23 BuildRequires:  perl-Test-Simple >= 0.98
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Class::Inspector allows you to get information about a loaded class.
30 Most or all of this information can be found in other ways, but they
31 aren't always very friendly, and usually involve a relatively high
32 level of Perl wizardry, or strange and unusual looking code.
33 Class::Inspector attempts to provide an easier, more friendly
34 interface to this information.
35
36 %description -l pl.UTF-8
37 Class::Inspector umożliwia pobieranie informacji o załadowanych
38 klasach. Większość z tych informacji można znaleźć na inne sposoby,
39 ale nie zawsze są one przyjazne i zwykle wymagają dosyć dużej
40 znajomości perlowej magii lub dziwnego i niezwykle wyglądającego kodu.
41 Class::Inspector próbuje dostarczyć łatwiejszy, bardziej przyjazny
42 interfejs do tych informacji.
43
44 %prep
45 %setup -q -n %{pdir}-%{pnam}-%{version}
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50
51 %{__make}
52
53 %{?with_tests:%{__make} test}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc Changes README
67 %{perl_vendorlib}/Class/Inspector.pm
68 %{perl_vendorlib}/Class/Inspector/Functions.pm
69 %{_mandir}/man3/Class::Inspector*.3pm*
This page took 0.059309 seconds and 4 git commands to generate.