perl-Dist-CheckConflicts-vl.spec 3.2 KB

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