c6a7ccb
Name:           perl-File-ShareDir
c6a7ccb
Version:        1.00
ceeabfc
Release:        6%{?dist}
c6a7ccb
Summary:        Locate per-dist and per-module shared files
c6a7ccb
License:        GPL+ or Artistic
c6a7ccb
Group:          Development/Libraries
c6a7ccb
URL:            http://search.cpan.org/dist/File-ShareDir/
c6a7ccb
Source0:        http://www.cpan.org/authors/id/A/AD/ADAMK/File-ShareDir-%{version}.tar.gz
c6a7ccb
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c6a7ccb
BuildArch:      noarch
c6a7ccb
BuildRequires:  perl(Class::Inspector) >= 1.12
c6a7ccb
BuildRequires:  perl(ExtUtils::MakeMaker)
c6a7ccb
BuildRequires:  perl(Params::Util) >= 0.07
c6a7ccb
BuildRequires:  perl(Test::More) >= 0.47
c6a7ccb
Requires:       perl(Class::Inspector) >= 1.12
c6a7ccb
Requires:       perl(Params::Util) >= 0.07
c6a7ccb
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
c6a7ccb
c6a7ccb
%description
c6a7ccb
The intent of File::ShareDir is to provide a companion to Class::Inspector
c6a7ccb
and File::HomeDir, modules that take a process that is well-known by
c6a7ccb
advanced Perl developers but gets a little tricky, and make it more
c6a7ccb
available to the larger Perl community.
c6a7ccb
c6a7ccb
%prep
c6a7ccb
%setup -q -n File-ShareDir-%{version}
c6a7ccb
c6a7ccb
%build
c6a7ccb
%{__perl} Makefile.PL INSTALLDIRS=vendor
c6a7ccb
make %{?_smp_mflags}
c6a7ccb
c6a7ccb
%install
c6a7ccb
rm -rf $RPM_BUILD_ROOT
c6a7ccb
c6a7ccb
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
c6a7ccb
c6a7ccb
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
c6a7ccb
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
c6a7ccb
c6a7ccb
%{_fixperms} $RPM_BUILD_ROOT/*
c6a7ccb
chmod 644 share/sample.txt
c6a7ccb
chmod 644 share/subdir/sample.txt
7c5fea4
rm -rf $RPM_BUILD_ROOT/blib/lib/auto/share/dist/File-ShareDir/
7c5fea4
rm -rf $RPM_BUILD_ROOT/blib/lib/auto/share/module/File-ShareDir/test_file.txt
c6a7ccb
c6a7ccb
%check
c6a7ccb
make test AUTOMATED_TESTING=1
c6a7ccb
c6a7ccb
%clean
c6a7ccb
rm -rf $RPM_BUILD_ROOT
c6a7ccb
c6a7ccb
%files
c6a7ccb
%defattr(-,root,root,-)
c6a7ccb
%doc Changes LICENSE README
c6a7ccb
%{perl_vendorlib}/*
c6a7ccb
%{_mandir}/man3/*
c6a7ccb
c6a7ccb
%changelog
ceeabfc
* Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.00-6
ceeabfc
- Mass rebuild with perl-5.12.0
ceeabfc
7c5fea4
* Thu Jan 14 2010 Marcela Mašláňová 1.00-5
7c5fea4
- fix build
7c5fea4
85fd52b
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.00-4
85fd52b
- rebuild against perl 5.10.1
85fd52b
8c02df5
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-3
8c02df5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8c02df5
841b5b7
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.00-2
841b5b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
841b5b7
c6a7ccb
* Mon Aug 11 2008 Marcela Mašláňová 1.00-1
c6a7ccb
- Specfile autogenerated by cpanspec 1.77.