3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Sub::Identify - Retrieve names of code references
9 Summary(pl.UTF-8): Sub::Identify - odtwarzanie nazw z referencji do kodu
10 Name: perl-Sub-Identify
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Sub/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: cfa7c0d73090a2b4fb75d8a581a3ca81
18 URL: http://search.cpan.org/dist/Sub-Identify/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Sub::Identify allows you to retrieve the real name of code references.
25 For this, it uses Perl's introspection mechanism, provided by the B
28 %description -l pl.UTF-8
29 Sub::Identify umożliwia odtworzenie prawdziwej nazwy z referencji do
30 kodu. W tym celu wykorzystuje mechanizm obserwacyjny Perla
31 udostępniany przez moduł B.
34 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
46 %{__make} pure_install \
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{perl_vendorarch}/Sub/*.pm
56 %dir %{perl_vendorarch}/auto/Sub/Identify
57 %attr(755,root,root) %{perl_vendorarch}/auto/Sub/Identify/Identify.so
58 %{_mandir}/man3/Sub::Identify.3pm*