%define module File-chdir %define name perl-%{module} %define version 0.10 %define release %mkrel 2 Name: %{name} Version: %{version} Release: %{release} Summary: A more sensible way to change directories License: GPL or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{module} Source: http://www.cpan.org/modules/by-module/File/%{module}-%{version}.tar.bz2 Buildrequires: perl-devel Buildarch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %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. 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 * Mon Feb 11 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.10-2mdv2008.1 + Revision: 165301 - fix description * Sat Feb 09 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.10-1mdv2008.1 + Revision: 164629 - update to new version 0.10 + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Mon Aug 06 2007 Funda Wang <fundawang@mandriva.org> 0.09-1mdv2008.0 + Revision: 59446 - New version 0.09 * Wed Jul 04 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.08-1mdv2008.0 + Revision: 48163 - spec cleanup - update to new version 0.08 * 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