3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: File::Which Perl module - portable implementation of the `which' utility
9 Summary(pl): Modu³ Perla File::Which - przeno¶na implementacja programu `which'
13 License: GPL or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 BuildRequires: perl-devel >= 5.6
17 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 File::Which Perl module was created to be able to get the paths to
23 executable programs on systems under which the `which' program wasn't
24 implemented in the shell.
27 Modu³ Perla File::Which powsta³, aby umo¿liwiæ znajdywanie scie¿ki
28 zadanego programu w systemach, w których program `which' nie jest
32 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %{__perl} Makefile.PL \
38 %{!?_without_tests:%{__make} test}
41 rm -rf $RPM_BUILD_ROOT
44 DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
53 %{perl_vendorlib}/File/*.pm