Ian Burrell b4e67f9
Name:           perl-File-chdir
Ian Burrell 802cb76
Version:        0.09
419207d
Release:        5%{?dist}
Ian Burrell b4e67f9
Summary:        A more sensible way to change directories
f356c0f
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
419207d
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.09-5
419207d
- rebuild against perl 5.10.1
419207d
d318abf
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.09-4
d318abf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d318abf
5dd72a3
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.09-3
5dd72a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5dd72a3
f356c0f
* Wed Mar  5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.09-2
f356c0f
- rebuild for new perl
f356c0f
Ian Burrell 802cb76
* Thu Jan 17 2008 Ian Burrell <ianburrell@gmail.com> - 0.09-1
Ian Burrell 802cb76
- Update to 0.09
Ian Burrell 802cb76
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.