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