%global pkg_name File-Which %global pkg_version 1.22 %global rpm_pkg_version 1.22 %global rpm_pkg_release 1.n0i.3 Summary: Portable implementation of which(1) Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/P/PE/PEREINAR/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(File::Spec) >= 0.6 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) >= 0.47 %description File::Which was created to be able to get the paths to executable programs on systems under which the `which' program wasn't implemented in the shell. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf %{buildroot} %{perl_install} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{perl_files} %doc Changes README %changelog * Fri Dec 08 2017 Marius Feraru - 1.22-1.n0i.3 - version 1.22 * Tue May 22 2007 Marius Feraru - 0.05-2.n0i.2 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - mass rebuild * Thu Jul 28 2005 Marius Feraru 0.05-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7