fa57707
# We need to patch the test suite if we have an old version of Test::More
b259d0d
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
7bd40a0
# Run extra test
7bd40a0
%if 0%{?fedora}
7bd40a0
%bcond_without perl_Dist_CheckConflicts_enables_extra_test
7bd40a0
%else
7bd40a0
%bcond_with perl_Dist_CheckConflicts_enables_extra_test
7bd40a0
%endif
fa57707
fa57707
Name:		perl-Dist-CheckConflicts
aa43b7d
Version:	0.11
2e5fb36
Release:	14%{?dist}
fa57707
Summary:	Declare version conflicts for your dist
fa57707
License:	GPL+ or Artistic
8c630d9
URL:		https://metacpan.org/release/Dist-CheckConflicts
8c630d9
Source0:	https://cpan.metacpan.org/authors/id/D/DO/DOY/Dist-CheckConflicts-%{version}.tar.gz
aa43b7d
Patch0:		Dist-CheckConflicts-0.11-old-Test::More.patch
fa57707
BuildArch:	noarch
2588498
# Module Build
b24f120
BuildRequires:	perl-generators
2588498
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.30
2588498
# Module
b259d0d
BuildRequires:	perl(base)
12a40fe
BuildRequires:	perl(Carp)
b259d0d
BuildRequires:	perl(Exporter)
17e8e24
BuildRequires:	perl(Module::Runtime) >= 0.009
2588498
BuildRequires:	perl(strict)
2588498
BuildRequires:	perl(warnings)
2588498
# Test Suite
17e8e24
BuildRequires:	perl(File::Spec)
17e8e24
BuildRequires:	perl(IO::Handle)
17e8e24
BuildRequires:	perl(IPC::Open3)
b259d0d
BuildRequires:	perl(lib)
2588498
BuildRequires:	perl(Test::Fatal)
2588498
BuildRequires:	perl(Test::More) >= 0.47
2588498
# Extra Tests
7bd40a0
%if %{with perl_Dist_CheckConflicts_enables_extra_test}
fa57707
BuildRequires:	perl(Pod::Coverage::TrustPod)
fa57707
BuildRequires:	perl(Test::EOL)
fa57707
BuildRequires:	perl(Test::NoTabs)
b7660f9
BuildRequires:	perl(Test::Pod) >= 1.41
b7660f9
BuildRequires:	perl(Test::Pod::Coverage) >= 1.08
aa43b7d
%endif
2588498
# Runtime
12a40fe
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
fa57707
fa57707
%description
fa57707
One shortcoming of the CPAN clients that currently exist is that they have no
fa57707
way of specifying conflicting downstream dependencies of modules. This module
fa57707
attempts to work around this issue by allowing you to specify conflicting
fa57707
versions of modules separately, and deal with them after the module is done
fa57707
installing.
fa57707
fa57707
For instance, say you have a module Foo, and some other module Bar uses Foo. If
fa57707
Foo were to change its API in a non-backwards-compatible way, this would cause
fa57707
Bar to break until it is updated to use the new API. Foo can't just depend on
fa57707
the fixed version of Bar, because this will cause a circular dependency
fa57707
(because Bar is already depending on Foo), and this doesn't express intent
fa57707
properly anyway - Foo doesn't use Bar at all. The ideal solution would be for
fa57707
there to be a way to specify conflicting versions of modules in a way that would
fa57707
let CPAN clients update conflicting modules automatically after an existing
fa57707
module is upgraded, but until that happens, this module will allow users to do
fa57707
this manually.
fa57707
fa57707
%prep
fa57707
%setup -q -n Dist-CheckConflicts-%{version}
fa57707
fa57707
# Test suite needs patching if we have Test::More < 0.88
fa57707
%if %{old_test_more}
2588498
%patch0
fa57707
%endif
fa57707
fa57707
%build
fa57707
perl Makefile.PL INSTALLDIRS=vendor
fa57707
make %{?_smp_mflags}
fa57707
fa57707
%install
fa57707
rm -rf %{buildroot}
fa57707
make pure_install DESTDIR=%{buildroot}
fa57707
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
fa57707
%{_fixperms} %{buildroot}
fa57707
fa57707
%check
2588498
make test
7bd40a0
%if %{with perl_Dist_CheckConflicts_enables_extra_test}
2588498
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
aa43b7d
%endif
fa57707
fa57707
%files
fa57707
%doc Changes LICENSE README
fa57707
%{perl_vendorlib}/Dist/
fa57707
%{_mandir}/man3/Dist::CheckConflicts.3pm*
fa57707
fa57707
%changelog
2e5fb36
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-14
2e5fb36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2e5fb36
b03223d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-13
b03223d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b03223d
f2d5a0f
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-12
f2d5a0f
- Perl 5.28 rebuild
f2d5a0f
90d18a1
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-11
90d18a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
90d18a1
d85b85c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-10
d85b85c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d85b85c
2f71023
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-9
2f71023
- Perl 5.26 rebuild
2f71023
31d3f02
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-8
31d3f02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
31d3f02
e1d43c1
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-7
e1d43c1
- Perl 5.24 rebuild
e1d43c1
16a19fc
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-6
16a19fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
16a19fc
5c6c4b8
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
5c6c4b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5c6c4b8
e1ca615
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-4
e1ca615
- Perl 5.22 rebuild
e1ca615
f30db1c
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-3
f30db1c
- Perl 5.20 rebuild
f30db1c
fb8afd7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
fb8afd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fb8afd7
aa43b7d
* Thu Apr  3 2014 Paul Howarth <paul@city-fan.org> - 0.11-1
aa43b7d
- Update to 0.11
aa43b7d
  - Drop the dep on List::MoreUtils
aa43b7d
    (https://github.com/doy/dist-checkconflicts/pull/8)
aa43b7d
- Update patch for building with Test::More < 0.88
aa43b7d
- Don't try to run the extra tests for EPEL builds
b7660f9
- Specify version requirements for extra test modules
aa43b7d
17e8e24
* Wed Dec 18 2013 Paul Howarth <paul@city-fan.org> - 0.10-1
17e8e24
- Update to 0.10
17e8e24
  - We need Module::Runtime 0.009 for module_notional_filename (#6)
17e8e24
- Update patch for building with Test::More < 0.88
17e8e24
- Drop %%defattr, redundant since rpm 4.4
17e8e24
f1271d2
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.09-3
f1271d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f1271d2
e4f3316
* Fri Jul 26 2013 Petr Pisar <ppisar@redhat.com> - 0.09-2
e4f3316
- Perl 5.18 rebuild
e4f3316
a570c8b
* Mon Jul 22 2013 Paul Howarth <paul@city-fan.org> - 0.09-1
a570c8b
- Update to 0.09
a570c8b
  - Support Perl 5.6.x
a570c8b
2588498
* Wed Jul 10 2013 Paul Howarth <paul@city-fan.org> - 0.08-1
2588498
- Update to 0.08
2588498
  - Instead of silently ignoring conflicts that do not compile, issue a
2588498
    conflict warning (CPAN RT#75486)
2588498
- BR: perl(Module::Runtime)
2588498
- Classify buildreqs by usage
2588498
- Explicitly run the extra tests
2588498
b259d0d
* Sat Jun 22 2013 Paul Howarth <paul@city-fan.org> - 0.06-1
b259d0d
- Update to 0.06
b259d0d
  - Add optional runtime conflict warnings
b259d0d
  - Require 5.8.1, clean up a few things and add a few more tests
b259d0d
  - Use Exporter instead of Sub::Exporter
b259d0d
- Update patch for building with Test::More < 0.88
b259d0d
- Drop patch for building with old ExtUtils::MakeMaker, no longer needed
b259d0d
- Don't need to remove empty directories from the buildroot
b259d0d
63a0c00
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-8
63a0c00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
63a0c00
d7c4828
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-7
d7c4828
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d7c4828
3b25ebb
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 0.02-6
3b25ebb
- Perl 5.16 rebuild
3b25ebb
12a40fe
* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.02-5
12a40fe
- Pod::Coverage::TrustPod now available in all supported releases
12a40fe
- BR: perl(Carp)
12a40fe
Petr Sabata cb151ca
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.02-4
Petr Sabata cb151ca
- Perl mass rebuild
Petr Sabata cb151ca
b56d37d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-3
b56d37d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b56d37d
fa57707
* Wed Jan  5 2011 Paul Howarth <paul@city-fan.org> - 0.02-2
fa57707
- Sanitize for Fedora submission
fa57707
fa57707
* Tue Jan  4 2011 Paul Howarth <paul@city-fan.org> - 0.02-1
fa57707
- Initial RPM version