perl-Alias/perl-Alias.spec

Name: perl-Alias
Summary: Performs aliasing services
Version: 2.32
Release: 1.2
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Alias/
Description: This module performs aliasing services. You may find this module useful if you: * are tired of dereferencing hash-based object attributes * wish perl could make-do with fewer $, -> and {} things * are a little scared of using typeglobs * want the freedom to put what you want, when you want in the symbol table without having to deal with wierd syntax * need to use scalar constants in your program since you don't trust yourself from changing $PI

CentOS 7 x86_64

The build was not successful.

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: dries
# Upstream: Gurusamy Sarathy <gsar$ActiveState,com>

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

%define real_name Alias

Summary: Performs aliasing services
Name: perl-Alias
Version: 2.32
Release: 1.2%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Alias/

Source: http://www.cpan.org/modules/by-module/Alias/Alias-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)

%description
This module performs aliasing services.
You may find this module useful if you:
   * are tired of dereferencing hash-based object attributes
   * wish perl could make-do with fewer $, -> and {} things
   * are a little scared of using typeglobs
   * want the freedom to put what you want, when you want in
     the symbol table without having to deal with wierd syntax
   * need to use scalar constants in your program since you don't
     trust yourself from changing $PI

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

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

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

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

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

%files
%defattr(-, root, root, 0755)
%doc Changes README Todo
%doc %{_mandir}/man3/*.3pm*
%{perl_vendorarch}/Alias.pm
%{perl_vendorarch}/auto/Alias/

%changelog
* Sat Apr  9 2005 Dries Verachtert <dries@ulyssis.org> - 2.32-1
- Initial package.