|
|
de2a4e |
# Run extra test
|
|
|
de2a4e |
%if 0%{?fedora}
|
|
|
de2a4e |
%bcond_without perl_Dist_CheckConflicts_enables_extra_test
|
|
|
de2a4e |
%else
|
|
|
de2a4e |
%bcond_with perl_Dist_CheckConflicts_enables_extra_test
|
|
|
de2a4e |
%endif
|
|
|
de2a4e |
|
|
|
de2a4e |
Name: perl-Dist-CheckConflicts
|
|
|
de2a4e |
Version: 0.11
|
|
|
de2a4e |
Release: 23%{?dist}
|
|
|
de2a4e |
Summary: Declare version conflicts for your dist
|
|
|
de2a4e |
License: GPL+ or Artistic
|
|
|
de2a4e |
URL: https://metacpan.org/release/Dist-CheckConflicts
|
|
|
de2a4e |
Source0: https://cpan.metacpan.org/modules/by-module/Dist/Dist-CheckConflicts-%{version}.tar.gz
|
|
|
de2a4e |
BuildArch: noarch
|
|
|
de2a4e |
# Module Build
|
|
|
de2a4e |
BuildRequires: coreutils
|
|
|
de2a4e |
BuildRequires: findutils
|
|
|
de2a4e |
BuildRequires: make
|
|
|
de2a4e |
BuildRequires: perl-generators
|
|
|
de2a4e |
BuildRequires: perl-interpreter
|
|
|
de2a4e |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
|
|
de2a4e |
# Module
|
|
|
de2a4e |
BuildRequires: perl(base)
|
|
|
de2a4e |
BuildRequires: perl(Carp)
|
|
|
de2a4e |
BuildRequires: perl(Exporter)
|
|
|
de2a4e |
BuildRequires: perl(Module::Runtime) >= 0.009
|
|
|
de2a4e |
BuildRequires: perl(strict)
|
|
|
de2a4e |
BuildRequires: perl(warnings)
|
|
|
de2a4e |
# Test Suite
|
|
|
de2a4e |
BuildRequires: perl(blib)
|
|
|
de2a4e |
BuildRequires: perl(File::Spec)
|
|
|
de2a4e |
BuildRequires: perl(IO::Handle)
|
|
|
de2a4e |
BuildRequires: perl(IPC::Open3)
|
|
|
de2a4e |
BuildRequires: perl(lib)
|
|
|
de2a4e |
BuildRequires: perl(Test::Fatal)
|
|
|
de2a4e |
BuildRequires: perl(Test::More) >= 0.88
|
|
|
de2a4e |
# Extra Tests
|
|
|
de2a4e |
%if %{with perl_Dist_CheckConflicts_enables_extra_test}
|
|
|
de2a4e |
BuildRequires: perl(Pod::Coverage::TrustPod)
|
|
|
de2a4e |
BuildRequires: perl(Test::EOL)
|
|
|
de2a4e |
BuildRequires: perl(Test::NoTabs)
|
|
|
de2a4e |
BuildRequires: perl(Test::Pod) >= 1.41
|
|
|
de2a4e |
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
|
|
de2a4e |
%endif
|
|
|
de2a4e |
# Runtime
|
|
|
de2a4e |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
de2a4e |
|
|
|
de2a4e |
%description
|
|
|
de2a4e |
One shortcoming of the CPAN clients that currently exist is that they have no
|
|
|
de2a4e |
way of specifying conflicting downstream dependencies of modules. This module
|
|
|
de2a4e |
attempts to work around this issue by allowing you to specify conflicting
|
|
|
de2a4e |
versions of modules separately, and deal with them after the module is done
|
|
|
de2a4e |
installing.
|
|
|
de2a4e |
|
|
|
de2a4e |
For instance, say you have a module Foo, and some other module Bar uses Foo. If
|
|
|
de2a4e |
Foo were to change its API in a non-backwards-compatible way, this would cause
|
|
|
de2a4e |
Bar to break until it is updated to use the new API. Foo can't just depend on
|
|
|
de2a4e |
the fixed version of Bar, because this will cause a circular dependency
|
|
|
de2a4e |
(because Bar is already depending on Foo), and this doesn't express intent
|
|
|
de2a4e |
properly anyway - Foo doesn't use Bar at all. The ideal solution would be for
|
|
|
de2a4e |
there to be a way to specify conflicting versions of modules in a way that would
|
|
|
de2a4e |
let CPAN clients update conflicting modules automatically after an existing
|
|
|
de2a4e |
module is upgraded, but until that happens, this module will allow users to do
|
|
|
de2a4e |
this manually.
|
|
|
de2a4e |
|
|
|
de2a4e |
%prep
|
|
|
de2a4e |
%setup -q -n Dist-CheckConflicts-%{version}
|
|
|
de2a4e |
|
|
|
de2a4e |
%build
|
|
|
de2a4e |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
de2a4e |
make %{?_smp_mflags}
|
|
|
de2a4e |
|
|
|
de2a4e |
%install
|
|
|
de2a4e |
make pure_install DESTDIR=%{buildroot}
|
|
|
de2a4e |
find %{buildroot} -type f -name .packlist -delete
|
|
|
de2a4e |
%{_fixperms} -c %{buildroot}
|
|
|
de2a4e |
|
|
|
de2a4e |
%check
|
|
|
de2a4e |
make test
|
|
|
de2a4e |
%if %{with perl_Dist_CheckConflicts_enables_extra_test}
|
|
|
de2a4e |
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
|
|
de2a4e |
%endif
|
|
|
de2a4e |
|
|
|
de2a4e |
%files
|
|
|
de2a4e |
%if 0%{?_licensedir:1}
|
|
|
de2a4e |
%license LICENSE
|
|
|
de2a4e |
%else
|
|
|
de2a4e |
%doc LICENSE
|
|
|
de2a4e |
%endif
|
|
|
de2a4e |
%doc Changes README
|
|
|
de2a4e |
%{perl_vendorlib}/Dist/
|
|
|
de2a4e |
%{_mandir}/man3/Dist::CheckConflicts.3*
|
|
|
de2a4e |
|
|
|
de2a4e |
%changelog
|
|
|
de2a4e |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.11-23
|
|
|
de2a4e |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
de2a4e |
Related: rhbz#1991688
|
|
|
de2a4e |
|
|
|
de2a4e |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.11-22
|
|
|
de2a4e |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
de2a4e |
|
|
|
de2a4e |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-21
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-20
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-19
|
|
|
de2a4e |
- Perl 5.32 rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Tue Mar 10 2020 Paul Howarth <paul@city-fan.org> - 0.11-18
|
|
|
de2a4e |
- Spec tidy-up
|
|
|
de2a4e |
- Use author-independent source URL
|
|
|
de2a4e |
- Drop support for building with Test::More < 0.88
|
|
|
de2a4e |
- Specify all build dependencies
|
|
|
de2a4e |
- Drop redundant buildroot cleaning in %%install section
|
|
|
de2a4e |
- Simplify find command using -delete
|
|
|
de2a4e |
- Fix permissions verbosely
|
|
|
de2a4e |
- Use %%license where possible
|
|
|
de2a4e |
|
|
|
de2a4e |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-17
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-16
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-15
|
|
|
de2a4e |
- Perl 5.30 rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-14
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-13
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-12
|
|
|
de2a4e |
- Perl 5.28 rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-11
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-10
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-9
|
|
|
de2a4e |
- Perl 5.26 rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-8
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-7
|
|
|
de2a4e |
- Perl 5.24 rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-6
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-5
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-4
|
|
|
de2a4e |
- Perl 5.22 rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-3
|
|
|
de2a4e |
- Perl 5.20 rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Thu Apr 3 2014 Paul Howarth <paul@city-fan.org> - 0.11-1
|
|
|
de2a4e |
- Update to 0.11
|
|
|
de2a4e |
- Drop the dep on List::MoreUtils
|
|
|
de2a4e |
(https://github.com/doy/dist-checkconflicts/pull/8)
|
|
|
de2a4e |
- Update patch for building with Test::More < 0.88
|
|
|
de2a4e |
- Don't try to run the extra tests for EPEL builds
|
|
|
de2a4e |
- Specify version requirements for extra test modules
|
|
|
de2a4e |
|
|
|
de2a4e |
* Wed Dec 18 2013 Paul Howarth <paul@city-fan.org> - 0.10-1
|
|
|
de2a4e |
- Update to 0.10
|
|
|
de2a4e |
- We need Module::Runtime 0.009 for module_notional_filename (#6)
|
|
|
de2a4e |
- Update patch for building with Test::More < 0.88
|
|
|
de2a4e |
- Drop %%defattr, redundant since rpm 4.4
|
|
|
de2a4e |
|
|
|
de2a4e |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.09-3
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Fri Jul 26 2013 Petr Pisar <ppisar@redhat.com> - 0.09-2
|
|
|
de2a4e |
- Perl 5.18 rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Mon Jul 22 2013 Paul Howarth <paul@city-fan.org> - 0.09-1
|
|
|
de2a4e |
- Update to 0.09
|
|
|
de2a4e |
- Support Perl 5.6.x
|
|
|
de2a4e |
|
|
|
de2a4e |
* Wed Jul 10 2013 Paul Howarth <paul@city-fan.org> - 0.08-1
|
|
|
de2a4e |
- Update to 0.08
|
|
|
de2a4e |
- Instead of silently ignoring conflicts that do not compile, issue a
|
|
|
de2a4e |
conflict warning (CPAN RT#75486)
|
|
|
de2a4e |
- BR: perl(Module::Runtime)
|
|
|
de2a4e |
- Classify buildreqs by usage
|
|
|
de2a4e |
- Explicitly run the extra tests
|
|
|
de2a4e |
|
|
|
de2a4e |
* Sat Jun 22 2013 Paul Howarth <paul@city-fan.org> - 0.06-1
|
|
|
de2a4e |
- Update to 0.06
|
|
|
de2a4e |
- Add optional runtime conflict warnings
|
|
|
de2a4e |
- Require 5.8.1, clean up a few things and add a few more tests
|
|
|
de2a4e |
- Use Exporter instead of Sub::Exporter
|
|
|
de2a4e |
- Update patch for building with Test::More < 0.88
|
|
|
de2a4e |
- Drop patch for building with old ExtUtils::MakeMaker, no longer needed
|
|
|
de2a4e |
- Don't need to remove empty directories from the buildroot
|
|
|
de2a4e |
|
|
|
de2a4e |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-8
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-7
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 0.02-6
|
|
|
de2a4e |
- Perl 5.16 rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.02-5
|
|
|
de2a4e |
- Pod::Coverage::TrustPod now available in all supported releases
|
|
|
de2a4e |
- BR: perl(Carp)
|
|
|
de2a4e |
|
|
|
de2a4e |
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.02-4
|
|
|
de2a4e |
- Perl mass rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-3
|
|
|
de2a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
de2a4e |
|
|
|
de2a4e |
* Wed Jan 5 2011 Paul Howarth <paul@city-fan.org> - 0.02-2
|
|
|
de2a4e |
- Sanitize for Fedora submission
|
|
|
de2a4e |
|
|
|
de2a4e |
* Tue Jan 4 2011 Paul Howarth <paul@city-fan.org> - 0.02-1
|
|
|
de2a4e |
- Initial RPM version
|