From ab3b2684f4b4bf2fb727494823deb4d5645f5f7d Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Feb 22 2022 01:10:18 +0000 Subject: Adding libyui-qt-graph and spec file clean up the spec file Signed-off-by: Onuralp SEZER --- diff --git a/libyui.spec b/libyui.spec index 7bf397a..6e5e0c9 100644 --- a/libyui.spec +++ b/libyui.spec @@ -21,12 +21,18 @@ %define libqt libyui-qt %define devqt libyui-qt-devel -%define libzypp_devel_version libzypp-devel >= 17.21.0 +#-------------------------------------------------------- +# Package libyui-qt-graph +%define yui_qt_graph_name libyui-qt-graph + +%define libqtgraph libyui-qt-graph +%define devqtgraph libyui-qt-graph-devel + Name: %{libname} Version: 4.2.16 -Release: 1%{?dist} +Release: 2%{?dist} Summary: GUI-abstraction library License: (LGPLv2 or LGPLv3) and MIT @@ -106,9 +112,9 @@ interfaces (ncurses). %package -n %libqt Summary: Libyui - Qt (graphical) user interface Group: System/Libraries -Requires: %{_lib}qt5x11extras5 +Requires: qt5-qtx11extras Provides: %{yui_qt_name} = %{version}-%{release} -Obsoletes: %{_lib}yui%{major_so_ver}-qt < 4.2.15 + %description -n %libqt This package contains the Qt (graphical) user interface component for libyui. @@ -141,13 +147,59 @@ develop extensions for libyui-qt. #----------------------------------------------------------------------- +# libyui-qt-graph + + +%package -n %libqtgraph +Summary: Libyui - Qt graph component for libyui. +Group: System/Libraries +Requires: qt5-qtx11extras +Provides: %{yui_qt_name} = %{version}-%{release} + + +%description -n %libqtgraph +This package contains the Qt graph component for libyui. + +This is a special widget to visualize graphs such as the +storage device hierarchy (disks, partitions, subvolumes +etc.). and similar graphviz-generated graphs. + + +%files -n%libqtgraph +%dir %{_libdir}/yui +%{_libdir}/yui/%libqtgraph.so.* + + +#----------------------------------------------------------------------- +# libyui-qt-graph-devel + + +%package -n %devqtgraph +Summary: Libyui - Qt (graphical) user interface header files +Group: Development/KDE and Qt +Requires: libyui-devel +Requires: %{yui_qt_name} = %{version}-%{release} +Provides: yui-qt-devel = %{version}-%{release} + +%description -n %devqtgraph +This package contains the header files for the Qt based user interface +component for libyui. + +This package is not needed to develop libyui-based applications, only to +develop extensions for libyui-qt. + +%files -n %devqtgraph +%{_includedir}/yui/qt-graph/* + + +#----------------------------------------------------------------------- # libyui-ncurses %package -n %libncurses Summary: Libyui - NCurses (text based) user interface Group: System/Libraries Provides: %{yui_ncurses_name} = %{version}-%{release} -Obsoletes: %{_lib}yui%{major_so_ver}-ncurses < 4.2.15 + %description -n %libncurses This package contains the NCurses (text based) user interface component for @@ -222,7 +274,7 @@ interfaces (Qt, Gtk) and text based user interfaces (ncurses). License: GPLv2+ Summary: Python 3 bindings for libyui Group: Development/Python -%{?python_provide:%python_provide python3-yui} + %description -n python3-yui This package provides Python 3 language bindings to access functions of libyui, @@ -261,7 +313,7 @@ interfaces (Qt, Gtk) and text based user interfaces (ncurses). %build - for pkgname in libyui libyui-qt libyui-ncurses libyui-bindings ;do + for pkgname in libyui libyui-qt libyui-qt-graph libyui-ncurses libyui-bindings ;do pushd $pkgname %cmake \ @@ -280,7 +332,7 @@ interfaces (Qt, Gtk) and text based user interfaces (ncurses). %install -for pkgname in libyui libyui-qt libyui-ncurses libyui-bindings ;do +for pkgname in libyui libyui-qt libyui-qt-graph libyui-ncurses libyui-bindings ;do pushd $pkgname %cmake_install popd @@ -290,6 +342,9 @@ install -m0755 -d %{buildroot}%{_libdir}/yui %changelog +* Tue Feb 22 2022 Onuralp Sezer - 4.2.16-2 +- Adding libyui-qt-graph and spec file clean up + * Tue Feb 22 2022 Onuralp Sezer - 4.2.16-1 - Version 4.2.16