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