Blame SPECS/perl-Perl-OSType.spec

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