diff --git a/libyui.spec b/libyui.spec index dffe3aa..d197bdd 100644 --- a/libyui.spec +++ b/libyui.spec @@ -1,6 +1,6 @@ Name: libyui Version: 4.3.3 -Release: 1mamba +Release: 2mamba Summary: A widget abstraction library providing Qt, GTK and ncurses frontends Group: System/Libraries Vendor: openmamba @@ -15,9 +15,17 @@ BuildRequires: libQt5X11Extras-devel BuildRequires: libgcc BuildRequires: libgraphviz-devel BuildRequires: libncurses-devel +BuildRequires: libperl +BuildRequires: libpython3-devel +BuildRequires: libruby-devel BuildRequires: libstdc++6-devel +BuildRequires: libyui-mga-devel +BuildRequires: perl-devel BuildRequires: qt5-qtbase-devel ## AUTOBUILDREQ-END +%if "%{stage1}" != "1" +BuildRequires: libyui-mga-devel +%endif %description Libyui is a widget abstraction library providing Qt, GTK and ncurses frontends. Originally it was developed for YaST but it can be used in any independent project. @@ -84,6 +92,33 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description tools This package contains utility applications for %{name}. +%package -n perl-yui +Group: System/Libraries/Perl +Summary: Perl bindings to %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n perl-yui +Libyui is a widget abstraction library providing Qt, GTK and ncurses frontends. +This package contains the Perl bindings to %{name}. + +%package -n python-yui +Group: System/Libraries/Python +Summary: Python bindings to %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n python-yui +Libyui is a widget abstraction library providing Qt, GTK and ncurses frontends. +This package contains the Python bindings to %{name}. + +%package -n ruby-yui +Group: System/Libraries/Ruby +Summary: Ruby bindings to %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n ruby-yui +Libyui is a widget abstraction library providing Qt, GTK and ncurses frontends. +This package contains the Ruby bindings to %{name}. + %debug_package %prep @@ -91,15 +126,15 @@ This package contains utility applications for %{name}. sed -i "s|ncursesw/||" libyui-ncurses/src/* %build -for pkgname in libyui libyui-qt libyui-qt-graph libyui-ncurses;do +for pkgname in libyui libyui-qt libyui-qt-graph libyui-ncurses libyui-bindings;do cd ${pkgname} %cmake -d build \ -DWERROR=FALSE \ -DBUILD_EXAMPLES=OFF \ -DWITH_MGA=ON \ -DWITH_MONO=OFF \ - -DPYTHON_EXECUTABLE=%{python3} \ - -DPYTHON_INCLUDE_DIR=%{_includedir}/python%{python3_version} \ + -DPYTHON_EXECUTABLE=%{__python3} \ + -DPYTHON_INCLUDE_DIR=%{python3_inc} \ -DPYTHON_SITEDIR=%{python3_sitearch} \ -DPYTHON_LIB_DIR=%{python3_sitelib} @@ -109,7 +144,7 @@ done %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -for pkgname in libyui libyui-qt libyui-qt-graph libyui-ncurses;do +for pkgname in libyui libyui-qt libyui-qt-graph libyui-ncurses libyui-bindings;do cd ${pkgname} %makeinstall -C build cd .. @@ -169,6 +204,23 @@ done %defattr(-,root,root) %{_bindir}/libyui-terminal +%files -n perl-yui +%defattr(-,root,root) +%{perl_vendorarch}/yui.so +%{perl_vendorlib}/yui.pm + +%files -n python-yui +%defattr(-,root,root) +%{python3_sitearch}/_yui.so +%{python3_sitearch}/yui.py + +%files -n ruby-yui +%defattr(-,root,root) +%{_libdir}/ruby/vendor_ruby/*/*/_yui.so + %changelog +* Thu Nov 10 2022 Silvan Calarco 4.3.3-2mamba +- added bindings subpackages + * Thu Nov 10 2022 Silvan Calarco 4.3.3-1mamba - package created using the webbuild interface