125 Star 1 Fork 3

src-openEuler / perl-File-pushd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-File-pushd.spec 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
daidai_is_here 提交于 2020-01-14 18:20 . add build requires
Name: perl-File-pushd
Version: 1.016
Release: 5
Summary: Change directory temporarily for a limited scope
License: ASL 2.0
URL: https://metacpan.org/release/File-pushd
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/File-pushd-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make perl-generators perl-interpreter perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(Test::More) >= 0.96
%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.
Warning: if you create multiple "pushd" objects in the same lexical
scope, their destruction order is not guaranteed and you might not wind
up in the directory you expect.
%prep
%autosetup -n File-pushd-%{version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
%make_install
%check
make test
%files
%doc LICENSE README
/usr/share/perl5/vendor_perl/File/pushd.pm
/usr/share/man/man3/File::pushd.3pm.gz
%exclude /usr/lib64/perl5/vendor_perl/auto/File/pushd/.packlist
%exclude /usr/lib64/perl5/perllocal.pod
%changelog
* Mon Jan 14 2010 daiqianwen <daiqianwen@huawei.com> - 1.016-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: add build requires
* Mon Jan 06 2020 daiqianwen <daiqianwen@huawei.com> - 1.016-4
- Package init
1
https://gitee.com/src-openeuler/perl-File-pushd.git
git@gitee.com:src-openeuler/perl-File-pushd.git
src-openeuler
perl-File-pushd
perl-File-pushd
openEuler-20.03-LTS

搜索帮助