Accepting request 416896 from home:scarabeus_iv:branches:Base:System

- Sort out with spec-cleaner and move all buildrequires to main scope
  not to subpkgs, sometimes interpreted wrongly by rpm if it is split

- Reduce patches list removing merged upstream (bit differently tho):
  * 0001-seats-guard-against-NULL-terminal.patch
  * fix-serial-consoles.patch
  * plymouth-boot-vga-framebuffer.patch
- Refresh patches:
  * 0001-let-it-become-a-real-daemon.patch

- Update to version 0.9.2+git20160620.0e65b86:
  * configure: tweak defaults to be more systemd friendly
  * text: don't draw if not animating
  * terminal: always open terminal in non-blocking mode
  * device-manager: probe existing DRM devices at startup
  * drm: don't pick up drm master implicitly
  * terminal: refresh geometry after drm device arrives
  * logger: stop using carriage returns
  * build-goo: don't install systemd units during distcheck
  * systemd-units: Fix uninstall script
  * configure: switch to tar.xz instead tar.bz2

OBS-URL: https://build.opensuse.org/request/show/416896
OBS-URL: https://build.opensuse.org/package/show/Base:System/plymouth?expand=0&rev=174
This commit is contained in:
Ismail Dönmez 2016-09-01 08:35:45 +00:00 committed by Git OBS Bridge
parent 333b46265a
commit dbc5b1774f
9 changed files with 116 additions and 252 deletions

View File

@ -13,13 +13,13 @@ well restore the system console.
plymouth-0.9.0/src/main.c | 42 +++++++------
5 files changed, 43 insertions(+), 18 deletions(-)
Index: plymouth-0.9.2/src/libply-splash-core/ply-device-manager.c
Index: plymouth-0.9.2+git20160620.0e65b86/src/libply-splash-core/ply-device-manager.c
===================================================================
--- plymouth-0.9.2.orig/src/libply-splash-core/ply-device-manager.c
+++ plymouth-0.9.2/src/libply-splash-core/ply-device-manager.c
@@ -926,3 +926,12 @@ ply_device_manager_deactivate_keyboards
node = next_node;
}
--- plymouth-0.9.2+git20160620.0e65b86.orig/src/libply-splash-core/ply-device-manager.c
+++ plymouth-0.9.2+git20160620.0e65b86/src/libply-splash-core/ply-device-manager.c
@@ -949,3 +949,12 @@ ply_device_manager_deactivate_keyboards
manager->keyboards_activated = false;
}
+
+void
@ -30,11 +30,11 @@ Index: plymouth-0.9.2/src/libply-splash-core/ply-device-manager.c
+ ply_terminal_close,
+ manager);
+}
Index: plymouth-0.9.2/src/libply-splash-core/ply-device-manager.h
Index: plymouth-0.9.2+git20160620.0e65b86/src/libply-splash-core/ply-device-manager.h
===================================================================
--- plymouth-0.9.2.orig/src/libply-splash-core/ply-device-manager.h
+++ plymouth-0.9.2/src/libply-splash-core/ply-device-manager.h
@@ -52,6 +52,7 @@ void ply_device_manager_deactivate_keybo
--- plymouth-0.9.2+git20160620.0e65b86.orig/src/libply-splash-core/ply-device-manager.h
+++ plymouth-0.9.2+git20160620.0e65b86/src/libply-splash-core/ply-device-manager.h
@@ -65,6 +65,7 @@ void ply_device_manager_deactivate_keybo
void ply_device_manager_activate_renderers (ply_device_manager_t *manager);
void ply_device_manager_deactivate_renderers (ply_device_manager_t *manager);
ply_terminal_t *ply_device_manager_get_default_terminal (ply_device_manager_t *manager);
@ -42,10 +42,10 @@ Index: plymouth-0.9.2/src/libply-splash-core/ply-device-manager.h
#endif
Index: plymouth-0.9.2/src/libply/ply-utils.c
Index: plymouth-0.9.2+git20160620.0e65b86/src/libply/ply-utils.c
===================================================================
--- plymouth-0.9.2.orig/src/libply/ply-utils.c
+++ plymouth-0.9.2/src/libply/ply-utils.c
--- plymouth-0.9.2+git20160620.0e65b86.orig/src/libply/ply-utils.c
+++ plymouth-0.9.2+git20160620.0e65b86/src/libply/ply-utils.c
@@ -77,6 +77,7 @@
static int errno_stack[PLY_ERRNO_STACK_SIZE];
@ -54,7 +54,7 @@ Index: plymouth-0.9.2/src/libply/ply-utils.c
bool
ply_open_unidirectional_pipe (int *sender_fd,
@@ -771,6 +772,7 @@ ply_create_daemon (void)
@@ -794,6 +795,7 @@ ply_create_daemon (void)
if (!ply_read (receiver_fd, &byte, sizeof(uint8_t))) {
int read_error = errno;
int status;
@ -62,7 +62,7 @@ Index: plymouth-0.9.2/src/libply/ply-utils.c
if (waitpid (pid, &status, WNOHANG) <= 0)
ply_error ("failed to read status from child immediately after starting to daemonize: %s", strerror (read_error));
@@ -811,6 +813,9 @@ ply_detach_daemon (ply_daemon_handle_t *
@@ -834,6 +836,9 @@ ply_detach_daemon (ply_daemon_handle_t *
close (sender_fd);
free (handle);
@ -72,10 +72,10 @@ Index: plymouth-0.9.2/src/libply/ply-utils.c
return true;
}
Index: plymouth-0.9.2/src/libply/ply-terminal-session.c
Index: plymouth-0.9.2+git20160620.0e65b86/src/libply/ply-terminal-session.c
===================================================================
--- plymouth-0.9.2.orig/src/libply/ply-terminal-session.c
+++ plymouth-0.9.2/src/libply/ply-terminal-session.c
--- plymouth-0.9.2+git20160620.0e65b86.orig/src/libply/ply-terminal-session.c
+++ plymouth-0.9.2+git20160620.0e65b86/src/libply/ply-terminal-session.c
@@ -187,6 +187,12 @@ ply_terminal_session_redirect_console (p
assert (terminal_name != NULL);
@ -89,28 +89,28 @@ Index: plymouth-0.9.2/src/libply/ply-terminal-session.c
fd = open (terminal_name, O_RDWR | O_NOCTTY);
if (fd < 0)
Index: plymouth-0.9.2/src/main.c
Index: plymouth-0.9.2+git20160620.0e65b86/src/main.c
===================================================================
--- plymouth-0.9.2.orig/src/main.c
+++ plymouth-0.9.2/src/main.c
@@ -1026,6 +1026,7 @@ on_seat_added (state_t *state,
on_enter, state);
--- plymouth-0.9.2+git20160620.0e65b86.orig/src/main.c
+++ plymouth-0.9.2+git20160620.0e65b86/src/main.c
@@ -1083,6 +1083,7 @@ on_text_display_removed (state_t
ply_boot_splash_remove_text_display (state->boot_splash, display);
}
+static ply_device_manager_t *manager;
static void
load_devices (state_t *state,
ply_device_manager_flags_t flags)
@@ -1033,6 +1034,8 @@ load_devices (state_t
@@ -1090,6 +1091,8 @@ load_devices (state_t
state->device_manager = ply_device_manager_new (state->default_tty, flags);
state->local_console_terminal = ply_device_manager_get_default_terminal (state->device_manager);
+ manager = state->device_manager;
+
ply_device_manager_watch_seats (state->device_manager,
(ply_seat_added_handler_t)
on_seat_added,
@@ -1058,6 +1061,7 @@ quit_splash (state_t *state)
ply_device_manager_watch_devices (state->device_manager,
state->device_timeout,
(ply_keyboard_added_handler_t)
@@ -1128,6 +1131,7 @@ quit_splash (state_t *state)
ply_trace ("Not retaining splash, so deallocating VT");
ply_terminal_deactivate_vt (state->local_console_terminal);
ply_terminal_close (state->local_console_terminal);
@ -118,7 +118,7 @@ Index: plymouth-0.9.2/src/main.c
}
}
@@ -1974,25 +1978,20 @@ dump_debug_buffer_to_file (void)
@@ -2073,28 +2077,20 @@ dump_debug_buffer_to_file (void)
#include <termios.h>
#include <unistd.h>
static void
@ -127,14 +127,17 @@ Index: plymouth-0.9.2/src/main.c
{
- struct termios term_attributes;
int fd;
- static const char *show_cursor_sequence = "\033[?25h";
-
- fd = open ("/dev/tty1", O_RDWR | O_NOCTTY);
- if (fd < 0) fd = open ("/dev/hvc0", O_RDWR | O_NOCTTY);
-
- ioctl (fd, KDSETMODE, KD_TEXT);
-
- tcgetattr (fd, &term_attributes);
- write (fd, show_cursor_sequence, sizeof (show_cursor_sequence) - 1);
-
- tcgetattr (fd, &term_attributes);
- term_attributes.c_iflag |= BRKINT | IGNPAR | ICRNL | IXON;
- term_attributes.c_oflag |= OPOST;
- term_attributes.c_lflag |= ECHO | ICANON | ISIG | IEXTEN;
@ -154,7 +157,7 @@ Index: plymouth-0.9.2/src/main.c
if (debug_buffer != NULL) {
dump_debug_buffer_to_file ();
@@ -2005,7 +2004,6 @@ on_crash (int signum)
@@ -2107,7 +2103,6 @@ on_crash (int signum)
pid_file = NULL;
}
@ -162,7 +165,7 @@ Index: plymouth-0.9.2/src/main.c
raise (signum);
}
@@ -2039,6 +2037,7 @@ main (int argc,
@@ -2141,6 +2136,7 @@ main (int argc,
char *kernel_command_line = NULL;
char *tty = NULL;
ply_device_manager_flags_t device_manager_flags = PLY_DEVICE_MANAGER_FLAGS_NONE;
@ -170,7 +173,7 @@ Index: plymouth-0.9.2/src/main.c
state.start_time = ply_get_timestamp ();
state.command_parser = ply_command_parser_new ("plymouthd", "Splash server");
@@ -2141,8 +2140,13 @@ main (int argc,
@@ -2243,8 +2239,13 @@ main (int argc,
if (debug)
debug_buffer = ply_buffer_new ();

View File

@ -1,64 +0,0 @@
From a6eff09852c2eb4d684526b814d2b2df578938d0 Mon Sep 17 00:00:00 2001
From: Frederic Crozat <fcrozat@suse.com>
Date: Thu, 12 Jun 2014 18:51:24 +0200
Subject: [PATCH] seats: guard against NULL terminal
---
src/libply-splash-core/ply-keyboard.c | 7 +++++--
src/libply-splash-core/ply-seat.c | 6 +++---
src/libply-splash-core/ply-terminal.c | 11 +++++++----
3 files changed, 15 insertions(+), 9 deletions(-)
Index: plymouth-0.9.2/src/libply-splash-core/ply-seat.c
===================================================================
--- plymouth-0.9.2.orig/src/libply-splash-core/ply-seat.c
+++ plymouth-0.9.2/src/libply-splash-core/ply-seat.c
@@ -101,10 +101,10 @@ add_text_displays (ply_seat_t *seat)
{
ply_text_display_t *display;
- if (!ply_terminal_is_open (seat->terminal)) {
- if (!ply_terminal_open (seat->terminal)) {
+ if (!seat->terminal || !ply_terminal_is_open (seat->terminal)) {
+ if (!seat->terminal || !ply_terminal_open (seat->terminal)) {
ply_trace ("could not add terminal %s: %m",
- ply_terminal_get_name (seat->terminal));
+ seat->terminal ? ply_terminal_get_name (seat->terminal) : "none");
return;
}
}
Index: plymouth-0.9.2/src/libply-splash-core/ply-terminal.c
===================================================================
--- plymouth-0.9.2.orig/src/libply-splash-core/ply-terminal.c
+++ plymouth-0.9.2/src/libply-splash-core/ply-terminal.c
@@ -639,24 +639,27 @@ ply_terminal_get_fd (ply_terminal_t *ter
bool
ply_terminal_is_vt (ply_terminal_t *terminal)
{
- return terminal->vt_number > 0;
+ return terminal ? terminal->vt_number > 0 : false;
}
bool
ply_terminal_is_open (ply_terminal_t *terminal)
{
- return terminal->is_open;
+ return terminal ? terminal->is_open : false;
}
bool
ply_terminal_is_active (ply_terminal_t *terminal)
{
- return terminal->is_active;
+ return terminal ? terminal->is_active : false;
}
void
ply_terminal_close (ply_terminal_t *terminal)
{
+ if (!terminal)
+ return;
+
if (!terminal->is_open) {
ply_trace ("terminal %s is already closed", terminal->name);
return;

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service mode="disabled" name="tar_scm">
<param name="url">git://anongit.freedesktop.org/plymouth</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="filename">plymouth</param>
<param name="versionformat">0.9.2+git%cd.%h</param>
</service>
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="disabled" name="set_version"/>
</services>

View File

@ -1,83 +0,0 @@
Index: plymouth-0.9.2/src/libply-splash-core/ply-device-manager.c
===================================================================
--- plymouth-0.9.2.orig/src/libply-splash-core/ply-device-manager.c
+++ plymouth-0.9.2/src/libply-splash-core/ply-device-manager.c
@@ -62,6 +62,7 @@ struct _ply_device_manager
ply_seat_added_handler_t seat_added_handler;
ply_seat_removed_handler_t seat_removed_handler;
void *seat_event_handler_data;
+ bool has_serial_consoles;
};
static void
@@ -501,6 +502,7 @@ ply_device_manager_new (const char
manager->loop = NULL;
manager->terminals = ply_hashtable_new (ply_hashtable_string_hash, ply_hashtable_string_compare);
manager->local_console_terminal = ply_terminal_new (default_tty);
+ manager->has_serial_consoles = false;
ply_hashtable_insert (manager->terminals,
(void *) ply_terminal_get_name (manager->local_console_terminal),
manager->local_console_terminal);
@@ -663,18 +665,16 @@ create_seat_for_terminal (const char
static bool
create_seats_from_terminals (ply_device_manager_t *manager)
{
- bool has_serial_consoles;
-
ply_trace ("checking for consoles");
if (manager->flags & PLY_DEVICE_MANAGER_FLAGS_IGNORE_SERIAL_CONSOLES) {
- has_serial_consoles = false;
+ manager->has_serial_consoles = false;
ply_trace ("ignoring all consoles but default console because explicitly told to.");
} else {
- has_serial_consoles = add_consoles_from_file (manager, "/sys/class/tty/console/active");
+ manager->has_serial_consoles = add_consoles_from_file (manager, "/sys/class/tty/console/active");
}
- if (has_serial_consoles) {
+ if (manager->has_serial_consoles) {
ply_trace ("serial consoles detected, managing them with details forced");
ply_hashtable_foreach (manager->terminals,
(ply_hashtable_foreach_func_t *)
@@ -821,6 +821,15 @@ ply_device_manager_has_open_seats (ply_d
return false;
}
+bool
+ply_device_manager_has_serial_consoles (ply_device_manager_t *manager)
+{
+ if (manager)
+ return manager->has_serial_consoles;
+ else
+ return false;
+}
+
ply_list_t *
ply_device_manager_get_seats (ply_device_manager_t *manager)
{
Index: plymouth-0.9.2/src/main.c
===================================================================
--- plymouth-0.9.2.orig/src/main.c
+++ plymouth-0.9.2/src/main.c
@@ -854,7 +854,7 @@ plymouth_should_show_default_splash (sta
};
int i;
- if (state->should_force_details)
+ if (ply_device_manager_has_serial_consoles(state->device_manager) || state->should_force_details)
return false;
for (i = 0; strings[i] != NULL; i++) {
Index: plymouth-0.9.2/src/libply-splash-core/ply-device-manager.h
===================================================================
--- plymouth-0.9.2.orig/src/libply-splash-core/ply-device-manager.h
+++ plymouth-0.9.2/src/libply-splash-core/ply-device-manager.h
@@ -44,6 +44,7 @@ void ply_device_manager_watch_seats (ply
ply_seat_removed_handler_t seat_removed_handler,
void *data);
bool ply_device_manager_has_open_seats (ply_device_manager_t *manager);
+bool ply_device_manager_has_serial_consoles (ply_device_manager_t *manager);
ply_list_t *ply_device_manager_get_seats (ply_device_manager_t *manager);
void ply_device_manager_free (ply_device_manager_t *manager);
void ply_device_manager_activate_keyboards (ply_device_manager_t *manager);

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:729120eef3cf44dff4329e89e1122cf389865c0841c500ce10269e17cc3ba962
size 873172

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2f0ce82042cf9c7eadd2517a1f74c8a85fa8699781d9f294a06eade29fbed57f
size 1231336

View File

@ -1,19 +0,0 @@
Index: plymouth-0.9.2/src/libply-splash-core/ply-device-manager.c
===================================================================
--- plymouth-0.9.2.orig/src/libply-splash-core/ply-device-manager.c
+++ plymouth-0.9.2/src/libply-splash-core/ply-device-manager.c
@@ -102,12 +102,13 @@ device_is_for_local_console (ply_device_
* card the kernel is using for its console. */
device_path = udev_device_get_syspath (device);
asprintf (&bus_device_path, "%s/device", device_path);
+ ply_trace ("Testing device path %s\n", bus_device_path);
bus_device = udev_device_new_from_syspath (manager->udev_context, bus_device_path);
boot_vga = udev_device_get_sysattr_value (bus_device, "boot_vga");
free (bus_device_path);
- if (boot_vga != NULL && strcmp (boot_vga, "1") == 0)
+ if (boot_vga == NULL /* framebuffer case */ || strcmp (boot_vga, "1") == 0)
for_local_console = true;
else
for_local_console = false;

View File

@ -1,3 +1,34 @@
-------------------------------------------------------------------
Thu Aug 4 11:15:47 UTC 2016 - tchvatal@suse.com
- Sort out with spec-cleaner and move all buildrequires to main scope
not to subpkgs, sometimes interpreted wrongly by rpm if it is split
-------------------------------------------------------------------
Thu Aug 4 11:06:30 UTC 2016 - tchvatal@suse.com
- Reduce patches list removing merged upstream (bit differently tho):
* 0001-seats-guard-against-NULL-terminal.patch
* fix-serial-consoles.patch
* plymouth-boot-vga-framebuffer.patch
- Refresh patches:
* 0001-let-it-become-a-real-daemon.patch
-------------------------------------------------------------------
Thu Aug 04 10:50:05 UTC 2016 - opensuse-packaging@opensuse.org
- Update to version 0.9.2+git20160620.0e65b86:
* configure: tweak defaults to be more systemd friendly
* text: don't draw if not animating
* terminal: always open terminal in non-blocking mode
* device-manager: probe existing DRM devices at startup
* drm: don't pick up drm master implicitly
* terminal: refresh geometry after drm device arrives
* logger: stop using carriage returns
* build-goo: don't install systemd units during distcheck
* systemd-units: Fix uninstall script
* configure: switch to tar.xz instead tar.bz2
-------------------------------------------------------------------
Wed Jun 1 10:20:05 UTC 2016 - idonmez@suse.com

View File

@ -20,15 +20,15 @@
%define plymouthclient_execdir %{_bindir}
%define plymouth_libdir %{_libdir}
%define plymouth_initrd_file /boot/initrd-plymouth.img
Name: plymouth
Version: 0.9.2
Version: 0.9.2+git20160620.0e65b86
Release: 0
Summary: Graphical Boot Animation and Logger
License: GPL-2.0+
Group: System/Base
Url: http://freedesktop.org/software/plymouth/releases
Source0: http://www.freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
# Switched to git snapshot to ease bugfix inclusion
Source0: %{name}-%{version}.tar.xz
Source1: boot-duration
# PATCH-OPENSUSE -- Handle correctly multiple displays with different sizes
Patch3: plymouth-fix-window-size
@ -41,44 +41,42 @@ Patch10: 0001-Some-greenish-openSUSE-colors.patch
Patch16: plymouth-correct-runtime-dir.patch
# PATCH-FIX-UPSTREAM plymouth-manpages.patch idoenmez@suse.de -- Fix man page installation
Patch17: plymouth-manpages.patch
Patch18: fix-serial-consoles.patch
# PATCH-FIX-OPENSUSE use-mkinitrd.patch fcrozat@suse.com -- call mkinitrd -B for now
Patch20: use-mkinitrd.patch
# PATCH-FIX-UPSTREAM 0001-seats-guard-against-NULL-terminal.patch fcrozat@suse.com -- guard against null terminal
Patch21: 0001-seats-guard-against-NULL-terminal.patch
# PATCH-FIX-UPSTREAM plymouth-ignore-cirrusdrm.patch fcrozat@suse.com -- ignore cirrusdrm, use fb instead
Patch26: plymouth-ignore-cirrusdrm.patch
Patch28: plymouth-boot-vga-framebuffer.patch
Patch29: 0001-let-it-become-a-real-daemon.patch
# PATCH-FIX-UPSTREAM 0001-Add-label-ft-plugin.patch fvogt@suse.com -- add ability to output text in initrd
Patch30: 0001-Add-label-ft-plugin.patch
Patch31: 0002-Install-label-ft-plugin-into-initrd-if-available.patch
Patch32: 0003-fix_null_deref.patch
BuildRequires: automake
BuildRequires: docbook-xsl-stylesheets
BuildRequires: kernel-headers
BuildRequires: libtool
BuildRequires: libudev-devel
BuildRequires: libxslt
BuildRequires: module-init-tools
BuildRequires: systemd >= 186
BuildRequires: pkgconfig
BuildRequires: suse-module-tools
BuildRequires: update-desktop-files
BuildRequires: xz
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.14.0
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(pango) >= 1.21.0
BuildRequires: pkgconfig(systemd) >= 186
Requires(post): coreutils
Requires(postun): coreutils
Requires: %{name}-branding
Requires: gnu-unifont-bitmap-fonts
Requires: systemd >= 186
Requires(post): coreutils
Requires(post): plymouth-scripts = %{version}
BuildRequires: suse-module-tools
Suggests: plymouth-plugin-label
Requires(postun): coreutils
Recommends: plymouth-plugin-label-ft
Provides: bootsplash = 3.4
Obsoletes: bootsplash <= 3.4
Suggests: plymouth-plugin-label
Provides: bootsplash = 3.5
Obsoletes: bootsplash < 3.5
Provides: systemd-plymouth = 44-10.2
Obsoletes: systemd-plymouth <= 44-10.1
@ -138,8 +136,8 @@ and headers needed to develop 3rd party splash plugins for Plymouth.
%package dracut
Summary: Plymouth related utilities for dracut
Group: System/Base
Supplements: packageand(plymouth:dracut)
Requires: %{name} = %{version}
Supplements: packageand(plymouth:dracut)
%description dracut
This package contains utilities that integrate dracut with Plymouth
@ -156,11 +154,11 @@ behavior on environments with a valid DISPLAY.
%package scripts
Summary: Plymouth related scripts
Group: System/Base
Requires(pre): %{name} = %{version}
Requires: coreutils
Requires: cpio
Requires: findutils
Requires: pigz
Requires(pre): %{name} = %{version}
%description scripts
This package contains scripts that help integrate Plymouth with
@ -169,8 +167,6 @@ the system.
%package plugin-label
Summary: Plymouth label plugin
Group: System/Base
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(pango) >= 1.21.0
Requires: libply-splash-graphics4 = %{version}
%description plugin-label
@ -181,7 +177,6 @@ graphical boot splashes using pango and cairo.
%package plugin-label-ft
Summary: Plymouth FreeType label plugin
Group: System/Base
BuildRequires: pkgconfig(freetype2)
Requires: fontconfig
Requires: libply-splash-graphics4 = %{version}
@ -285,8 +280,8 @@ while stars twinkle around the logo during system boot up.
Summary: Plymouth "Spinfinity" theme
Group: System/Base
Requires: %{name}-plugin-throbgress = %{version}
Requires(pre): %{name}
Requires(post): %{name}-scripts
Requires(pre): %{name}
BuildArch: noarch
%description theme-spinfinity
@ -343,25 +338,21 @@ plugin.
%setup -q
%patch3 -p1
%patch4 -p1
%patch9 -p0
%patch9
%patch10 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%patch20 -p1
%patch21 -p1
%patch26 -p1
%patch28 -p1
%patch29 -p1
%patch30 -p1
%patch31 -p1
%patch32 -p1
# replace builddate with patch0date
sed -i "s/__DATE__/\"$(stat -c %y %{_sourcedir}/%{name}.changes)\"/" src/main.c
sed -i "s/__DATE__/\"$(stat -c %%y %{_sourcedir}/%{name}.changes)\"/" src/main.c
# Change the default theme
%if 0%{?is_opensuse}
sed -i -e 's/spinner/openSUSE/g' src/plymouthd.defaults
%else
@ -370,9 +361,11 @@ sed -i -e 's/spinner/SLE/g' src/plymouthd.defaults
%build
autoreconf -fiv
%configure --disable-static \
%configure \
--disable-silent-rules \
--disable-static \
--enable-systemd-integration \
--enable-tracing --disable-tests \
--enable-tracing \
--with-background-start-color-stop=0x1A3D1F \
--with-background-end-color-stop=0x4EA65C \
--with-background-color=0x3391cd \
@ -381,27 +374,24 @@ autoreconf -fiv
--without-rhgb-compat-link \
--with-boot-tty=/dev/tty7 \
--with-shutdown-tty=/dev/tty1 \
--without-gdm-autostart-file \
--with-release-file=/etc/os-release
--with-release-file=%{_sysconfdir}/os-release
make %{?_smp_mflags} V=1
make %{?_smp_mflags}
%install
%make_install
rm -f %{buildroot}/%{_bindir}/rhgb-client
#Link the plymouth client binary also to /bin until the move to /usr is completed
mkdir %{buildroot}/bin
(cd %{buildroot}/bin; ln -s ../usr/bin/plymouth)
(cd %{buildroot}/bin; ln -s ..%{_bindir}/plymouth)
# Glow isn't quite ready for primetime
rm -rf %{buildroot}%{_datadir}/plymouth/glow/
rm -rf %{buildroot}%{_datadir}/plymouth/themes/glow/
rm -f %{buildroot}%{_libdir}/plymouth/glow.so
find %{buildroot} -name '*.a' -exec rm -f {} \;
find %{buildroot} -name '*.la' -exec rm -f {} \;
find %{buildroot} -type f -name "*.la" -delete -print
mkdir -p %{buildroot}%{_localstatedir}/lib/plymouth
mkdir -p %{buildroot}/run/plymouth
@ -417,7 +407,7 @@ rm %{buildroot}%{_libdir}/plymouth/renderers/frame-buffer.so
%post
%{?regenerate_initrd_post}
if [ ! -e /.buildenv ]; then
if [ ! -e /.buildenv ]; then
[ -f %{_localstatedir}/lib/plymouth/boot-duration ] || cp -f %{_datadir}/plymouth/default-boot-duration %{_localstatedir}/lib/plymouth/boot-duration
fi
[ -x /bin/systemctl ] && /bin/systemctl daemon-reload >/dev/null 2>&1 || :
@ -434,21 +424,13 @@ fi
%{?regenerate_initrd_posttrans}
%post -n libply-boot-client4 -p /sbin/ldconfig
%postun -n libply-boot-client4 -p /sbin/ldconfig
%post -n libply-splash-core4 -p /sbin/ldconfig
%postun -n libply-splash-core4 -p /sbin/ldconfig
%post -n libply-splash-graphics4 -p /sbin/ldconfig
%postun -n libply-splash-graphics4 -p /sbin/ldconfig
%post -n libply4 -p /sbin/ldconfig
%postun -n libply4 -p /sbin/ldconfig
%post theme-spinfinity
if [ $1 -eq 1 ]; then
set -x
@ -459,7 +441,7 @@ if [ $1 -eq 1 ]; then
%{_sbindir}/plymouth-set-default-theme -R spinfinity
else
%{_sbindir}/plymouth-set-default-theme spinfinity
fi
fi
fi
fi
@ -481,7 +463,7 @@ if [ $1 -eq 1 ]; then
%{_sbindir}/plymouth-set-default-theme -R fade-in
else
%{_sbindir}/plymouth-set-default-theme fade-in
fi
fi
fi
fi
@ -503,7 +485,7 @@ if [ $1 -eq 1 ]; then
%{_sbindir}/plymouth-set-default-theme -R solar
else
%{_sbindir}/plymouth-set-default-theme solar
fi
fi
fi
fi