update to 0.77

This commit is contained in:
Iain Arnell 2011-10-08 09:27:53 +02:00
parent ceace9201f
commit 322d2b91bf
3 changed files with 11 additions and 19 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
Devel-Size-0.71.tar.gz
/Devel-Size-0.77.tar.gz

View File

@ -1,6 +1,6 @@
Name: perl-Devel-Size
Version: 0.71
Release: 8%{?dist}
Version: 0.77
Release: 1%{?dist}
Summary: Perl extension for finding the memory usage of Perl variables
License: GPL+ or Artistic
Group: Development/Libraries
@ -8,7 +8,6 @@ URL: http://search.cpan.org/dist/Devel-Size/
Source0: http://www.cpan.org/modules/by-module/Devel/Devel-Size-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# core
@ -19,11 +18,7 @@ BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
# don't "provide" private Perl libs
%global _use_internal_dependency_generator 0
%global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u
%global __find_provides /bin/sh -c "%{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P}"
%global __find_requires /bin/sh -c "%{__deploop R}"
%?perl_default_filter
%description
This module figures out the real sizes of Perl variables in bytes. Call
@ -34,17 +29,12 @@ variable is a hash or an array, use a reference when calling.
%prep
%setup -q -n Devel-Size-%{version}
# fix permissions....
find . -type f -exec chmod -c -x {} +
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
@ -55,17 +45,18 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%check
make test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc CHANGES t/
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Devel*
%{_mandir}/man3/*
%changelog
* Sat Oct 08 2011 Iain Arnell <iarnell@gmail.com> 0.77-1
- update to latest upstream version
- clean up spec for modern rpmbuild
- use perl_default_filter
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.71-8
- Perl mass rebuild

View File

@ -1 +1 @@
9504441ae609b39d70384a9fdc186362 Devel-Size-0.71.tar.gz
3ed95f459e9fab52d6d2b3aebf9343fd Devel-Size-0.77.tar.gz