Ian Burrell b4e67f9
Name:           perl-File-chdir
Ian Burrell b4e67f9
Version:        0.06
Ian Burrell 9e9c600
Release:        3%{?dist}
Ian Burrell b4e67f9
Summary:        A more sensible way to change directories
Ian Burrell b4e67f9
License:        GPL or Artistic
Ian Burrell b4e67f9
Group:          Development/Libraries
Ian Burrell b4e67f9
URL:            http://search.cpan.org/dist/File-chdir/
Ian Burrell b4e67f9
Source0:        http://www.cpan.org/modules/by-module/File/File-chdir-%{version}.tar.gz
Ian Burrell b4e67f9
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Ian Burrell 9e9c600
BuildRequires:  perl(ExtUtils::MakeMaker)
Ian Burrell 9e9c600
BuildRequires:  perl(Test::More)
Ian Burrell b4e67f9
BuildArch:      noarch
Ian Burrell b4e67f9
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Ian Burrell b4e67f9
Ian Burrell b4e67f9
%description
Ian Burrell b4e67f9
Perl's chdir() has the unfortunate problem of being very, very, very
Ian Burrell b4e67f9
global. If any part of your program calls chdir() or if any library you
Ian Burrell b4e67f9
use calls chdir(), it changes the current working directory for the
Ian Burrell b4e67f9
whole program.
Ian Burrell b4e67f9
Ian Burrell b4e67f9
%prep
Ian Burrell b4e67f9
%setup -q -n File-chdir-%{version}
Ian Burrell b4e67f9
Ian Burrell b4e67f9
%build
Ian Burrell b4e67f9
%{__perl} Makefile.PL INSTALLDIRS=vendor
Ian Burrell b4e67f9
make %{?_smp_mflags}
Ian Burrell b4e67f9
Ian Burrell b4e67f9
%install
Ian Burrell b4e67f9
rm -rf $RPM_BUILD_ROOT
Ian Burrell b4e67f9
Ian Burrell b4e67f9
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
Ian Burrell b4e67f9
Ian Burrell b4e67f9
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
Ian Burrell b4e67f9
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \;
Ian Burrell b4e67f9
Ian Burrell b4e67f9
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
Ian Burrell b4e67f9
Ian Burrell b4e67f9
%check
Ian Burrell b4e67f9
make test
Ian Burrell b4e67f9
Ian Burrell b4e67f9
%clean
Ian Burrell b4e67f9
rm -rf $RPM_BUILD_ROOT
Ian Burrell b4e67f9
Ian Burrell b4e67f9
%files
Ian Burrell b4e67f9
%defattr(-,root,root,-)
Ian Burrell b4e67f9
%doc Changes
Ian Burrell b4e67f9
%{perl_vendorlib}/*
Ian Burrell b4e67f9
%{_mandir}/man3/*
Ian Burrell b4e67f9
Ian Burrell b4e67f9
%changelog
Ian Burrell 9e9c600
* Thu Aug 16 2007 Ian M. Burrell <ianburrell@gmail.com> - 0.06-3
Ian Burrell 9e9c600
- Fix BuildRequires
Ian Burrell 9e9c600
Ian Burrell b4e67f9
* Tue Jun 27 2006 Ian M. Burrell <ianburrell@gmail.com> - 0.06-2
Ian Burrell b4e67f9
- Fix rpmlint warnings
Ian Burrell b4e67f9
Ian Burrell b4e67f9
* Thu Mar 30 2006 Ian Burrell <ianburrell@gmail.com> 0.06-1
Ian Burrell b4e67f9
- Specfile autogenerated by cpanspec 1.64.