diff --git a/.cvsignore b/.cvsignore index e69de29..0f7a56a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +File-pushd-1.00.tar.gz diff --git a/perl-File-pushd.spec b/perl-File-pushd.spec new file mode 100644 index 0000000..d45dadd --- /dev/null +++ b/perl-File-pushd.spec @@ -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á 1.00-1 +- Specfile autogenerated by cpanspec 1.77. diff --git a/sources b/sources index e69de29..eafadcf 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c0d63d05db01a6da3aebd7cd6f93e520 File-pushd-1.00.tar.gz