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