[521] | 1 | %define perl_sitelib %(eval "`perl -V:installsitelib`"; echo $installsitelib) |
---|
| 2 | |
---|
| 3 | Summary: Report errors from perspective of caller of a "clan" of modules for Perl |
---|
| 4 | Name: perl-Carp-Clan |
---|
[3164] | 5 | Version: 6.04 |
---|
[521] | 6 | Release: 1%{?_dist_release} |
---|
| 7 | License: distributable |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | Source0: http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Carp-Clan-%{version}.tar.gz |
---|
| 10 | URL: http://search.cpan.org/~stbey/Carp-Clan/ |
---|
| 11 | |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | BuildArch: noarch |
---|
| 14 | BuildRequires: perl >= 5 |
---|
| 15 | BuildRequires: perl-Test-Exception |
---|
| 16 | Requires: perl >= 5 |
---|
| 17 | Conflicts: perl-Bit-Vector <= 6.3 |
---|
| 18 | |
---|
[3164] | 19 | Vendor: Project Vine |
---|
| 20 | Distribution: Vine Linux |
---|
| 21 | |
---|
[521] | 22 | %description |
---|
| 23 | This module reports errors from the perspective of the caller of a |
---|
| 24 | "clan" of modules, similar to "Carp.pm" itself. But instead of giving |
---|
| 25 | it a number of levels to skip on the calling stack, you give it a |
---|
| 26 | pattern to characterize the package names of the "clan" of modules |
---|
| 27 | which shall never be blamed for any error. :-) |
---|
| 28 | |
---|
| 29 | So these modules stick together like a "clan" and any error which |
---|
| 30 | occurs will be blamed on the "outsider" script or modules not belonging |
---|
| 31 | to this "clan". |
---|
| 32 | |
---|
| 33 | # Provide perl-specific find-{provides,requires}. |
---|
| 34 | %define __find_provides /usr/lib/rpm/find-provides.perl |
---|
| 35 | %define __find_requires /usr/lib/rpm/find-requires.perl |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | %setup -q -n Carp-Clan-%{version} |
---|
| 39 | |
---|
| 40 | %build |
---|
| 41 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
| 42 | make |
---|
| 43 | |
---|
| 44 | %install |
---|
| 45 | rm -rf %{buildroot} |
---|
| 46 | make DESTDIR=%{buildroot} pure_install |
---|
| 47 | |
---|
| 48 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
| 49 | |
---|
| 50 | find %{buildroot}%{_prefix} -type f -print | |
---|
| 51 | sed "s@^%{buildroot}@@g" | |
---|
| 52 | grep -v perllocal.pod | |
---|
| 53 | grep -v %{_mandir} | |
---|
| 54 | grep -v "\.packlist" > %{name}-filelist |
---|
| 55 | if [ "$(cat %{name}-filelist)X" = "X" ] ; then |
---|
| 56 | echo "ERROR: EMPTY FILE LIST" |
---|
| 57 | exit -1 |
---|
| 58 | fi |
---|
| 59 | |
---|
| 60 | %check |
---|
| 61 | make test |
---|
| 62 | |
---|
| 63 | %clean |
---|
| 64 | rm -rf %{buildroot} |
---|
| 65 | |
---|
| 66 | %files -f %{name}-filelist |
---|
| 67 | %defattr(-,root,root) |
---|
[3164] | 68 | %doc Changes license/Artistic.txt license/GNU_GPL.txt README |
---|
[521] | 69 | %dir %{perl_vendorlib}/Carp |
---|
| 70 | %{_mandir}/man3/Carp::Clan.3pm* |
---|
| 71 | |
---|
| 72 | %changelog |
---|
[3164] | 73 | * Mon Mar 28 2011 IWAI, Masaharu <iwai@alib.jp> 6.04-1 |
---|
| 74 | - new upstrem release |
---|
| 75 | - add Vendor and Distribution tags |
---|
| 76 | - update files in doc |
---|
| 77 | |
---|
[521] | 78 | * Sat Nov 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.00-1vl5 |
---|
| 79 | - new upstream release |
---|
| 80 | - addede BuildRequires: perl-Test-Exception |
---|
| 81 | |
---|
| 82 | * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 5.3-1vl5 |
---|
| 83 | - applied new versioning policy |
---|
| 84 | - built with perl-5.10.0 |
---|
| 85 | |
---|
| 86 | * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 5.3-0vl1 |
---|
| 87 | - initial release |
---|
| 88 | |
---|