- Specfile autogenerated by cpanspec 1.77.

This commit is contained in:
Marcela Mašláňová 2009-01-14 06:43:33 +00:00
parent 8d81dd24a2
commit 1390a5f957
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1 @@
File-pushd-1.00.tar.gz

52
perl-File-pushd.spec Normal file
View File

@ -0,0 +1,52 @@
Name: perl-File-pushd
Version: 1.00
Release: 1%{?dist}
Summary: Change directory temporarily for a limited scope
License: ASL 2.0
Group: Development/Libraries
URL: http://search.cpan.org/dist/File-pushd/
Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/File-pushd-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More) >= 0.45
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%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.
%prep
%setup -q -n File-pushd-%{version}
%build
%{__perl} Build.PL installdirs=vendor
./Build
%install
rm -rf $RPM_BUILD_ROOT
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
./Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes LICENSE README Todo
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Mon Jan 12 2009 Marcela Mašláňová <mmaslano@redhat.com> 1.00-1
- Specfile autogenerated by cpanspec 1.77.

View File

@ -0,0 +1 @@
c0d63d05db01a6da3aebd7cd6f93e520 File-pushd-1.00.tar.gz