SHA256
1
0
forked from pool/plymouth

Accepting request 720834 from home:StefanBruens:branches:Base:System

Fix uninstallable plymouth-devel package due to syntax errors in spec file (uninstallable in Staging:B).

OBS-URL: https://build.opensuse.org/request/show/720834
OBS-URL: https://build.opensuse.org/package/show/Base:System/plymouth?expand=0&rev=236
This commit is contained in:
Cliff Zhao 2019-08-05 03:35:40 +00:00 committed by Git OBS Bridge
parent 912da92afa
commit fe97b2baf4
2 changed files with 16 additions and 15 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Aug 4 03:51:50 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Use bcond_with for X11 renderer, cleanup syntax
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 31 11:36:57 UTC 2019 - Cliff Zhao <qzhao@suse.com> Wed Jul 31 11:36:57 UTC 2019 - Cliff Zhao <qzhao@suse.com>

View File

@ -16,10 +16,9 @@
# #
# plymouth's Xwindow backend render will import many new gtk functions in build period, # plymouth's X11 renderer adds many GTK3 packages to the build cycle,
# this will increase the compilation complexity. and the Xwindow render is not used in # it is not used in the production environment.
# the production envronment. %bcond_with x11_renderer
%define support_Xwindow_backend 0
%define plymouthdaemon_execdir %{_sbindir} %define plymouthdaemon_execdir %{_sbindir}
%define plymouthclient_execdir %{_bindir} %define plymouthclient_execdir %{_bindir}
@ -73,7 +72,7 @@ BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(pango) >= 1.21.0 BuildRequires: pkgconfig(pango) >= 1.21.0
BuildRequires: pkgconfig(systemd) >= 186 BuildRequires: pkgconfig(systemd) >= 186
%if 0%{?support_Xwindow_backend} > 0 %if %{with x11_renderer}
BuildRequires: pkgconfig(gtk+-3.0) >= 3.14.0 BuildRequires: pkgconfig(gtk+-3.0) >= 3.14.0
%endif %endif
@ -135,7 +134,7 @@ This package contains the libply library used by Plymouth.
Summary: Libraries and headers for writing Plymouth splash plugins Summary: Libraries and headers for writing Plymouth splash plugins
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{name} = %{version} Requires: %{name} = %{version}
%if 0%{?support_Xwindow_backend} == 0 %if %{with x11_renderer}
Requires: %{name}-x11-renderer = %{version} Requires: %{name}-x11-renderer = %{version}
%endif %endif
Requires: libply-boot-client4 = %{version} Requires: libply-boot-client4 = %{version}
@ -157,16 +156,14 @@ Supplements: packageand(plymouth:dracut)
%description dracut %description dracut
This package contains utilities that integrate dracut with Plymouth This package contains utilities that integrate dracut with Plymouth
%if 0%{?support_Xwindow_backend} == 0 %package x11-renderer
#%package x11-renderer
Summary: Plymouth X11 renderer Summary: Plymouth X11 renderer
Group: System/Base Group: System/Base
Requires: %{name} = %{version} Requires: %{name} = %{version}
#%description x11-renderer %description x11-renderer
This package provides the X11 renderer which allows to test plymouth This package provides the X11 renderer which allows to test plymouth
behavior on environments with a valid DISPLAY. behavior on environments with a valid DISPLAY.
%endif
%package scripts %package scripts
Summary: Plymouth related scripts Summary: Plymouth related scripts
@ -394,7 +391,7 @@ autoreconf -fiv
--without-rhgb-compat-link \ --without-rhgb-compat-link \
--with-boot-tty=/dev/tty7 \ --with-boot-tty=/dev/tty7 \
--with-shutdown-tty=/dev/tty1 \ --with-shutdown-tty=/dev/tty1 \
%if 0%{?support_Xwindow_backend} == 0 %if %{without x11_renderer}
--disable-gtk \ --disable-gtk \
%endif %endif
--with-release-file=%{_sysconfdir}/os-release --with-release-file=%{_sysconfdir}/os-release
@ -589,10 +586,9 @@ fi
%{_sbindir}/plymouth-set-default-theme %{_sbindir}/plymouth-set-default-theme
%{_libexecdir}/plymouth/plymouth-update-initrd %{_libexecdir}/plymouth/plymouth-update-initrd
%if 0%{?support_Xwindow_backend} == 0 %if %{with x11_renderer}
#%files x11-renderer %files x11-renderer
#%defattr(-,root,root,-) %{_libdir}/plymouth/renderers/x11*
#%{_libdir}/plymouth/renderers/x11*
%endif %endif
%files plugin-label %files plugin-label