|
|
ab70b2 |
Name: perl-Switch
|
|
|
ab70b2 |
Version: 2.16
|
|
|
060dbf |
Release: 7%{?dist}
|
|
|
ab70b2 |
Summary: A switch statement for Perl
|
|
|
ab70b2 |
Group: Development/Libraries
|
|
|
ab70b2 |
License: GPL+ or Artistic
|
|
|
ab70b2 |
URL: http://search.cpan.org/dist/Switch/
|
|
|
ab70b2 |
Source0: http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Switch-%{version}.tar.gz
|
|
|
ab70b2 |
# From OpenSUSE, fix test failures with perl 5.14
|
|
|
ab70b2 |
Patch0: Switch-2.16-perl514.patch
|
|
|
ab70b2 |
BuildRequires: perl
|
|
|
ab70b2 |
%if 0%(perl -e 'print $] > 5.011')
|
|
|
ab70b2 |
BuildRequires: perl(deprecate)
|
|
|
ab70b2 |
%endif
|
|
|
ab70b2 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
ab70b2 |
BuildRequires: perl(Filter::Util::Call)
|
|
|
ab70b2 |
BuildRequires: perl(if)
|
|
|
ab70b2 |
BuildRequires: perl(overload)
|
|
|
ab70b2 |
BuildRequires: perl(Text::Balanced)
|
|
|
ab70b2 |
BuildRequires: perl(vars)
|
|
|
ab70b2 |
BuildRequires: perl(strict)
|
|
|
ab70b2 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
ab70b2 |
Requires: perl(overload)
|
|
|
ab70b2 |
BuildArch: noarch
|
|
|
ab70b2 |
|
|
|
ab70b2 |
%description
|
|
|
ab70b2 |
Switch.pm provides the syntax and semantics for an explicit case mechanism for
|
|
|
ab70b2 |
Perl. The syntax is minimal, introducing only the keywords C<switch> and
|
|
|
ab70b2 |
C<case> and conforming to the general pattern of existing Perl control
|
|
|
ab70b2 |
structures. The semantics are particularly rich, allowing any one (or more) of
|
|
|
ab70b2 |
nearly 30 forms of matching to be used when comparing a switch value with its
|
|
|
ab70b2 |
various cases.
|
|
|
ab70b2 |
|
|
|
ab70b2 |
%prep
|
|
|
ab70b2 |
%setup -q -n Switch-%{version}
|
|
|
ab70b2 |
%patch0 -p1 -b .514
|
|
|
ab70b2 |
|
|
|
ab70b2 |
%build
|
|
|
ab70b2 |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
ab70b2 |
make %{?_smp_mflags}
|
|
|
ab70b2 |
|
|
|
ab70b2 |
%install
|
|
|
ab70b2 |
make pure_install DESTDIR=%{buildroot}
|
|
|
ab70b2 |
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
ab70b2 |
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
|
|
|
ab70b2 |
chmod -R u+w %{buildroot}/*
|
|
|
ab70b2 |
|
|
|
ab70b2 |
%check
|
|
|
ab70b2 |
make test
|
|
|
ab70b2 |
|
|
|
ab70b2 |
%files
|
|
|
ab70b2 |
%doc Changes README
|
|
|
ab70b2 |
%{perl_vendorlib}/Switch.pm
|
|
|
ab70b2 |
%{_mandir}/man3/*.3*
|
|
|
ab70b2 |
|
|
|
ab70b2 |
%changelog
|
|
|
060dbf |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.16-7
|
|
|
060dbf |
- Mass rebuild 2013-12-27
|
|
|
060dbf |
|
|
|
ab70b2 |
* Fri Jul 12 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2.16-6
|
|
|
ab70b2 |
- Specify all dependencies
|
|
|
ab70b2 |
- Use DESTDIR rather than PERL_INSTALL_ROOT
|
|
|
ab70b2 |
- Remove buildroot cleaning
|
|
|
ab70b2 |
|
|
|
ab70b2 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.16-5
|
|
|
ab70b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
ab70b2 |
|
|
|
ab70b2 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.16-4
|
|
|
ab70b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
ab70b2 |
|
|
|
ab70b2 |
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 2.16-3
|
|
|
ab70b2 |
- Perl 5.16 rebuild
|
|
|
ab70b2 |
|
|
|
ab70b2 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.16-2
|
|
|
ab70b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
ab70b2 |
|
|
|
ab70b2 |
* Wed Aug 10 2011 Tom Callaway <spot@fedoraproject.org> - 2.16-1
|
|
|
ab70b2 |
- initial package
|