[perl-Devel-Leak] Clean specfile, apply perl_default_filter.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit c927185bfa81bce3c326eeeeed2012e98c7325d6
Author: Marcela Mašláňová <mmaslano@xxxxxxxxxx>
Date:   Wed Nov 14 11:23:35 2012 +0100

    Clean specfile, apply perl_default_filter.

 perl-Devel-Leak.spec |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/perl-Devel-Leak.spec b/perl-Devel-Leak.spec
index 136852f..6127257 100644
--- a/perl-Devel-Leak.spec
+++ b/perl-Devel-Leak.spec
@@ -1,12 +1,11 @@
 Name:           perl-Devel-Leak
 Version:        0.03
-Release:        19%{?dist}
+Release:        20%{?dist}
 Summary:        Utility for looking for perl objects that are not reclaimed
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Devel-Leak/
 Source0:        http://www.cpan.org/authors/id/N/NI/NI-S/Devel-Leak-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  perl(ExtUtils::MakeMaker)
 # Run-time:
 BuildRequires:  perl(base)
@@ -15,6 +14,8 @@ BuildRequires:  perl(DynaLoader)
 BuildRequires:  perl(Test)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+%{?perl_default_filter}
+
 %description
 This module provides a basic way to discover if a piece of perl code
 is allocating perl data and not releasing them again.
@@ -27,9 +28,7 @@ is allocating perl data and not releasing them again.
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+make pure_install DESTDIR=$RPM_BUILD_ROOT
 
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
 find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
@@ -40,17 +39,21 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc README
 %{perl_vendorarch}/auto/*
 %{perl_vendorarch}/Devel*
 %{_mandir}/man3/*
 
 %changelog
+* Wed Nov 14 2012 Marcela Mašláňová <mmaslano@xxxxxxxxxx> - 0.03-20
+- Remove BuildRoot definition.
+- Remove BuildRoot cleaning.
+- Replace PERL_INSTALL_ROOT with DESTDIR.
+- Remove cleaning empty directories.
+- Remove %defattr.
+- Do not export private library (Leak.so()).
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.03-19
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux