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