perl-boolean/perl-boolean.spec

Name: perl-boolean
Summary: Boolean support for Perl
Version: 0.28
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/boolean/
Description: Most programming languages have a native "Boolean" data type. Perl does not. This module provides basic Boolean support, by defining two special objects: "true" and "false".

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: cmr
# Upstream: Ingy döt Net <ingy$cpan,org>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name boolean

Summary: Boolean support for Perl
Name: perl-%{real_name}
Version: 0.28
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/boolean/

Source: http://www.cpan.org/authors/id/I/IN/INGY/boolean-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl >= 5.005003
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl >= 5.005003

### remove autoreq Perl dependencies
%filter_from_requires /^perl.*/d
%filter_setup

%description
Most programming languages have a native "Boolean" data type. Perl does
not.  This module provides basic Boolean support, by defining two
special objects: "true" and "false".

%prep
%setup -n %{real_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST META.yml README
%doc %{_mandir}/man3/boolean.3pm*
%{perl_vendorlib}/boolean.pm

%changelog
* Sat Apr 28 2012 Denis Fateyev <denis@fateyev.com> - 0.28-1
- Update to version 0.28
 
* Fri Dec 11 2009 Christoph Maser <cmr@financial.com> - 0.20-1
- Initial package. (using DAR)