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