File perl-boolean.spec of Package perl-boolean
Name: perl-boolean
Version: 0.46
Release: 2
Summary: Provides Boolean data type.
License: perl_5
URL: https://metacpan.org/pod/distribution/boolean/lib/boolean.pod
Source: https://cpan.metacpan.org/authors/id/I/IN/INGY/boolean-0.46.tar.gz
Source1: perl-rpmlintrc
#
BuildRequires: perl(ExtUtils::MakeMaker)
# BuildRequires: perl(Test::Deep)
# BuildRequires: perl(Moo)
#BuildRequires: perl(Tie::IxHash)
#
# BuildRequires: perl(JSON::MaybeXS)
#BuildRequires: perl(Path::Tiny)
#BuildRequires: perl(Test::More)
#BuildRequires: perl(Carp)
#BuildRequires: perl(Test::Pod) >= 1.14
#BuildRequires: perl(Test::Pod::Coverage) >= 1.04
Requires: perl
BuildArch: noarch
Group: perl/modules
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?perl_default_filter}
%description
Most programming languages have a native Boolean data type. Perl does not.
Perl has a simple and well known Truth System.
%prep
%setup -q -n boolean-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
# %if 0%{?suse_version} == 1110
# make DESTDIR=%{buildroot}
#%else
make pure_install DESTDIR=$RPM_BUILD_ROOT
#%endif
find %{buildroot} -type f -name "perllocal.pod" -exec rm -f {} \;
#find %{buildroot} -type f -name ".packlist" -exec rm -f {} \;
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
%files
%defattr(-,root,root)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog