|
|
2074aa |
# We need to patch the test suite if we have an old version of Test::More
|
|
|
2074aa |
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
|
|
|
2074aa |
|
|
|
2074aa |
Name: perl-Dist-CheckConflicts
|
|
|
2074aa |
Version: 0.06
|
|
|
67bf21 |
Release: 2%{?dist}
|
|
|
2074aa |
Summary: Declare version conflicts for your dist
|
|
|
2074aa |
Group: Development/Libraries
|
|
|
2074aa |
License: GPL+ or Artistic
|
|
|
2074aa |
URL: http://search.cpan.org/dist/Dist-CheckConflicts/
|
|
|
2074aa |
Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Dist-CheckConflicts-%{version}.tar.gz
|
|
|
2074aa |
Patch1: Dist-CheckConflicts-0.06-old-Test::More.patch
|
|
|
2074aa |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
|
2074aa |
BuildArch: noarch
|
|
|
2074aa |
BuildRequires: perl(base)
|
|
|
2074aa |
BuildRequires: perl(Carp)
|
|
|
2074aa |
BuildRequires: perl(Exporter)
|
|
|
2074aa |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
2074aa |
BuildRequires: perl(File::Find)
|
|
|
2074aa |
BuildRequires: perl(File::Temp)
|
|
|
2074aa |
BuildRequires: perl(lib)
|
|
|
2074aa |
BuildRequires: perl(List::MoreUtils) >= 0.12
|
|
|
2074aa |
BuildRequires: perl(Pod::Coverage::TrustPod)
|
|
|
2074aa |
BuildRequires: perl(Test::EOL)
|
|
|
2074aa |
BuildRequires: perl(Test::Fatal)
|
|
|
2074aa |
BuildRequires: perl(Test::More)
|
|
|
2074aa |
BuildRequires: perl(Test::NoTabs)
|
|
|
2074aa |
BuildRequires: perl(Test::Pod)
|
|
|
2074aa |
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
2074aa |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
2074aa |
|
|
|
2074aa |
%description
|
|
|
2074aa |
One shortcoming of the CPAN clients that currently exist is that they have no
|
|
|
2074aa |
way of specifying conflicting downstream dependencies of modules. This module
|
|
|
2074aa |
attempts to work around this issue by allowing you to specify conflicting
|
|
|
2074aa |
versions of modules separately, and deal with them after the module is done
|
|
|
2074aa |
installing.
|
|
|
2074aa |
|
|
|
2074aa |
For instance, say you have a module Foo, and some other module Bar uses Foo. If
|
|
|
2074aa |
Foo were to change its API in a non-backwards-compatible way, this would cause
|
|
|
2074aa |
Bar to break until it is updated to use the new API. Foo can't just depend on
|
|
|
2074aa |
the fixed version of Bar, because this will cause a circular dependency
|
|
|
2074aa |
(because Bar is already depending on Foo), and this doesn't express intent
|
|
|
2074aa |
properly anyway - Foo doesn't use Bar at all. The ideal solution would be for
|
|
|
2074aa |
there to be a way to specify conflicting versions of modules in a way that would
|
|
|
2074aa |
let CPAN clients update conflicting modules automatically after an existing
|
|
|
2074aa |
module is upgraded, but until that happens, this module will allow users to do
|
|
|
2074aa |
this manually.
|
|
|
2074aa |
|
|
|
2074aa |
%prep
|
|
|
2074aa |
%setup -q -n Dist-CheckConflicts-%{version}
|
|
|
2074aa |
|
|
|
2074aa |
# Test suite needs patching if we have Test::More < 0.88
|
|
|
2074aa |
%if %{old_test_more}
|
|
|
2074aa |
%patch1
|
|
|
2074aa |
%endif
|
|
|
2074aa |
|
|
|
2074aa |
%build
|
|
|
2074aa |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
2074aa |
make %{?_smp_mflags}
|
|
|
2074aa |
|
|
|
2074aa |
%install
|
|
|
2074aa |
rm -rf %{buildroot}
|
|
|
2074aa |
make pure_install DESTDIR=%{buildroot}
|
|
|
2074aa |
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
2074aa |
%{_fixperms} %{buildroot}
|
|
|
2074aa |
|
|
|
2074aa |
%check
|
|
|
2074aa |
make test RELEASE_TESTING=1
|
|
|
2074aa |
|
|
|
2074aa |
%clean
|
|
|
2074aa |
rm -rf %{buildroot}
|
|
|
2074aa |
|
|
|
2074aa |
%files
|
|
|
2074aa |
%defattr(-,root,root,-)
|
|
|
2074aa |
%doc Changes LICENSE README
|
|
|
2074aa |
%{perl_vendorlib}/Dist/
|
|
|
2074aa |
%{_mandir}/man3/Dist::CheckConflicts.3pm*
|
|
|
2074aa |
|
|
|
2074aa |
%changelog
|
|
|
67bf21 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.06-2
|
|
|
67bf21 |
- Mass rebuild 2013-12-27
|
|
|
67bf21 |
|
|
|
2074aa |
* Sat Jun 22 2013 Paul Howarth <paul@city-fan.org> - 0.06-1
|
|
|
2074aa |
- Update to 0.06
|
|
|
2074aa |
- Add optional runtime conflict warnings
|
|
|
2074aa |
- Require 5.8.1, clean up a few things and add a few more tests
|
|
|
2074aa |
- Use Exporter instead of Sub::Exporter
|
|
|
2074aa |
- Update patch for building with Test::More < 0.88
|
|
|
2074aa |
- Drop patch for building with old ExtUtils::MakeMaker, no longer needed
|
|
|
2074aa |
- Don't need to remove empty directories from the buildroot
|
|
|
2074aa |
|
|
|
2074aa |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-8
|
|
|
2074aa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
2074aa |
|
|
|
2074aa |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-7
|
|
|
2074aa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
2074aa |
|
|
|
2074aa |
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 0.02-6
|
|
|
2074aa |
- Perl 5.16 rebuild
|
|
|
2074aa |
|
|
|
2074aa |
* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.02-5
|
|
|
2074aa |
- Pod::Coverage::TrustPod now available in all supported releases
|
|
|
2074aa |
- BR: perl(Carp)
|
|
|
2074aa |
|
|
|
2074aa |
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.02-4
|
|
|
2074aa |
- Perl mass rebuild
|
|
|
2074aa |
|
|
|
2074aa |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-3
|
|
|
2074aa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
2074aa |
|
|
|
2074aa |
* Wed Jan 5 2011 Paul Howarth <paul@city-fan.org> - 0.02-2
|
|
|
2074aa |
- Sanitize for Fedora submission
|
|
|
2074aa |
|
|
|
2074aa |
* Tue Jan 4 2011 Paul Howarth <paul@city-fan.org> - 0.02-1
|
|
|
2074aa |
- Initial RPM version
|