Split libzbar out to zbar-libs subpackage

This allows other apps that link with libzbar, such as GNOME
authenticator to not have to pull in GraphicsMagick that
/usr/bin/zbarimg depends on.
epel9
Kalev Lember 2 years ago
parent a8a6072c5d
commit 5db803bc6f

@ -44,15 +44,21 @@ 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} = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
%description devel
This package contains header files and additional libraries used for
developing applications that read bar codes with this library.
%package libs
Summary: Bar code reader library
%description libs
This package contains the ZBar Bar Code Reader library.
%package gtk
Summary: Bar code reader GTK widget
Requires: %{name} = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
# Obsoleted in F37
Obsoletes: %{name}-gi < %{version}-%{release}
@ -73,7 +79,7 @@ scanning widget.
%package qt
Summary: Bar code reader Qt widget
Requires: %{name} = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
%description qt
This package contains a bar code scanning widget for use with GUI
@ -92,7 +98,7 @@ scanning widget.
%package python3
Summary: Bar code reader PyGTK widget
Requires: %{name} = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
Requires: python3-pillow
%description python3
@ -152,16 +158,17 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
%find_lang zbar
%files -f zbar.lang
%files
%doc NEWS.md README.md INSTALL.md
%license COPYING LICENSE.md
%{_bindir}/zbarimg
%{_bindir}/zbarcam
%{_libdir}/libzbar.so.*
%{_mandir}/man1/*
%{_sysconfdir}/dbus-1/system.d/org.linuxtv.Zbar.conf
%files libs -f zbar.lang
%license COPYING LICENSE.md
%{_libdir}/libzbar.so.0*
%files devel
%doc HACKING.md TODO.md
@ -215,6 +222,7 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
* Fri Aug 26 2022 Kalev Lember <klember@redhat.com> - 0.23.90-5
- 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
* Mon Aug 01 2022 Gwyn Ciesla <gwync@protonmail.com> - 0.23.90-4
- Only build Java on supported platforms.

Loading…
Cancel
Save