Tighten subpackage deps with %%{_isa}

epel9
Kalev Lember 2 years ago
parent 5db803bc6f
commit ce06971a59

@ -44,7 +44,7 @@ Code 93, Code 39, Codabar, Interleaved 2 of 5, QR Code and SQ Code.
%package devel
Summary: Bar code library extra development files
Requires: pkgconfig
Requires: %{name}-libs = %{version}-%{release}
Requires: %{name}-libs%{_isa} = %{version}-%{release}
%description devel
This package contains header files and additional libraries used for
@ -58,7 +58,7 @@ This package contains the ZBar Bar Code Reader library.
%package gtk
Summary: Bar code reader GTK widget
Requires: %{name}-libs = %{version}-%{release}
Requires: %{name}-libs%{_isa} = %{version}-%{release}
# Obsoleted in F37
Obsoletes: %{name}-gi < %{version}-%{release}
@ -68,8 +68,8 @@ applications based on GTK+-2.0.
%package gtk-devel
Summary: Bar code reader GTK widget extra development files
Requires: %{name}-devel = %{version}-%{release}
Requires: %{name}-gtk = %{version}-%{release}
Requires: %{name}-devel%{_isa} = %{version}-%{release}
Requires: %{name}-gtk%{_isa} = %{version}-%{release}
Requires: pkgconfig
%description gtk-devel
@ -79,7 +79,7 @@ scanning widget.
%package qt
Summary: Bar code reader Qt widget
Requires: %{name}-libs = %{version}-%{release}
Requires: %{name}-libs%{_isa} = %{version}-%{release}
%description qt
This package contains a bar code scanning widget for use with GUI
@ -87,8 +87,8 @@ applications based on Qt4.
%package qt-devel
Summary: Bar code reader Qt widget extra development files
Requires: %{name}-devel = %{version}-%{release}
Requires: %{name}-qt = %{version}-%{release}
Requires: %{name}-devel%{_isa} = %{version}-%{release}
Requires: %{name}-qt%{_isa} = %{version}-%{release}
Requires: pkgconfig
%description qt-devel
@ -98,7 +98,7 @@ scanning widget.
%package python3
Summary: Bar code reader PyGTK widget
Requires: %{name}-libs = %{version}-%{release}
Requires: %{name}-libs%{_isa} = %{version}-%{release}
Requires: python3-pillow
%description python3
@ -108,8 +108,8 @@ python applications that work with images.
%if %{JAVA}
%package java
Summary: Bar code reader Java library
Requires: %{name}-devel = %{version}-%{release}
Requires: %{name}-gtk = %{version}-%{release}
Requires: %{name}-devel%{_isa} = %{version}-%{release}
Requires: %{name}-gtk%{_isa} = %{version}-%{release}
Requires: pkgconfig
%description java
@ -223,6 +223,7 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
- Sort BuildRequires and Requires and split them out one per line
- Move GObject Introspection bindings to -gtk and -gtk-devel subpackages
- Split libzbar out to zbar-libs subpackage
- Tighten subpackage deps with %%{_isa}
* Mon Aug 01 2022 Gwyn Ciesla <gwync@protonmail.com> - 0.23.90-4
- Only build Java on supported platforms.

Loading…
Cancel
Save