diff --git a/postgresql12.changes b/postgresql12.changes index b6103f3..3d9c8ef 100644 --- a/postgresql12.changes +++ b/postgresql12.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 11 04:15:40 UTC 2020 - Stefan BrĂ¼ns + +- Avoid the dependency from the devel package to the main package. + devel packages are exclusive, thus ecpg does not require + update-alternatives. + ------------------------------------------------------------------- Thu Feb 6 17:13:41 UTC 2020 - Reinhard Max diff --git a/postgresql12.spec b/postgresql12.spec index e9c9f84..2e73a8b 100644 --- a/postgresql12.spec +++ b/postgresql12.spec @@ -199,8 +199,6 @@ Group: Development/Libraries/C and C++ Provides: postgresql-devel-implementation = %version-%release Requires: %libecpg >= %version Requires: %libpq >= %version -Requires(post): postgresql-noarch >= %pgmajor -Requires(postun): postgresql-noarch >= %pgmajor # Installation of postgresql??-devel is exclusive Provides: postgresql-devel-exclusive = %pgmajor Conflicts: postgresql-devel-exclusive < %pgmajor @@ -614,7 +612,9 @@ done popd mkdir -p %buildroot%pgmandir/man1 cp -a doc/src/sgml/man1/ecpg.1 %buildroot%pgmandir/man1/ecpg.1pg%pgmajor -genlists devel ecpg +# No update-alternatives, devel-packages are exclusive +ln -s %pgbindir/ecpg %buildroot%_bindir/ecpg +%find_lang ecpg-%{pgmajor} devel.files # Build up the file lists for the libpq and libecpg packages cat > libpq.files <