[perl-Contextual-Return] General cleanup, drop provide of perl(DB)

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

 



commit 778715108db7f7499235c18438a3e5dd22ebeecb
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Tue Apr 19 10:34:08 2011 +0100

    General cleanup, drop provide of perl(DB)
    
    - Filter provides in a way that works with rpm >= 4.9
    - Fix typo in %summary
    - Fix argument order for find with -depth
    - Run the whole test suite
    - Use DESTDIR rather than PERL_INSTALL_ROOT
    - Drop buildroot specification and cleaning, no longer needed

 filter-provides.sh          |    3 --
 perl-Contextual-Return.spec |   63 ++++++++++++++++++++----------------------
 2 files changed, 30 insertions(+), 36 deletions(-)
---
diff --git a/perl-Contextual-Return.spec b/perl-Contextual-Return.spec
index 994deff..a8fe394 100644
--- a/perl-Contextual-Return.spec
+++ b/perl-Contextual-Return.spec
@@ -1,28 +1,25 @@
-Name:     perl-Contextual-Return
-Version:  0.2.1 
-Release:  8%{?dist}
-Summary:  Create context-senstive return values
-
-Group:    Development/Libraries
-License:  GPL+ or Artistic
-URL:      http://search.cpan.org/dist/Contextual-Return
-
-Source0: http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Contextual-Return-v%{version}.tar.gz
-
-Source98: filter-provides.sh
-%define __perl_provides %{SOURCE98}
-
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
+Name:           perl-Contextual-Return
+Version:        0.2.1 
+Release:        9%{?dist}
+Summary:        Create context-sensitive return values
+Group:          Development/Libraries
+License:        GPL+ or Artistic
+URL:            http://search.cpan.org/dist/Contextual-Return
+Source0:        http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Contextual-Return-v%{version}.tar.gz
 BuildArch:      noarch 
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(Test::More), perl(Want), perl(version)
 BuildRequires:  perl(Test::Pod), perl(Test::Pod::Coverage)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?filter_setup:
+%filter_from_provides /^perl(DB)/d
+%?perl_default_filter
+}
 
-Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
-This module allows you to define return values of a perl sub which are
+This module allows you to define return values of a perl sub that are
 appropriate given the calling context.
 
 
@@ -36,38 +33,38 @@ 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 d -depth -exec rmdir {} 2>/dev/null ';'
-
-%{_fixperms} %{buildroot}/*
+find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
+%{_fixperms} %{buildroot}
 
 
 %check
-# some incopatibility in perl?
-rm -rf t/fail.t
 make test
 
 
-%clean
-rm -rf %{buildroot}
-
-
 %files
 %defattr(-,root,root,-)
 %doc Changes README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*.3*
+%{perl_vendorlib}/Contextual/
+%{_mandir}/man3/Contextual::Return.3pm*
+%{_mandir}/man3/Contextual::Return::Failure.3pm*
 
 
 %changelog
+* Tue Apr 19 2011 Paul Howarth <paul@xxxxxxxxxxxx> - 0.2.1-9
+- Filter provides in a way that works with rpm >= 4.9
+- Fix typo in %%summary
+- Fix argument order for find with -depth
+- Run the whole test suite
+- Use DESTDIR rather than PERL_INSTALL_ROOT
+- Drop buildroot specification and cleaning, no longer needed
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.2.1-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
 * Wed Dec 15 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> - 0.2.1-7
-- 661697 rebuild for fixing problems with vendorach/lib
+- Rebuild to fix problems with vendorarch/lib (#661697)
 
 * Fri Apr 30 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> - 0.2.1-6
 - Mass rebuild with perl-5.12.0
--
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