Make the inter-package dependencies work after next mass rebuild
This makes sure the dependencies are specified in a way that won't break next time: - when possible, use %{version}-%{release} directly to avoid inconsistency - for npm, make the dependency >= without %{?dist} - that makes sure it works even with minorbumps - npm already requires nodejs == E:V-R, so this won't break Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1734582
This commit is contained in:
parent
ba96d36947
commit
1cd522fb38
@ -168,7 +168,7 @@ Requires: openssl >= %{openssl_minimum}
|
|||||||
# we need the system certificate store
|
# we need the system certificate store
|
||||||
Requires: ca-certificates
|
Requires: ca-certificates
|
||||||
|
|
||||||
Requires: nodejs-libs%{?_isa} = %{epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
|
Requires: nodejs-libs%{?_isa} = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
|
|
||||||
#we need ABI virtual provides where SONAMEs aren't enough/not present so deps
|
#we need ABI virtual provides where SONAMEs aren't enough/not present so deps
|
||||||
@ -219,9 +219,9 @@ Provides: bundled(icu) = %{icu_version}
|
|||||||
# Make sure we keep NPM up to date when we update Node.js
|
# Make sure we keep NPM up to date when we update Node.js
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
# EPEL doesn't support Recommends, so make it strict
|
# EPEL doesn't support Recommends, so make it strict
|
||||||
Requires: npm = %{npm_epoch}:%{npm_version}-%{npm_release}%{?dist}
|
Requires: npm >= %{npm_epoch}:%{npm_version}-%{npm_release}
|
||||||
%else
|
%else
|
||||||
Recommends: npm = %{npm_epoch}:%{npm_version}-%{npm_release}%{?dist}
|
Recommends: npm >= %{npm_epoch}:%{npm_version}-%{npm_release}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
@ -293,7 +293,7 @@ Release: %{npm_release}%{?dist}
|
|||||||
# now.
|
# now.
|
||||||
Obsoletes: npm < 0:3.5.4-6
|
Obsoletes: npm < 0:3.5.4-6
|
||||||
Provides: npm = %{npm_epoch}:%{npm_version}
|
Provides: npm = %{npm_epoch}:%{npm_version}
|
||||||
Requires: nodejs = %{epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
|
Requires: nodejs = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
# Do not add epoch to the virtual NPM provides or it will break
|
# Do not add epoch to the virtual NPM provides or it will break
|
||||||
# the automatic dependency-generation script.
|
# the automatic dependency-generation script.
|
||||||
|
Loading…
Reference in New Issue
Block a user