Move GObject Introspection bindings to -gtk and -gtk-devel subpackages

... so it's packaged the same way as we package all of GNOME libraries.
epel9
Kalev Lember 2 years ago
parent 1eb32e16c5
commit a8a6072c5d

@ -53,20 +53,13 @@ developing applications that read bar codes with this library.
%package gtk
Summary: Bar code reader GTK widget
Requires: %{name} = %{version}-%{release}
# Obsoleted in F37
Obsoletes: %{name}-gi < %{version}-%{release}
%description gtk
This package contains a bar code scanning widget for use with GUI
applications based on GTK+-2.0.
%package gi
Summary: Bar code reader GObject Introspection (GIR) Gtk bindings
Requires: %{name}-gtk = %{version}-%{release}
%description gi
This package contains a bar code scanning GObject Introspection
(GIR) Gtk bindings, with allow the usage of ZBar with GUI
support on any application compatible with GIR, like python3.
%package gtk-devel
Summary: Bar code reader GTK widget extra development files
Requires: %{name}-devel = %{version}-%{release}
@ -189,17 +182,15 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
%files gtk
%{_libdir}/libzbargtk.so.*
%{_bindir}/zbarcam-gtk
%files gi
%dir %{_libdir}/girepository-1.0
%dir %{_datadir}/gir-1.0
%{_libdir}/girepository-1.0/ZBar-1.0.typelib
%{_datadir}/gir-1.0/ZBar-1.0.gir
%files gtk-devel
%{_libdir}/libzbargtk.so
%{_libdir}/pkgconfig/zbar-gtk.pc
%{_includedir}/zbar/zbargtk.h
%dir %{_datadir}/gir-1.0
%{_datadir}/gir-1.0/ZBar-1.0.gir
%files qt
%{_libdir}/libzbarqt.so.*
@ -223,6 +214,7 @@ rm -rf $RPM_BUILD_ROOT/usr/share/doc/zbar-%{version}/
%changelog
* 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
* Mon Aug 01 2022 Gwyn Ciesla <gwync@protonmail.com> - 0.23.90-4
- Only build Java on supported platforms.

Loading…
Cancel
Save