Name: perl-Tk-DirSelect
Version: 1.12
Release: 3%{?dist}
Summary: Cross-platform directory selection widget
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Tk-DirSelect/
Source0: http://www.cpan.org/authors/id/M/MJ/MJCARMAN/Tk-DirSelect-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Tk) >= 800
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module provides a cross-platform directory selection widget. For
systems running Microsoft Windows, this includes selection of local and
mapped network drives. A context menu (right-click or <Button3>) allows the
creation, renaming, and deletion of directories while browsing.
%prep
%setup -q -n Tk-DirSelect-%{version}
sed -i 's/\r//' README Changes
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
#sed -i 's/\r//' README Changes
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.12-3
- Mass rebuild with perl-5.12.0
* Fri Jan 22 2010 David Hannequin david.hannequin@gmail.com 1.12-2
- Updated to a new upstream version.
* Fri Jan 22 2010 David Hannequin david.hannequin@gmail.com 1.11-1
- Initial release.