Skip to content

Commit

Permalink
Replaced invalid use of Conflicts with Requires
Browse files Browse the repository at this point in the history
  • Loading branch information
sbluhm committed Dec 24, 2023
1 parent e4ef694 commit 77234f4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions spacewalk/package/spacewalk.changes.sbluhm.postgresql15
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Allow parameterisation of min/max PostgreSQL version for Enterprise Linux.
- Adapt usage of postgresql_version_max to allow minor versions.
- Remove creation of initdb symlink for Enterprise Linux to avoid package conflicts with PostgreSQL 15.
- Replaced invalid use of Conflicts in spec file with Requires.
8 changes: 4 additions & 4 deletions spacewalk/package/spacewalk.spec
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ Requires: spacewalk-java-postgresql
Requires: perl(DBD::Pg)
%if 0%{?suse_version}
Requires: postgresql-implementation >= %{postgresql_version_min}
Requires: postgresql-implementation <= %{postgresql_version_max}.9999
Requires: postgresql-contrib-implementation >= %{postgresql_version_min}
Conflicts: postgresql-implementation > %{postgresql_version_max}.9999
Conflicts: postgresql-contrib-implementation > %{postgresql_version_max}:.9999
Requires: postgresql-contrib-implementation <= %{postgresql_version_max}:.9999
%else # not a supported SUSE version or alternative OS.
Requires: postgresql >= %{postgresql_version_min}
Requires: postgresql <= %{postgresql_version_max}.9999
Requires: postgresql-contrib >= %{postgresql_version_min}
Conflicts: postgresql > %{postgresql_version_max}.9999
Conflicts: postgresql-contrib > %{postgresql_version_max}.9999
Requires: postgresql-contrib <= %{postgresql_version_max}.9999
%endif # if sle_Version

%description postgresql
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- Allow parameterisation of min/max PostgreSQL version for Enterprise Linux.
- Adapt usage of postgresql_version_max to allow minor versions.
- Replaced invalid use of Conflicts in spec file with Requires.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%if 0%{?suse_version}
Requires: postgresql-server-implementation >= %{postgresql_version_min}
Requires: postgresql-server-implementation <= %{postgresql_version_max}.9999
Requires: postgresql-contrib-implementation >= %{postgresql_version_min}
Conflicts: postgresql-server-implementation > %{postgresql_version_max}.9999
Conflicts: postgresql-contrib-implementation > %{postgresql_version_max}.9999
Requires: postgresql-contrib-implementation <= %{postgresql_version_max}.9999
%else
Requires: postgresql-server >= %{postgresql_version_min}
Requires: postgresql-server <= %{postgresql_version_max}.9999
Requires: postgresql-contrib >= %{postgresql_version_min}
Conflicts: postgresql-server > %{postgresql_version_max}.9999
Conflicts: postgresql-contrib > %{postgresql_version_max}.9999
Requires: postgresql-contrib <= %{postgresql_version_max}.9999
%endif
Requires: lsof

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
- Allow parameterisation of min/max PostgreSQL version for Enterprise Linux.
- Adapt usage of postgresql_version_max to allow minor versions.
- Replaced invalid use of Conflicts in spec file with Requires.
8 changes: 4 additions & 4 deletions spacewalk/uyuni-setup-reportdb/uyuni-setup-reportdb.spec
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%if 0%{?suse_version}
Requires: postgresql-server-implementation >= %{postgresql_version_min}
Requires: postgresql-server-implementation <= %{postgresql_version_max}.9999
Requires: postgresql-contrib-implementation >= %{postgresql_version_min}
Conflicts: postgresql-server-implementation > %{postgresql_version_max}.9999
Conflicts: postgresql-contrib-implementation > %{postgresql_version_max}.9999
Requires: postgresql-contrib-implementation <= %{postgresql_version_max}.9999
%else
Requires: postgresql-server >= %{postgresql_version_min}
Requires: postgresql-server <= %{postgresql_version_max}.9999
Requires: postgresql-contrib >= %{postgresql_version_min}
Conflicts: postgresql-server < %{postgresql_version_max}.9999
Conflicts: postgresql-contrib < %{postgresql_version_max}.9999
Requires: postgresql-contrib <= %{postgresql_version_max}.9999
%endif
Requires: lsof
Requires: susemanager-schema-utility
Expand Down

0 comments on commit 77234f4

Please sign in to comment.