update to 0.0009
This commit is contained in:
parent
7568770271
commit
b42eecebba
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
Devel-Hide-0.0008.tar.gz
|
Devel-Hide-0.0008.tar.gz
|
||||||
|
/Devel-Hide-0.0009.tar.gz
|
||||||
|
@ -1,15 +1,11 @@
|
|||||||
Name: perl-Devel-Hide
|
Name: perl-Devel-Hide
|
||||||
Version: 0.0008
|
Version: 0.0009
|
||||||
Release: 13%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Forces the unavailability of specified Perl modules (for testing)
|
Summary: Forces the unavailability of specified Perl modules (for testing)
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://search.cpan.org/dist/Devel-Hide/
|
URL: http://search.cpan.org/dist/Devel-Hide/
|
||||||
Source0: http://www.cpan.org/authors/id/F/FE/FERREIRA/Devel-Hide-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/F/FE/FERREIRA/Devel-Hide-%{version}.tar.gz
|
||||||
# 'defined(@array)' is deprecated - avoid warnings
|
|
||||||
# see https://rt.cpan.org/Public/Bug/Display.html?id=74225
|
|
||||||
Patch0: rt74225.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
@ -24,35 +20,32 @@ installed or not).
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Devel-Hide-%{version}
|
%setup -q -n Devel-Hide-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
||||||
|
|
||||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
%{perl_vendorlib}/*
|
%{perl_vendorlib}/*
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 03 2013 Iain Arnell <iarnell@gmail.com> 0.0009-1
|
||||||
|
- update to latest upstream
|
||||||
|
- remove rt74225.patch as it's fixed in latest release
|
||||||
|
- clean up spec for modern rpmbuild
|
||||||
|
|
||||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0008-13
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0008-13
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
diff -up Devel-Hide-0.0008/lib/Devel/Hide.pm.orig Devel-Hide-0.0008/lib/Devel/Hide.pm
|
|
||||||
--- Devel-Hide-0.0008/lib/Devel/Hide.pm.orig 2007-11-15 07:45:02.000000000 -0700
|
|
||||||
+++ Devel-Hide-0.0008/lib/Devel/Hide.pm 2012-06-28 05:27:24.000000000 -0600
|
|
||||||
@@ -101,7 +101,7 @@ sub _push_hidden {
|
|
||||||
BEGIN {
|
|
||||||
|
|
||||||
# unless @HIDDEN was user-defined elsewhere, set default
|
|
||||||
- if ( !defined @HIDDEN && $ENV{DEVEL_HIDE_PM} ) {
|
|
||||||
+ if ( !@HIDDEN && $ENV{DEVEL_HIDE_PM} ) {
|
|
||||||
_push_hidden( split q{ }, $ENV{DEVEL_HIDE_PM} );
|
|
||||||
|
|
||||||
# NOTE. "split ' ', $s" is special. Read "perldoc -f split".
|
|
Loading…
Reference in New Issue
Block a user