perl-Error/perl-Error.spec

Name: perl-Error
Summary: Error/exception handling in an OO-ish way
Version: 0.17024
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Error/
Description: The Error package provides two interfaces. Firstly Error provides a procedural interface to exception handling. Secondly Error is a base class for errors/exceptions that can either be thrown, for subsequent catch, or can simply be recorded.

CentOS 7 x86_64

No build yet for CentOS 7 x86_64.

Build Status

CentOS 6 x86_64

No build yet for CentOS 6 x86_64.

Build Status

Contents

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

# $Id$
# Authority: dag
# Upstream: Shlomi Fish <shlomif$iglu,org,il>

### EL6 ships with perl-Error-0.17015-4.el6
%{?el6:# Tag: rfx}

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

%define real_name Error

Summary: Error/exception handling in an OO-ish way
Name: perl-Error
Version: 0.17024
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Error/

Source: http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/Error-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl(Scalar::Util)
BuildRequires: perl >= v5.6.0
BuildRequires: perl(warnings)
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(Scalar::Util)
Requires: perl >= v5.6.0
Requires: perl(warnings)

%filter_from_requires /^perl*/d
%filter_setup

%description
The Error package provides two interfaces. Firstly Error provides a procedural
interface to exception handling. Secondly Error is a base class for
errors/exceptions that can either be thrown, for subsequent catch, or can
simply be recorded.

%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} {} \;

### Clean up docs
find examples/ -type f -exec %{__chmod} a-x {} \;

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

%files
%defattr(-, root, root, 0755)
%doc ChangeLog MANIFEST META.yml README examples/
%doc %{_mandir}/man3/Error.3pm*
%doc %{_mandir}/man3/Error::Simple.3pm*
%{perl_vendorlib}/Error/
%{perl_vendorlib}/Error.pm

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

* Mon Dec 17 2012 David Hrbáč <david@hrbac.cz> - 0.17019-1
- new upstream release

* Thu Feb 16 2012 David Hrbáč <david@hrbac.cz> - 0.17017-1
- new upstream release

* Wed Dec 30 2009 Christoph Maser <cmr@financial.com> - 0.17016-1
- Updated to version 0.17016.

* Tue Oct 07 2008 Dag Wieers <dag@wieers.com> - 0.17015-1
- Updated to release 0.17015.

* Mon Jun 23 2008 Dag Wieers <dag@wieers.com> - 0.17014-1
- Updated to release 0.17014.

* Sat Jan 26 2008 Dag Wieers <dag@wieers.com> - 0.17012-1
- Updated to release 0.17012.

* Thu Dec 27 2007 Dag Wieers <dag@wieers.com> - 0.17011-1
- Updated to release 0.17011.

* Sat Nov 24 2007 Dag Wieers <dag@wieers.com> - 0.17010-1
- Updated to release 0.17010.

* Fri Nov 09 2007 Dag Wieers <dag@wieers.com> - 0.17009-1
- Updated to release 0.17009.

* Tue Aug 07 2007 Dag Wieers <dag@wieers.com> - 0.17008-2
- Disabled auto-requires for examples/.

* Mon Apr 16 2007 Dries Verachtert <dries@ulyssis.org> - 0.17008-1
- Updated to release 0.17008.

* Fri Mar 19 2004 Matthias Saou <http://freshrpms.net/> 0.15-1
- Initial RPM release.