%define module File-chdir %define name perl-%{module} %define version 0.06 %define release 1mdk Summary: A more sensible way to change directories Name: %{name} Version: %{version} Release: %{release} License: GPL or Artistic Group: Development/Perl Source0: %{module}-%{version}.tar.bz2 Url: http://www.cpan.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot/ Buildrequires: perl-devel Requires: perl Buildarch: noarch %description Perl's chdir() has the unfortunate problem of being very, very, very global. If any part of your program calls chdir() or if any library you use calls chdir(), it changes the current working directory for the B<whole> program. This sucks. File::chdir gives you an alternative, $CWD and @CWD. These two variables combine all the power of C<chdir()>, File::Spec and Cwd. %prep %setup -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make make test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc MANIFEST Changes %dir %{perl_vendorlib}/File %{perl_vendorlib}/File/* %{_mandir}/*/* %changelog * Wed Jan 28 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.06-1mdk - from Robin Rosenberg <robin.rosenberg@dewire.com> : - initial contrib import. Needed for building Captive-NTFS