8
0

- update to 1.001

- updated docs to clarify that pushd() and tempd() croak on errors
   - if tempd() croaks, error appears at tempd()'s caller, not from within
     tempd() itself
   - warnings enabled if perl version >= 5.006
   - adds 'untaint_pattern' option with a passable default

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-pushd?expand=0&rev=5
This commit is contained in:
Stephan Kulow
2011-12-20 20:20:37 +00:00
committed by Git OBS Bridge
parent 867c128217
commit b7fde19147
3 changed files with 37 additions and 33 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e52cabef497c92efbcabe7ea327bab1c30a214011dab3cf1b2af78dbd7710593
size 10890

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Dec 20 20:09:55 UTC 2011 - coolo@suse.com
- update to 1.001
- updated docs to clarify that pushd() and tempd() croak on errors
- if tempd() croaks, error appears at tempd()'s caller, not from within
tempd() itself
- warnings enabled if perl version >= 5.006
- adds 'untaint_pattern' option with a passable default
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 1 13:32:24 UTC 2010 - coolo@novell.com Wed Dec 1 13:32:24 UTC 2010 - coolo@novell.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-File-pushd (Version 1.00) # spec file for package perl-File-pushd
# #
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -15,59 +15,56 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: perl-File-pushd Name: perl-File-pushd
Version: 1.001
Release: 0
%define cpan_name File-pushd %define cpan_name File-pushd
Summary: Change directory temporarily for a limited scope Summary: change directory temporarily for a limited scope
Version: 1.00 License: Apache-2.0
Release: 1
License: Apache Software License
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/File-pushd/ Url: http://search.cpan.org/dist/File-pushd/
Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/File-pushd-%{version}.tar.bz2 #Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-1.002.tar.gz
Source: File-pushd-1.001.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl BuildRequires: perl
BuildRequires: perl(Module::Build)
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Cwd) #BuildRequires: perl(File::pushd)
BuildRequires: perl(File::Path) %{perl_requires}
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
Requires: perl(Cwd)
Requires: perl(File::Path)
Requires: perl(File::Spec)
Requires: perl(File::Temp)
%description %description
File::pushd does a temporary chdir that is easily and automatically File::pushd does a temporary 'chdir' that is easily and automatically
reverted, similar to pushd in some Unix command shells. It works by reverted, similar to 'pushd' in some Unix command shells. It works by
creating an object that caches the original working directory. When the creating an object that caches the original working directory. When the
object is destroyed, the destructor calls chdir to revert to the original object is destroyed, the destructor calls 'chdir' to revert to the original
working directory. By storing the object in a lexical variable with a working directory. By storing the object in a lexical variable with a
limited scope, this happens automatically at the end of the scope. limited scope, this happens automatically at the end of the scope.
This is very handy when working with temporary directories for tasks like
testing; a function is provided to streamline getting a temporary directory
from the File::Temp manpage.
For convenience, the object stringifies as the canonical form of the
absolute pathname of the directory entered.
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%build %build
%{__perl} Build.PL installdirs=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
./Build build flags=%{?_smp_mflags} %{__make} %{?_smp_mflags}
%check %check
./Build test %{__make} test
%install %install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 %perl_make_install
%perl_process_packlist
%perl_gen_filelist %perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,-) %defattr(-,root,root,755)
%doc Changes LICENSE README Todo %doc Changes examples LICENSE README Todo
%changelog %changelog