diff --git a/.cvsignore b/.cvsignore index e69de29..81be8b9 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +boolean-0.20.tar.gz diff --git a/perl-boolean.spec b/perl-boolean.spec new file mode 100644 index 0000000..1bbe09c --- /dev/null +++ b/perl-boolean.spec @@ -0,0 +1,54 @@ +Name: perl-boolean +Version: 0.20 +Release: 2%{?dist} +Summary: Boolean support for Perl +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/boolean/ +Source0: http://www.cpan.org/authors/id/I/IN/INGY/boolean-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl >= 0:5.005003 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Most programming languages have a native Boolean data type. Perl does not. + +%prep +%setup -q -n boolean-%{version} +iconv -f iso8859-1 -t utf-8 README >README.conv && mv -f README.conv README + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Nov 19 2008 Iain Arnell 0.20-2 +- BR Test::More + +* Tue Nov 18 2008 Iain Arnell 0.20-1 +- Specfile autogenerated by cpanspec 1.77. diff --git a/sources b/sources index e69de29..bb95001 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a9dcfaa89e6b3ee52e0bb6e2d6b6c438 boolean-0.20.tar.gz