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