Import libyui-4.2.16

This commit is contained in:
Sofia Boldyreva 2023-09-11 14:53:35 +02:00
parent 4d1e8b4e2b
commit 7298c91e3b
1 changed files with 103 additions and 13 deletions

View File

@ -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: 12%{?dist}
Summary: GUI-abstraction library
License: (LGPLv2 or LGPLv3) and MIT
@ -41,9 +47,10 @@ BuildRequires: perl-devel
BuildRequires: rubygems
BuildRequires: swig
BuildRequires: fontconfig-devel
BuildRequires: perl-macros
BuildRequires: perl-generators
BuildRequires: python3-devel
BuildRequires: pkgconfig(ruby)
BuildRequires: pkgconfig(libpng)
@ -55,7 +62,7 @@ BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(ncursesw)
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(libyui-mga)
%description
This is the user interface engine that provides the abstraction
@ -106,9 +113,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.
@ -140,6 +147,54 @@ develop extensions for libyui-qt.
%{_libdir}/pkgconfig/libyui-qt.pc
#-----------------------------------------------------------------------
# libyui-qt-graph
%package -n %libqtgraph
Summary: Libyui - Qt graph component for libyui.
Group: System/Libraries
BuildRequires: graphviz-devel
Requires: qt5-qtx11extras
Provides: %{yui_qt_graph_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
%doc COPYING*
%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_graph_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
@ -147,7 +202,7 @@ develop extensions for libyui-qt.
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 +277,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,
@ -257,17 +312,18 @@ interfaces (Qt, Gtk) and text based user interfaces (ncurses).
%prep
%autosetup
%autosetup -p1
%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 \
-S . -B %{__cmake_builddir} \
-S . -B %{__cmake_builddir} \
-DWERROR=FALSE \
-DBUILD_EXAMPLES=OFF \
-DWITH_MGA=ON \
-DWITH_MONO=OFF \
-DPYTHON_EXECUTABLE=%{python3} \
-DPYTHON_INCLUDE_DIR=%(%{__python3} -Ic "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
@ -281,7 +337,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
@ -292,10 +348,44 @@ install -m0755 -d %{buildroot}%{_libdir}/yui
%changelog
* Mon Sep 11 2023 Sofia Boldyreva <sboldyreva@almalinux.prg> - 4.2.16-1
* Mon Sep 11 2023 Sofia Boldyreva <sboldyreva@almalinux.prg> - 4.2.16-12
- Replaced pkgconfig(python3) with python3-devel in BuildRequires to build for AlmaLinux 8
- Added -S . -B %%{__cmake_builddir}, edited -DPYTHON_INCLUDE_DIR=%%(%%{__python3} -Ic "from distutils.sysconfig import get_python_inc; print(get_python_inc())") to build for AlmaLinux 8
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.16-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 4.2.16-11
- Perl 5.38 rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 4.2.16-10
- Rebuilt for Python 3.12
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.16-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Jan 04 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.2.16-8
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_3.2
* Mon Dec 12 2022 Jitka Plesnikova <jplesnik@redhat.com> - 4.2.16-7
- Add BR perl-generators to automatically generates run-time dependencies
for installed Perl files
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.16-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 4.2.16-5
- Rebuilt for Python 3.11
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 4.2.16-4
- Perl 5.36 rebuild
* Tue Mar 08 2022 Onuralp Sezer <thunderbirdtr@fedoraproject.org> - 4.2.16-3
- Cmake with-mga enabled.
* Tue Feb 22 2022 Onuralp Sezer <thunderbirdtr@fedoraproject.org> - 4.2.16-2
- Adding libyui-qt-graph and spec file clean up
* Tue Feb 22 2022 Onuralp Sezer <thunderbirdtr@fedoraproject.org> - 4.2.16-1
- Version 4.2.16