perl-Dist-CheckConflicts-vl.spec 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. Name: perl-Dist-CheckConflicts
  2. Version: 0.11
  3. Release: 1%{?_dist_release}
  4. Summary: Declare version conflicts for your dist
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/Dist-CheckConflicts/
  8. Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Dist-CheckConflicts-%{version}.tar.gz
  9. Patch0: Dist-CheckConflicts-0.02-old-eumm.patch
  10. Patch1: Dist-CheckConflicts-0.02-old-Test::More.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildArch: noarch
  13. BuildRequires: perl(Carp)
  14. BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
  15. BuildRequires: perl(IPC::Open3)
  16. BuildRequires: perl(List::MoreUtils) >= 0.12
  17. BuildRequires: perl(Module::Runtime)
  18. BuildRequires: perl(Pod::Coverage::TrustPod)
  19. BuildRequires: perl(Sub::Exporter)
  20. BuildRequires: perl(Test::EOL)
  21. BuildRequires: perl(Test::Fatal)
  22. BuildRequires: perl(Test::More) >= 0.88
  23. BuildRequires: perl(Test::NoTabs)
  24. BuildRequires: perl(Test::Pod) >= 1.41
  25. BuildRequires: perl(Test::Pod::Coverage) >= 1.08
  26. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  27. %description
  28. One shortcoming of the CPAN clients that currently exist is that they have no
  29. way of specifying conflicting downstream dependencies of modules. This module
  30. attempts to work around this issue by allowing you to specify conflicting
  31. versions of modules separately, and deal with them after the module is done
  32. installing.
  33. For instance, say you have a module Foo, and some other module Bar uses Foo. If
  34. Foo were to change its API in a non-backwards-compatible way, this would cause
  35. Bar to break until it is updated to use the new API. Foo can't just depend on
  36. the fixed version of Bar, because this will cause a circular dependency
  37. (because Bar is already depending on Foo), and this doesn't express intent
  38. properly anyway - Foo doesn't use Bar at all. The ideal solution would be for
  39. there to be a way to specify conflicting versions of modules in a way that would
  40. let CPAN clients update conflicting modules automatically after an existing
  41. module is upgraded, but until that happens, this module will allow users to do
  42. this manually.
  43. %prep
  44. %setup -q -n Dist-CheckConflicts-%{version}
  45. %build
  46. perl Makefile.PL INSTALLDIRS=vendor
  47. make %{?_smp_mflags}
  48. %install
  49. rm -rf %{buildroot}
  50. make pure_install DESTDIR=%{buildroot}
  51. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  52. find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
  53. %{_fixperms} %{buildroot}
  54. %check
  55. make test RELEASE_TESTING=1
  56. %clean
  57. rm -rf %{buildroot}
  58. %files
  59. %defattr(-,root,root,-)
  60. %doc Changes LICENSE README
  61. %{perl_vendorlib}/Dist/
  62. %{_mandir}/man3/Dist::CheckConflicts.3pm*
  63. %changelog
  64. * Fri Dec 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.11-1
  65. - updated to 0.11
  66. - built with perl 5.16.3
  67. - added BR: perl(Module::Runtime)
  68. * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.02-1
  69. - initial build for Vine Linux
  70. * Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.02-5
  71. - Pod::Coverage::TrustPod now available in all supported releases
  72. - BR: perl(Carp)
  73. * Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.02-4
  74. - Perl mass rebuild
  75. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.02-3
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  77. * Wed Jan 5 2011 Paul Howarth <paul@city-fan.org> - 0.02-2
  78. - Sanitize for Fedora submission
  79. * Tue Jan 4 2011 Paul Howarth <paul@city-fan.org> - 0.02-1
  80. - Initial RPM version