%global pkg_name Test-ISBN %global pkg_version 2.01 %global rpm_pkg_version 2.01 %global rpm_pkg_release 1.n0i.5 Summary: Check International Standard Book Numbers 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/B/BD/BDFOY/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) %{!?_without_test:BuildRequires: perl(Business::ISBN)} %{!?_without_test:BuildRequires: perl(Test::Builder::Tester)} %{!?_without_test:BuildRequires: perl(Test::More)} %description This module allows you to check International Standard Book Numbers. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} # fix man pages file names pushd $RPM_BUILD_ROOT%{_mandir}/man3 for p in ISBN* ; do %{__mv} "$p" "Test::$p" done popd %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes LICENSE README %changelog * Tue Oct 30 2007 Marius Feraru - 2.01-1.n0i.5 - version 2.01 * Mon Aug 20 2007 Marius FERARU - 1.09-2.n0i.4 - proper man pages file names - proper license (for Fedora) * Tue May 22 2007 Marius Feraru - 1.09-1.n0i.3 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - version 1.09 * Fri May 19 2006 Marius Feraru - 1.07-1.n0i.2 - version 1.07 * Sat Jul 23 2005 Marius Feraru 1.06-3.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7