Blame SPECS/perl-Perl-OSType.spec

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