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