From ff9fd13a0dce21685532c7766e573cb0b17277b9 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 04 2015 08:24:03 +0000 Subject: import rh-perl520-perl-Perl-OSType-1.007-326.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dfd5204 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Perl-OSType-1.007.tar.gz diff --git a/.rh-perl520-perl-Perl-OSType.metadata b/.rh-perl520-perl-Perl-OSType.metadata new file mode 100644 index 0000000..a8cc917 --- /dev/null +++ b/.rh-perl520-perl-Perl-OSType.metadata @@ -0,0 +1 @@ +b04781569df225919440d1ca4124c835457c8910 SOURCES/Perl-OSType-1.007.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/Perl-OSType-1.005-old-Test::More.patch b/SOURCES/Perl-OSType-1.005-old-Test::More.patch new file mode 100644 index 0000000..11f447a --- /dev/null +++ b/SOURCES/Perl-OSType-1.005-old-Test::More.patch @@ -0,0 +1,34 @@ +--- t/OSType.t ++++ t/OSType.t +@@ -1,7 +1,7 @@ + use strict; + use warnings; + +-use Test::More 0.88; ++use Test::More tests => 19; + + use constant NON_EXISTENT_OS => 'titanix'; #the system they said could not go down... + +@@ -65,5 +65,3 @@ can_ok( $test_pkg, @functions ); + ok( !is_os_type(), "$fcn: false if no type provided" ); + } + +-done_testing; +- +--- xt/release/test-version.t ++++ xt/release/test-version.t +@@ -1,6 +1,6 @@ + use strict; + use warnings; +-use Test::More; ++use Test::More tests => 2; + + # generated by Dist::Zilla::Plugin::Test::Version 0.002004 + BEGIN { eval "use Test::Version; 1;" or die $@; } +@@ -18,5 +18,4 @@ push @imports, $params + + Test::Version->import(@imports); + +-version_all_ok; +-done_testing; ++version_all_ok(); diff --git a/SOURCES/Perl-OSType-1.007-stopwords.patch b/SOURCES/Perl-OSType-1.007-stopwords.patch new file mode 100644 index 0000000..01a3498 --- /dev/null +++ b/SOURCES/Perl-OSType-1.007-stopwords.patch @@ -0,0 +1,11 @@ +--- lib/Perl/OSType.pm ++++ lib/Perl/OSType.pm +@@ -104,6 +104,8 @@ + + =head1 DESCRIPTION + ++=for :stopwords Unix Win32 Windows ++ + 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 diff --git a/SPECS/perl-Perl-OSType.spec b/SPECS/perl-Perl-OSType.spec new file mode 100644 index 0000000..eedb414 --- /dev/null +++ b/SPECS/perl-Perl-OSType.spec @@ -0,0 +1,233 @@ +%{?scl:%scl_package perl-Perl-OSType} + +# Test suite needs patching if we have Test::More < 0.88 +%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:'}) + +Name: %{?scl_prefix}perl-Perl-OSType +Version: 1.007 +Release: 326%{?dist} +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 +Patch1: Perl-OSType-1.005-old-Test::More.patch +Patch2: Perl-OSType-1.007-stopwords.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildArch: noarch +# Build +BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) >= 6.17 +# Module +BuildRequires: %{?scl_prefix}perl(Exporter) +BuildRequires: %{?scl_prefix}perl(strict) +BuildRequires: %{?scl_prefix}perl(warnings) +# Test Suite +BuildRequires: %{?scl_prefix}perl(blib) +BuildRequires: %{?scl_prefix}perl(constant) +BuildRequires: %{?scl_prefix}perl(File::Spec::Functions) +BuildRequires: %{?scl_prefix}perl(List::Util) +BuildRequires: %{?scl_prefix}perl(Test::More) +# Optional tests, not run for this dual-lived module when bootstrapping +# Also not run for EPEL-5/6 builds due to package unavailability +%if !%{defined perl_bootstrap} && !%{defined perl_small} +BuildRequires: %{?scl_prefix}perl(CPAN::Meta) +BuildRequires: %{?scl_prefix}perl(CPAN::Meta::Requirements) +BuildRequires: %{?scl_prefix}perl(File::Spec) +BuildRequires: %{?scl_prefix}perl(File::Temp) +BuildRequires: %{?scl_prefix}perl(IO::Handle) +BuildRequires: %{?scl_prefix}perl(IPC::Open3) +BuildRequires: %{?scl_prefix}perl(Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire) +BuildRequires: %{?scl_prefix}perl(Pod::Coverage::TrustPod) +BuildRequires: %{?scl_prefix}perl(Pod::Wordlist::hanekomu) +BuildRequires: %{?scl_prefix}perl(Test::CPAN::Meta) +BuildRequires: %{?scl_prefix}perl(Test::MinimumVersion) +BuildRequires: %{?scl_prefix}perl(Test::Perl::Critic) +BuildRequires: %{?scl_prefix}perl(Test::Pod) >= 1.41 +BuildRequires: %{?scl_prefix}perl(Test::Pod::Coverage) >= 1.08 +BuildRequires: %{?scl_prefix}perl(Test::Portability::Files) +BuildRequires: %{?scl_prefix}perl(Test::Spelling), aspell-en +BuildRequires: %{?scl_prefix}perl(Test::Version) +%endif +# Runtime +Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'})) + +%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} + +# Fix test suite for Test::More < 0.88 +%if %{old_test_more} +%patch1 +%endif + +# More stopwords for the spell checker +%patch2 + +%build +%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'} + +%install +rm -rf %{buildroot} +%{?scl:scl enable %{scl} '}make pure_install DESTDIR=%{buildroot}%{?scl:'} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +%{_fixperms} %{buildroot} + +%check +%{?scl:scl enable %{scl} '}make test%{?scl:'} +%if !%{defined perl_bootstrap} && !%{defined perl_small} +%{?scl:scl enable %{scl} '}LANG=en_US make test TEST_FILES="$(echo $(find xt/ -name %{?scl:'"}'%{?scl:"'}*.t%{?scl:'"}'%{?scl:"'}))"%{?scl:'} +%endif + +%clean +rm -rf %{buildroot} + +%files +%doc Changes CONTRIBUTING LICENSE README +%{perl_vendorlib}/Perl/ +%{_mandir}/man3/Perl::OSType.3pm* + +%changelog +* Wed Jan 28 2015 Petr Pisar - 1.007-326 +- Do not use fedora macro to control dependencies + +* Mon Jan 26 2015 Jitka Plesnikova - 1.007-325 +- Increase release to favour standalone package + +* Sun Jan 25 2015 Jitka Plesnikova - 1.007-315 +- Rebuild of bootstrapped package + +* Thu Jan 22 2015 Petr Pisar - 1.007-314 +- Disable optional tests for small build root + +* Wed Jan 21 2015 Petr Pisar - 1.007-313 +- SCLize make test TEST_FILES properly + +* Wed Jan 21 2015 Petr Pisar - 1.007-312 +- SCLize make test TEST_FILES + +* Sun Sep 07 2014 Jitka Plesnikova - 1.007-311 +- Perl 5.20 re-rebuild of bootstrapped packages + +* Wed Sep 03 2014 Jitka Plesnikova - 1.007-310 +- Increase release to favour standalone package + +* Tue Aug 26 2014 Jitka Plesnikova - 1.007-3 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.007-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Jan 16 2014 Paul Howarth - 1.007-1 +- Update to 1.007 + - Added 'android' as a Unix-type OS +- Update stopwords patch + +* Thu Sep 26 2013 Paul Howarth - 1.006-1 +- Update to 1.006 + - Compile test could hang on Windows + - Dropped configure_requires for ExtUtils::MakeMaker to 6.17 + +* Wed Sep 11 2013 Paul Howarth - 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 + +* Thu Aug 22 2013 Paul Howarth - 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 + +* Wed Aug 14 2013 Jitka Plesnikova - 1.003-292 +- Perl 5.18 re-rebuild of bootstrapped packages + +* Sun Aug 04 2013 Fedora Release Engineering - 1.003-291 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Jul 15 2013 Petr Pisar - 1.003-290 +- Increase release to favour standalone package + +* Fri Jul 12 2013 Petr Pisar - 1.003-3 +- Perl 5.18 rebuild + +* Thu Mar 21 2013 Petr Pisar - 1.003-2 +- Disable optional tests on RHEL 7 too + +* Thu Mar 21 2013 Paul Howarth - 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 + +* Thu Feb 14 2013 Fedora Release Engineering - 1.002-242 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Aug 28 2012 Paul Howarth - 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 + +* Fri Aug 17 2012 Petr Pisar - 1.002-240 +- Increase release to replace perl sub-package (bug #848961) + +* Fri Jul 20 2012 Fedora Release Engineering - 1.002-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jul 10 2012 Petr Pisar - 1.002-12 +- Perl 5.16 re-rebuild of bootstrapped packages + +* Wed Jun 06 2012 Petr Pisar - 1.002-11 +- Perl 5.16 rebuild + +* Fri Jun 01 2012 Petr Pisar - 1.002-10 +- Skip author tests on bootstrap + +* Thu Jan 12 2012 Paul Howarth - 1.002-9 +- Fedora 17 mass rebuild + +* Wed Aug 17 2011 Paul Howarth - 1.002-8 +- BR: perl(Pod::Coverage::TrustPod) unconditionally now that it's available in + EPEL-4 + +* Tue Aug 16 2011 Marcela Maslanova - 1.002-7 +- Install to vendor perl directories to avoid potential debuginfo conflicts + with the main perl package if this module ever becomes arch-specific + +* Thu Jul 21 2011 Petr Sabata - 1.002-6 +- Perl mass rebuild + +* Tue Jul 19 2011 Petr Sabata - 1.002-5 +- Perl mass rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 1.002-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Jan 26 2011 Paul Howarth - 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 - 1.002-2 +- Sanitize for Fedora submission + +* Tue Jan 25 2011 Paul Howarth - 1.002-1 +- Initial RPM version