# Enable optional dependencies %bcond_without perl_File_ShareDir_enables_optional_deps Name: perl-File-ShareDir Version: 1.118 Release: 7%{?dist} Summary: Locate per-dist and per-module shared files # other files: GPL+ or Artistic ## not in binary packages # inc/latest/private.pm: ASL 2.0 License: GPL+ or Artistic URL: https://metacpan.org/release/File-ShareDir Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/File-ShareDir-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(File::ShareDir::Install) BuildRequires: perl(File::Spec) BuildRequires: perl(IO::Dir) BuildRequires: perl(IO::File) BuildRequires: perl(lib) BuildRequires: perl(strict) BuildRequires: perl(vars) BuildRequires: perl(warnings) # Run-time BuildRequires: perl(base) BuildRequires: perl(Class::Inspector) >= 1.12 BuildRequires: perl(constant) # Optional run-time %if %{with perl_File_ShareDir_enables_optional_deps} BuildRequires: perl(List::MoreUtils) >= 0.428 BuildRequires: perl(Params::Util) >= 1.07 %endif # Tests BuildRequires: perl(Cwd) BuildRequires: perl(File::Basename) BuildRequires: perl(File::Path) BuildRequires: perl(parent) BuildRequires: perl(POSIX) BuildRequires: perl(Test::More) >= 0.47 # Optional tests BuildRequires: perl(CPAN::Meta) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Class::Inspector) >= 1.12 %if %{with perl_File_ShareDir_enables_optional_deps} Recommends: perl(List::MoreUtils) >= 0.428 Recommends: perl(Params::Util) >= 1.07 %endif %{?perl_default_filter} %global __requires_exclude %{?__requires_exclude}|perl\\(Class::Inspector\\)$ %description The intent of File::ShareDir is to provide a companion to Class::Inspector and File::HomeDir, modules that take a process that is well-known by advanced Perl developers but gets a little tricky, and make it more available to the larger Perl community. %prep %setup -q -n File-ShareDir-%{version} %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} %{buildroot}/* chmod 644 share/sample.txt chmod 644 share/subdir/sample.txt rm -rf %{buildroot}/blib/lib/auto/share/dist/File-ShareDir/ rm -rf %{buildroot}/blib/lib/auto/share/module/File-ShareDir/test_file.txt %check make test AUTOMATED_TESTING=1 %files %license LICENSE %doc Changes README.md %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Fri Jul 22 2022 Fedora Release Engineering - 1.118-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 31 2022 Jitka Plesnikova - 1.118-6 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.118-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.118-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 1.118-3 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.118-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Oct 21 2020 Jitka Plesnikova - 1.118-1 - 1.118 bump * Tue Jul 28 2020 Fedora Release Engineering - 1.116-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 1.116-8 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.116-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.116-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 1.116-5 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.116-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.116-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 29 2018 Jitka Plesnikova - 1.116-2 - Perl 5.28 rebuild * Mon Jun 25 2018 Jitka Plesnikova - 1.116-1 - 1.116 bump * Fri Jun 22 2018 Jitka Plesnikova - 1.114-1 - 1.114 bump * Tue Jun 19 2018 Jitka Plesnikova - 1.112-1 - 1.112 bump * Mon Jun 18 2018 Jitka Plesnikova - 1.110-1 - 1.110 bump * Mon Jun 11 2018 Jitka Plesnikova - 1.106-1 - 1.106 bump * Thu Feb 08 2018 Fedora Release Engineering - 1.104-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.104-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jun 30 2017 Jitka Plesnikova - 1.104-1 - 1.104 bump * Sun Jun 04 2017 Jitka Plesnikova - 1.102-9 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.102-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 1.102-7 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.102-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.102-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jun 04 2015 Jitka Plesnikova - 1.102-4 - Perl 5.22 rebuild * Wed Aug 27 2014 Jitka Plesnikova - 1.102-3 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.102-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon May 26 2014 Jitka Plesnikova - 1.102-1 - 1.102 bump * Sat Aug 03 2013 Fedora Release Engineering - 1.03-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Jul 18 2013 Petr Pisar - 1.03-9 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.03-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Oct 23 2012 Petr Šabata - 1.03-7 - Modernize specfile - Specify all dependencies - Drop command macros * Fri Jul 20 2012 Fedora Release Engineering - 1.03-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Jun 06 2012 Petr Pisar - 1.03-5 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1.03-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Jun 28 2011 Marcela Mašláňová - 1.03-3 - Perl mass rebuild - fix macros * Tue Feb 08 2011 Fedora Release Engineering - 1.03-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Feb 2 2011 Petr Sabata - 1.03-1 - 1.03 version bump * Thu Dec 16 2010 Marcela Maslanova - 1.02-2 - 661697 rebuild for fixing problems with vendorach/lib * Wed Sep 15 2010 Petr Pisar - 1.02-1 - 1.02 bump * Sat May 01 2010 Marcela Maslanova - 1.00-6 - Mass rebuild with perl-5.12.0 * Thu Jan 14 2010 Marcela Mašláňová 1.00-5 - fix build * Mon Dec 7 2009 Stepan Kasal - 1.00-4 - rebuild against perl 5.10.1 * Sat Jul 25 2009 Fedora Release Engineering - 1.00-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1.00-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Aug 11 2008 Marcela Mašláňová 1.00-1 - Specfile autogenerated by cpanspec 1.77.