[5803] | 1 | Name: perl-Guard |
---|
| 2 | Version: 1.021 |
---|
| 3 | Release: 1%{?_dist_release} |
---|
| 4 | Summary: Safe cleanup blocks |
---|
| 5 | License: GPL+ or Artistic |
---|
| 6 | Group: Development/Libraries |
---|
| 7 | URL: http://search.cpan.org/dist/Guard/ |
---|
| 8 | Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/Guard-%{version}.tar.gz |
---|
| 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 10 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 11 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 12 | |
---|
| 13 | %description |
---|
| 14 | This module implements so-called "guards". A guard is something |
---|
| 15 | (usually an object) that "guards" a resource, ensuring that it is |
---|
| 16 | cleaned up when expected. |
---|
| 17 | |
---|
| 18 | %prep |
---|
| 19 | %setup -q -n Guard-%{version} |
---|
| 20 | |
---|
| 21 | %build |
---|
| 22 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" |
---|
| 23 | make %{?_smp_mflags} |
---|
| 24 | |
---|
| 25 | %install |
---|
| 26 | rm -rf %{buildroot} |
---|
| 27 | |
---|
| 28 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
| 29 | |
---|
| 30 | find %{buildroot} -type f -name .packlist -exec rm -f {} \; |
---|
| 31 | find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; |
---|
| 32 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
| 33 | |
---|
| 34 | %{_fixperms} %{buildroot}/* |
---|
| 35 | |
---|
| 36 | %check |
---|
| 37 | make test |
---|
| 38 | |
---|
| 39 | %clean |
---|
| 40 | rm -rf %{buildroot} |
---|
| 41 | |
---|
| 42 | %files |
---|
| 43 | %defattr(-,root,root,-) |
---|
| 44 | %doc Changes COPYING README |
---|
| 45 | %{perl_vendorarch}/auto/* |
---|
| 46 | %{perl_vendorarch}/Guard* |
---|
| 47 | %{_mandir}/man3/* |
---|
| 48 | |
---|
| 49 | %changelog |
---|
| 50 | * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.021-1 |
---|
| 51 | - initial build for Vine Linux |
---|
| 52 | |
---|
| 53 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.021-6 |
---|
| 54 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 55 | |
---|
| 56 | * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.021-5 |
---|
| 57 | - Perl mass rebuild |
---|
| 58 | |
---|
| 59 | * Fri Dec 17 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.021-4 |
---|
| 60 | - 661697 rebuild for fixing problems with vendorach/lib |
---|
| 61 | |
---|
| 62 | * Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.021-3 |
---|
| 63 | - Mass rebuild with perl-5.12.0 |
---|
| 64 | |
---|
| 65 | * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.021-2 |
---|
| 66 | - rebuild against perl 5.10.1 |
---|
| 67 | |
---|
| 68 | * Sun Nov 08 2009 Nicolas Chuavet <kwizart@fedoraproject.org> - 1.021-1 |
---|
| 69 | - Specfile autogenerated by cpanspec 1.78. |
---|