Remove lua, perl, ruby, php and gobject bindings in RHEL

gobject has always been problematic, and currently it does not work
well with the latest version of GObject.

lua, perl, ruby and php are reckoned to be unused in RHEL and pose
considerable difficulties to maintenance.  Remove them, with a view to
re-adding later if a customer complains.

(cherry picked from commit 4098de8c52789f30ac9557e934b24fb1c57020af)
This commit is contained in:
Richard W.M. Jones 2024-05-13 15:34:36 +01:00
parent 8da9771be3
commit 0bcd2b685d

View File

@ -146,7 +146,6 @@ BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-findlib-devel BuildRequires: ocaml-findlib-devel
%if !0%{?rhel} %if !0%{?rhel}
BuildRequires: ocaml-ounit-devel BuildRequires: ocaml-ounit-devel
%endif
BuildRequires: lua BuildRequires: lua
BuildRequires: lua-devel BuildRequires: lua-devel
BuildRequires: perl-devel BuildRequires: perl-devel
@ -158,8 +157,10 @@ BuildRequires: perl(Test::Pod::Coverage) >= 1.00
BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build)
BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Locale::TextDomain) BuildRequires: perl(Locale::TextDomain)
%endif
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-libvirt BuildRequires: python3-libvirt
%if !0%{?rhel}
BuildRequires: ruby-devel BuildRequires: ruby-devel
BuildRequires: rubygem-rake BuildRequires: rubygem-rake
# json is not pulled in automatically, see RHBZ#1325022 # json is not pulled in automatically, see RHBZ#1325022
@ -170,7 +171,6 @@ BuildRequires: ruby-irb
BuildRequires: php-devel BuildRequires: php-devel
BuildRequires: gobject-introspection-devel BuildRequires: gobject-introspection-devel
BuildRequires: gjs BuildRequires: gjs
%if !0%{?rhel}
BuildRequires: vala BuildRequires: vala
%endif %endif
%ifarch %{golang_arches} %ifarch %{golang_arches}
@ -375,17 +375,23 @@ For developers:
Language bindings: Language bindings:
libguestfs-gobject-devel GObject bindings and GObject Introspection %if !0%{?rhel}
libguestfs-gobject-devel GObject bindings and GObject Introspection
%endif
%ifarch %{golang_arches} %ifarch %{golang_arches}
golang-guestfs Go language bindings golang-guestfs Go language bindings
%endif %endif
%if !0%{?rhel}
lua-guestfs Lua bindings lua-guestfs Lua bindings
%endif
ocaml-libguestfs-devel OCaml bindings ocaml-libguestfs-devel OCaml bindings
%if !0%{?rhel}
perl-Sys-Guestfs Perl bindings perl-Sys-Guestfs Perl bindings
php-libguestfs PHP bindings php-libguestfs PHP bindings
%endif
python3-libguestfs Python 3 bindings python3-libguestfs Python 3 bindings
ruby-libguestfs Ruby bindings
%if !0%{?rhel} %if !0%{?rhel}
ruby-libguestfs Ruby bindings
libguestfs-vala Vala language bindings libguestfs-vala Vala language bindings
%endif %endif
@ -560,6 +566,7 @@ ocaml-%{name}-devel contains development libraries
required to use the OCaml bindings for %{name}. required to use the OCaml bindings for %{name}.
%if !0%{?rhel}
%package -n perl-Sys-Guestfs %package -n perl-Sys-Guestfs
Summary: Perl bindings for %{name} (Sys::Guestfs) Summary: Perl bindings for %{name} (Sys::Guestfs)
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
@ -567,6 +574,7 @@ Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
%description -n perl-Sys-Guestfs %description -n perl-Sys-Guestfs
perl-Sys-Guestfs contains Perl bindings for %{name} (Sys::Guestfs). perl-Sys-Guestfs contains Perl bindings for %{name} (Sys::Guestfs).
%endif
%package -n python3-%{name} %package -n python3-%{name}
@ -579,6 +587,7 @@ Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
python3-%{name} contains Python 3 bindings for %{name}. python3-%{name} contains Python 3 bindings for %{name}.
%if !0%{?rhel}
%package -n ruby-%{name} %package -n ruby-%{name}
Summary: Ruby bindings for %{name} Summary: Ruby bindings for %{name}
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
@ -631,7 +640,6 @@ This package is needed if you want to write software using the
GObject bindings. It also contains GObject Introspection information. GObject bindings. It also contains GObject Introspection information.
%if !0%{?rhel}
%package vala %package vala
Summary: Vala for %{name} Summary: Vala for %{name}
Requires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
@ -1006,11 +1014,13 @@ rm ocaml/html/.gitignore
%{_mandir}/man3/guestfs-ocaml.3* %{_mandir}/man3/guestfs-ocaml.3*
%if !0%{?rhel}
%files -n perl-Sys-Guestfs %files -n perl-Sys-Guestfs
%doc perl/examples/*.pl %doc perl/examples/*.pl
%{perl_vendorarch}/* %{perl_vendorarch}/*
%{_mandir}/man3/Sys::Guestfs.3pm* %{_mandir}/man3/Sys::Guestfs.3pm*
%{_mandir}/man3/guestfs-perl.3* %{_mandir}/man3/guestfs-perl.3*
%endif
%files -n python3-%{name} %files -n python3-%{name}
@ -1021,6 +1031,7 @@ rm ocaml/html/.gitignore
%{_mandir}/man3/guestfs-python.3* %{_mandir}/man3/guestfs-python.3*
%if !0%{?rhel}
%files -n ruby-%{name} %files -n ruby-%{name}
%doc ruby/examples/*.rb %doc ruby/examples/*.rb
%doc ruby/doc/site/* %doc ruby/doc/site/*
@ -1058,7 +1069,6 @@ rm ocaml/html/.gitignore
%{_mandir}/man3/guestfs-gobject.3* %{_mandir}/man3/guestfs-gobject.3*
%if !0%{?rhel}
%files vala %files vala
%{_datadir}/vala/vapi/libguestfs-gobject-1.0.deps %{_datadir}/vala/vapi/libguestfs-gobject-1.0.deps
%{_datadir}/vala/vapi/libguestfs-gobject-1.0.vapi %{_datadir}/vala/vapi/libguestfs-gobject-1.0.vapi
@ -1089,6 +1099,7 @@ rm ocaml/html/.gitignore
%changelog %changelog
* Mon May 13 2024 Richard W.M. Jones <rjones@redhat.com> - 1:1.52.1-1 * Mon May 13 2024 Richard W.M. Jones <rjones@redhat.com> - 1:1.52.1-1
- New stable branch version 1.52.1 - New stable branch version 1.52.1
- Remove lua, perl, ruby, php and gobject bindings in RHEL
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.52.0-7 * Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.52.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild