perl-Dist-CheckConflicts-vl.spec 3.2 KB

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