%define module File-chdir %define name perl-%{module} %define version 0.06 %define release 2mdk 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://search.cpan.org/dist/%{module} 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 Changes %dir %{perl_vendorlib}/File %{perl_vendorlib}/File/* %{_mandir}/*/* %changelog * Thu Feb 17 2005 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 0.06-2mdk - Make rpmlint happy * 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