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