From 5db803bc6fb9b7c3664237cc4854370f69a9db89 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Fri, 26 Aug 2022 15:57:15 +0200 Subject: [PATCH] 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. --- zbar.spec | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/zbar.spec b/zbar.spec index 7617543..2c9fb56 100644 --- a/zbar.spec +++ b/zbar.spec @@ -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 - 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 - 0.23.90-4 - Only build Java on supported platforms.