]>
Commit | Line | Data |
---|---|---|
7627f7fc AG |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Class | |
7 | %define pnam Inspector | |
7e7fbcdc | 8 | Summary: Class::Inspector - provides information about classes |
9 | Summary(pl): Class::Inspector - dostarczenie informacji o klasach | |
7627f7fc AG |
10 | Name: perl-Class-Inspector |
11 | Version: 1.06 | |
12 | Release: 1 | |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: 55392a383dc820b9052a058c9bc0c750 | |
18 | URL: http://search.cpan.org/dist/Class-Imspector/ | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl(File::Spec) >= 0.82 | |
23 | BuildRequires: perl(Test::More) | |
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 | arn'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 | |
37 | # TODO | |
38 | ||
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
43 | %{__perl} Makefile.PL \ | |
44 | INSTALLDIRS=vendor | |
45 | ||
46 | %{__make} | |
47 | ||
48 | %{?with_tests:%{__make} test} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc Changes README | |
62 | %{perl_vendorlib}/Class/*.pm | |
63 | %{_mandir}/man3/* |