78e5cf
# Run optional tests
78e5cf
%bcond_without perl_Perl_OSType_enables_optional_test
78e5cf
78e5cf
Name:		perl-Perl-OSType
78e5cf
Version:	1.010
78e5cf
Release:	397%{?dist}
78e5cf
Summary:	Map Perl operating system names to generic types
78e5cf
License:	GPL+ or Artistic
78e5cf
URL:		http://search.cpan.org/dist/Perl-OSType/
78e5cf
Source0:	http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Perl-OSType-%{version}.tar.gz
78e5cf
Patch2:		Perl-OSType-1.010-stopwords.patch
78e5cf
BuildArch:	noarch
78e5cf
# Build
78e5cf
BuildRequires:	coreutils
78e5cf
BuildRequires:	findutils
78e5cf
BuildRequires:	make
78e5cf
BuildRequires:	perl-interpreter
78e5cf
BuildRequires:	perl-generators
78e5cf
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.17
78e5cf
# Module
78e5cf
BuildRequires:	perl(Exporter)
78e5cf
BuildRequires:	perl(strict)
78e5cf
BuildRequires:	perl(warnings)
78e5cf
# Test Suite
78e5cf
BuildRequires:	perl(blib)
78e5cf
BuildRequires:	perl(constant)
78e5cf
BuildRequires:	perl(File::Spec)
78e5cf
BuildRequires:	perl(Test::More) >= 0.88
78e5cf
# Optional tests, not run for this dual-lived module when bootstrapping
78e5cf
# Also not run for EPEL builds due to package unavailability
78e5cf
%if !%{defined perl_bootstrap} && 0%{?fedora} && %{with perl_Perl_OSType_enables_optional_test}
78e5cf
BuildRequires:	perl(CPAN::Meta) >= 2.120900
78e5cf
BuildRequires:	perl(CPAN::Meta::Prereqs)
78e5cf
BuildRequires:	perl(File::Temp)
78e5cf
BuildRequires:	perl(IO::Handle)
78e5cf
BuildRequires:	perl(IPC::Open3)
78e5cf
BuildRequires:	perl(Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire)
78e5cf
BuildRequires:	perl(Pod::Coverage::TrustPod)
78e5cf
BuildRequires:	perl(Pod::Wordlist)
78e5cf
BuildRequires:	perl(Test::CPAN::Meta)
78e5cf
BuildRequires:	perl(Test::MinimumVersion)
78e5cf
BuildRequires:	perl(Test::Perl::Critic)
78e5cf
BuildRequires:	perl(Test::Pod) >= 1.41
78e5cf
BuildRequires:	perl(Test::Pod::Coverage) >= 1.08
78e5cf
BuildRequires:	perl(Test::Portability::Files)
78e5cf
BuildRequires:	perl(Test::Spelling), hunspell-en
78e5cf
BuildRequires:	perl(Test::Version)
78e5cf
%endif
78e5cf
# Runtime
78e5cf
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
78e5cf
78e5cf
%description
78e5cf
Modules that provide OS-specific behaviors often need to know if the current
78e5cf
operating system matches a more generic type of operating systems. For example,
78e5cf
'linux' is a type of 'Unix' operating system and so is 'freebsd'.
78e5cf
78e5cf
This module provides a mapping between an operating system name as given by $^O
78e5cf
and a more generic type. The initial version is based on the OS type mappings
78e5cf
provided in Module::Build and ExtUtils::CBuilder (thus, Microsoft operating
78e5cf
systems are given the type 'Windows' rather than 'Win32').
78e5cf
78e5cf
%prep
78e5cf
%setup -q -n Perl-OSType-%{version}
78e5cf
78e5cf
# More stopwords for the spell checker
78e5cf
%patch2
78e5cf
78e5cf
%build
78e5cf
perl Makefile.PL INSTALLDIRS=vendor
78e5cf
make %{?_smp_mflags}
78e5cf
78e5cf
%install
78e5cf
make pure_install DESTDIR=%{buildroot}
78e5cf
find %{buildroot} -type f -name .packlist -delete
78e5cf
%{_fixperms} -c %{buildroot}
78e5cf
78e5cf
%check
78e5cf
make test
78e5cf
%if !%{defined perl_bootstrap} && 0%{?fedora} && %{with perl_Perl_OSType_enables_optional_test}
78e5cf
LANG=en_US make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
78e5cf
%endif
78e5cf
78e5cf
%files
78e5cf
%if 0%{?_licensedir:1}
78e5cf
%license LICENSE
78e5cf
%else
78e5cf
%doc LICENSE
78e5cf
%endif
78e5cf
%doc Changes CONTRIBUTING.mkdn README
78e5cf
%{perl_vendorlib}/Perl/
78e5cf
%{_mandir}/man3/Perl::OSType.3*
78e5cf
78e5cf
%changelog
78e5cf
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.010-397
78e5cf
- Rebuild with enable hardening (bug #1636329)
78e5cf
78e5cf
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.010-396
78e5cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
78e5cf
78e5cf
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.010-395
78e5cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
78e5cf
78e5cf
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.010-394
78e5cf
- Perl 5.26 re-rebuild of bootstrapped packages
78e5cf
78e5cf
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.010-393
78e5cf
- Perl 5.26 rebuild
78e5cf
78e5cf
* Wed Apr  5 2017 Paul Howarth <paul@city-fan.org> - 1.010-4
78e5cf
- Drop EL-5 support
78e5cf
  - Drop BuildRoot: and Group: tags
78e5cf
  - Drop explicit buildroot cleaning in %%install section
78e5cf
  - Drop explicit %%clean section
78e5cf
  - Drop workaround for building with Test::More < 0.88
78e5cf
  - Spell checker is always hunspell now
78e5cf
- Introduce build-condition for optional tests
78e5cf
78e5cf
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.010-3
78e5cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
78e5cf
78e5cf
* Fri Jul 22 2016 Petr Pisar <ppisar@redhat.com> - 1.010-2
78e5cf
- Use distribution instead of perl version to control build-time dependencies
78e5cf
78e5cf
* Wed Jun 22 2016 Paul Howarth <paul@city-fan.org> - 1.010-1
78e5cf
- Update to 1.010
78e5cf
  - Added 'msys' as a Unix-type OS
78e5cf
- BR: perl-generators where available
78e5cf
- Simplify find command using -delete
78e5cf
- Update patches as needed
78e5cf
78e5cf
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.009-366
78e5cf
- Perl 5.24 re-rebuild of bootstrapped packages
78e5cf
78e5cf
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.009-365
78e5cf
- Increase release to favour standalone package
78e5cf
78e5cf
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.009-2
78e5cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
78e5cf
78e5cf
* Tue Sep 22 2015 Paul Howarth <paul@city-fan.org> - 1.009-1
78e5cf
- Update to 1.009
78e5cf
  - Added 'sco' as a Unix-type OS
78e5cf
- Update patches as needed
78e5cf
78e5cf
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.008-347
78e5cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
78e5cf
78e5cf
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.008-346
78e5cf
- Perl 5.22 re-rebuild of bootstrapped packages
78e5cf
78e5cf
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.008-345
78e5cf
- Increase release to favour standalone package
78e5cf
78e5cf
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.008-2
78e5cf
- Perl 5.22 rebuild
78e5cf
78e5cf
* Fri Jan 30 2015 Paul Howarth <paul@city-fan.org> - 1.008-1
78e5cf
- Update to 1.008
78e5cf
  - Added 'minix' as a Unix-type OS
78e5cf
- Use %%license where possible
78e5cf
- Update patch for building on old distributions
78e5cf
78e5cf
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.007-311
78e5cf
- Perl 5.20 re-rebuild of bootstrapped packages
78e5cf
78e5cf
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.007-310
78e5cf
- Increase release to favour standalone package
78e5cf
78e5cf
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.007-3
78e5cf
- Perl 5.20 rebuild
78e5cf
78e5cf
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.007-2
78e5cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
78e5cf
78e5cf
* Thu Jan 16 2014 Paul Howarth <paul@city-fan.org> - 1.007-1
78e5cf
- Update to 1.007
78e5cf
  - Added 'android' as a Unix-type OS
78e5cf
- Update stopwords patch
78e5cf
78e5cf
* Thu Sep 26 2013 Paul Howarth <paul@city-fan.org> - 1.006-1
78e5cf
- Update to 1.006
78e5cf
  - Compile test could hang on Windows
78e5cf
  - Dropped configure_requires for ExtUtils::MakeMaker to 6.17
78e5cf
78e5cf
* Wed Sep 11 2013 Paul Howarth <paul@city-fan.org> - 1.005-1
78e5cf
- Update to 1.005
78e5cf
  - Ensured no non-core test dependencies
78e5cf
  - Various non-functional changes to files and metadata included with
78e5cf
    the distribution
78e5cf
- Add patch with additional stopwords for the spell checker
78e5cf
- Reinstate EPEL support as we no longer require Capture::Tiny
78e5cf
78e5cf
* Thu Aug 22 2013 Paul Howarth <paul@city-fan.org> - 1.004-1
78e5cf
- Update to 1.004
78e5cf
  - 'bitrig' is a Unix
78e5cf
- Specify all dependencies
78e5cf
- Drop EPEL-5/EPEL-6 support as they don't have Capture::Tiny
78e5cf
- Always use aspell for the spell check as Pod::Wordlist::hanekomu explicitly
78e5cf
  sets the speller to aspell
78e5cf
78e5cf
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.003-292
78e5cf
- Perl 5.18 re-rebuild of bootstrapped packages
78e5cf
78e5cf
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.003-291
78e5cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
78e5cf
78e5cf
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 1.003-290
78e5cf
- Increase release to favour standalone package
78e5cf
78e5cf
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1.003-3
78e5cf
- Perl 5.18 rebuild
78e5cf
78e5cf
* Thu Mar 21 2013 Petr Pisar <ppisar@redhat.com> - 1.003-2
78e5cf
- Disable optional tests on RHEL 7 too
78e5cf
78e5cf
* Thu Mar 21 2013 Paul Howarth <paul@city-fan.org> - 1.003-1
78e5cf
- Update to 1.003
78e5cf
  - Fixed detection of VOS; $^O reports 'vos', not 'VOS'
78e5cf
  - Additional release tests
78e5cf
- BR: perl(File::Spec::Functions), perl(List::Util),
78e5cf
  perl(Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire),
78e5cf
  perl(Pod::Wordlist::hanekomu), perl(Test::MinimumVersion),
78e5cf
  perl(Test::Perl::Critic), perl(Test::Spelling) and perl(Test::Version)
78e5cf
- Identify purpose of each build requirement
78e5cf
- Update patches for building on old distributions
78e5cf
- Don't run extra tests for EPEL-5/6 builds
78e5cf
78e5cf
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.002-242
78e5cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
78e5cf
78e5cf
* Tue Aug 28 2012 Paul Howarth <paul@city-fan.org> - 1.002-241
78e5cf
- Drop %%defattr, redundant since rpm 4.4
78e5cf
- Don't need to remove empty directories from the buildroot
78e5cf
- Don't delete the extra tests when bootstrapping, but don't run them either
78e5cf
78e5cf
* Fri Aug 17 2012 Petr Pisar <ppisar@redhat.com> - 1.002-240
78e5cf
- Increase release to replace perl sub-package (bug #848961)
78e5cf
78e5cf
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.002-13
78e5cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
78e5cf
78e5cf
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.002-12
78e5cf
- Perl 5.16 re-rebuild of bootstrapped packages
78e5cf
78e5cf
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 1.002-11
78e5cf
- Perl 5.16 rebuild
78e5cf
78e5cf
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 1.002-10
78e5cf
- Skip author tests on bootstrap
78e5cf
78e5cf
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 1.002-9
78e5cf
- Fedora 17 mass rebuild
78e5cf
78e5cf
* Wed Aug 17 2011 Paul Howarth <paul@city-fan.org> - 1.002-8
78e5cf
- BR: perl(Pod::Coverage::TrustPod) unconditionally now that it's available in
78e5cf
  EPEL-4
78e5cf
78e5cf
* Tue Aug 16 2011 Marcela Maslanova <mmaslano@redhat.com> - 1.002-7
78e5cf
- Install to vendor perl directories to avoid potential debuginfo conflicts
78e5cf
  with the main perl package if this module ever becomes arch-specific
78e5cf
78e5cf
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.002-6
78e5cf
- Perl mass rebuild
78e5cf
78e5cf
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.002-5
78e5cf
- Perl mass rebuild
78e5cf
78e5cf
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.002-4
78e5cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
78e5cf
78e5cf
* Wed Jan 26 2011 Paul Howarth <paul@city-fan.org> - 1.002-3
78e5cf
- BR: perl(constant), perl(Exporter), perl(File::Temp) in case they are
78e5cf
  dual-lived at some point (#672801)
78e5cf
78e5cf
* Wed Jan 26 2011 Paul Howarth <paul@city-fan.org> - 1.002-2
78e5cf
- Sanitize for Fedora submission
78e5cf
78e5cf
* Tue Jan 25 2011 Paul Howarth <paul@city-fan.org> - 1.002-1
78e5cf
- Initial RPM version