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