packaging: Fix RPM -qt subpackage requires

The BuildRequires and Requires for the -qt subpackage need to
go into its %package section, not its %description section.
The dependencies were not being enforced, but instead being added
to the description of the GUI package.
This commit is contained in:
John Thacker 2022-01-05 21:43:43 -05:00 committed by A Wireshark GitLab Utility
parent 734d8cfbee
commit 858402d3c7
1 changed files with 4 additions and 3 deletions

View File

@ -188,9 +188,6 @@ Summary: Wireshark's Qt-based GUI
Group: Applications/Internet
# XXX Recent versions of rpm (Fedora 33 et al.) warn about unversioned "Obsoletes".
Obsoletes: wireshark-gnome wireshark-gtk
%description qt
This package contains the Qt Wireshark GUI and desktop integration files.
Requires: %{name} = %{version}-%{release}
BuildRequires: gcc-c++
%if 0%{?suse_version}
@ -215,12 +212,16 @@ BuildRequires: desktop-file-utils
Requires(post): desktop-file-utils
# Add this for more readable fonts on some distributions/versions
#Requires: dejavu-sans-mono-fonts
%description qt
This package contains the Qt Wireshark GUI and desktop integration files.
%endif
%package devel
Summary: Development headers for Wireshark
Group: Applications/Internet
Requires: %{name} = %{version}-%{release}
%description devel
The wireshark-devel package contains the header and other files required for
development of Wireshark scripts and plugins.