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