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