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