2 # TODO: - fix "make test"
6 %bcond_without autodeps # don't BR packages needed only for resolving deps
7 %bcond_with tests # do not perform "make test"
9 %include /usr/lib/rpm/macros.perl
12 Summary: Find::Lib - helper to smartly find libs to use in the filesystem tree
17 License: GPL v1+ or Artistic
18 Group: Development/Languages/Perl
19 Source0: http://www.cpan.org/modules/by-module/Find/%{pdir}-%{pnam}-%{version}.tar.gz
20 # Source0-md5: 8986f9679a88fb265a5e5cf4720f22a1
21 URL: http://search.cpan.org/dist/Find-Lib/
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 %if %{with autodeps} || %{with tests}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Helper to smartly find libs to use in the filesystem tree
34 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
47 %{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{_mandir}/man3/Find::Lib.3pm*
57 %dir %{perl_vendorlib}/Find
58 %{perl_vendorlib}/Find/Lib.pm