Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37636888
en ru br
ALT Linux repos
S:1.016-alt1

Group :: Development/Perl
RPM: perl-File-pushd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define dist File-pushd
Name: perl-%dist
Version: 1.014
Release: alt1

Summary: Change directory temporarily for a limited scope
License: %asl
Group: Development/Perl
Packager: Artem Zolochevskiy <azol at altlinux.ru>

URL: %CPAN %dist
# http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/File-pushd-1.00.tar.gz
Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/File-pushd-%{version}.tar.gz
Patch: %name-1.005.patch

BuildArch: noarch

BuildRequires(pre): rpm-build-licenses

# Automatically added by buildreq on Fri Jan 15 2010

BuildRequires: perl-Module-Build

%description
File::pushd does a temporary "chdir" that is easily and automatically
reverted, similar to "pushd" in some Unix command shells. It works by
creating an object that caches the original working directory. When the
object is destroyed, the destructor calls "chdir" to revert to the
original working directory. By storing the object in a lexical variable
with a 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 File::Temp.

For convenience, the object stringifies as the canonical form of the
absolute pathname of the directory entered.

%prep
%setup -n %dist-%version
%patch -p1

%build
%perl_vendor_build

%install
%perl_vendor_install

%files
%doc Changes README Todo examples
%perl_vendor_privlib/File/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin