perl-Devel-SawAmpersand/perl-Devel-SawAmpersand.spec

Name: perl-Devel-SawAmpersand
Summary: Perl extension querying sawampersand variable
Version: 0.33
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Devel-SawAmpersand/
Description: There's a global variable in the perl source, called sawampersand. It gets set to true in that moment in which the parser sees one of $, $', and $&. It never can be set to false again. Trying to set it to false breaks the handling of the $, $&, and $' completely.

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: dries
# Upstream: Andreas J. K&#246;nig <andreas,koenig$anima,de>

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

%define real_name Devel-SawAmpersand

Summary: Perl extension querying sawampersand variable
Name: perl-Devel-SawAmpersand
Version: 0.33
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Devel-SawAmpersand/

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

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

%description
There's a global variable in the perl source, called sawampersand. It
gets set to true in that moment in which the parser sees one of $`, $',
and $&. It never can be set to false again. Trying to set it to false
breaks the handling of the $`, $&, and $' completely.

%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 MANIFEST META.yml SIGNATURE
%doc %{_mandir}/man3/*.3pm*
%dir %{perl_vendorarch}/B/
%{perl_vendorarch}/B/FindAmpersand.pm
%dir %{perl_vendorarch}/Devel/
%{perl_vendorarch}/Devel/SawAmpersand.pm
%{perl_vendorarch}/Devel/FindAmpersand.pm
%dir %{perl_vendorarch}/auto/Devel/
%{perl_vendorarch}/auto/Devel/SawAmpersand/

%changelog
* Mon Dec 21 2015 Dries Verachtert <dries.verachtert@dries.eu> - 0.33-1
- Updated to release 0.33.

* Wed Jan 03 2007 Dries Verachtert <dries@ulyssis.org> - 0.31-1
- Updated to release 0.31.

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