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