]> git.pld-linux.org Git - packages/plymouth.git/blobdiff - plymouth.spec
- added new logo symlink
[packages/plymouth.git] / plymouth.spec
index 3297aebfc20d9286991e44e4109c6d18aab428b9..15bbff3c1a5c06297e15563ea61c0888d233c153 100644 (file)
@@ -1,51 +1,51 @@
 # TODO
 # - integrate with geninitrd
 # - pldize recent update (r1.18)
-# - verify if systemd services have to be installed for targets,
-#      and remove the symlinks if not
 #
 # Conditional build:
-%bcond_without drm_intel       # disable building with libdrm_intel support
-%bcond_without drm_radeon      # disable building with libdrm_radeon support
-%bcond_with    drm_nouveau     # enable building with libdrm_nouveau support
-%bcond_without kms             # disable building with libkms support
+%bcond_without drm             # disable building with DRM renderer support
 
+%define                git_commit      1e36e303e08ba425fecbcff4dde22c8ee936638c
+%define                git_shortcommit 1e36e30
 Summary:       Graphical Boot Animation and Logger
 Summary(pl.UTF-8):     Graficzna animacja i logowanie startu systemu
 Name:          plymouth
-Version:       0.8.8
-Release:       8
+Version:       0.9.4
+Release:       1.%{git_shortcommit}.1
 License:       GPL v2+
 Group:         Base
-Source0:       http://www.freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.bz2
-# Source0-md5: 38f5e613e5ab17806b950cee2d0d0d4e
+#Source0:      https://www.freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.xz
+Source0:       https://gitlab.freedesktop.org/plymouth/plymouth/-/archive/%{git_commit}/%{name}-%{git_shortcommit}.tar.gz
+# Source0-md5: ee21da7c27f7cc462f514360e38c83c7
 Source1:       %{name}-logo.png
 # Source1-md5: 6b38a868585adfd3a96a4ad16973c1f8
 Source2:       %{name}.tmpfiles
-Source3:       charge.%{name}
 Source4:       boot-duration
-Source5:       %{name}-set-default-plugin
 Source6:       %{name}-update-initrd
-Source7:       systemd-ask-password-plymouth.path
-Source8:       systemd-ask-password-plymouth.service
 Patch0:                text-colors.patch
-Patch1:                path-udevadm.patch
-Patch2:                %{name}-restore-suspend.patch
-URL:           http://www.freedesktop.org/wiki/Software/Plymouth
+Patch1:                %{name}-restore-suspend.patch
+URL:           https://www.freedesktop.org/wiki/Software/Plymouth
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.11
 BuildRequires: cairo-devel
-BuildRequires: gtk+2-devel >= 2:2.12.0
-%if %{with drm_intel} ||  %{with drm_radeon} ||  %{with drm_nouveau} ||  %{with kms}
-BuildRequires: libdrm-devel
-%endif
-BuildRequires: xorg-lib-libpciaccess-devel
+BuildRequires: docbook-dtd42-xml
+BuildRequires: docbook-style-xsl-nons
+BuildRequires: gtk+3-devel >= 3.14.0
+%{?with_drm:BuildRequires:     libdrm-devel}
 BuildRequires: libpng-devel >= 2:1.2.16
+BuildRequires: libtool >= 2:2
+BuildRequires: libxslt-progs
 BuildRequires: pango-devel >= 1:1.21.0
 BuildRequires: pkgconfig
+BuildRequires: systemd-units
+BuildRequires: udev-devel
+BuildRequires: xorg-lib-libpciaccess-devel
 Requires:      %{name}-graphics-libs = %{version}-%{release}
 Requires(post):        %{name}-scripts = %{version}-%{release}
 Requires:      /etc/os-release
 Requires:      systemd-units
 Obsoletes:     plymouth-gdm-hooks
+Obsoletes:     plymouth-plugin-throbgress
 Obsoletes:     plymouth-utils
 Obsoletes:     systemd-plymouth
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -80,6 +80,7 @@ Summary:      Plymouth graphics libraries
 Summary(pl.UTF-8):     Biblioteki graficzne Plymouth
 Group:         Development/Libraries
 Requires:      %{name}-core-libs = %{version}-%{release}
+Requires:      gtk+3 >= 3.14.0
 Provides:      %{name}-graphics-libs = %{version}-%{release}
 Obsoletes:     plymouth-libs < %{version}-%{release}
 Conflicts:     plymouth-libs < 0.8.4-0.20120319.1
@@ -222,23 +223,6 @@ Odznacza się ona dwuetapowym procesem startu, rozpoczynającym się
 postępującą animacją synchronizowaną z czasem uruchamiania, a kończy
 krótką, jednorazową animacją.
 
-%package plugin-throbgress
-Summary:       Plymouth "Throbgress" plugin
-Summary(pl.UTF-8):     Wtyczka Plymouth "Throbgress"
-Group:         Base
-Requires:      %{name}-graphics-libs = %{version}-%{release}
-Requires:      %{name}-plugin-label = %{version}-%{release}
-
-%description plugin-throbgress
-This package contains the "throbgress" boot splash plugin for
-Plymouth. It features a centered logo and animated spinner that spins
-repeatedly while a progress bar advances at the bottom of the screen.
-
-%description plugin-throbgress -l pl.UTF-8
-Ten pakiet zawiera wtyczkę ekranu startowego "Throbgress" do Plymouth.
-Cechuje się ona umieszczonym pośrodku logiem oraz animowanym kręcącym
-się kółkiem, podczas gdy pasek postępu przesuwa się na dole ekranu.
-
 %package system-theme
 Summary:       Plymouth default theme
 Summary(pl.UTF-8):     Domyślny motyw Plymouth
@@ -253,23 +237,32 @@ This metapackage tracks the current distribution default theme.
 %description system-theme -l pl.UTF-8
 Ten metapakiet śledzi domyślny motyw dystrybucji.
 
-%package theme-charge
-Summary:       Plymouth "Charge" theme
-Summary(pl.UTF-8):     Motyw Plymouth "Charge"
+%package theme-bgrt
+Summary:       Jimmac's spinner theme using the ACPI BGRT graphics as background
 Group:         Base
 Requires:      %{name}-plugin-two-step = %{version}-%{release}
 Requires(post):        %{name}-scripts = %{version}-%{release}
 Provides:      %{name}(system-theme) = %{version}-%{release}
 
-%description theme-charge
-This package contains the "charge" boot splash theme for Plymouth. It
-features the shadowy hull of a Fedora logo charge up and and finally
-burst into full form.
+%description theme-bgrt
+Jimmac's spinner theme using the ACPI BGRT graphics as background.
 
-%description theme-charge -l pl.UTF-8
-Ten pakiet zawiera motyw ekranu startowego Plymouth "Charge". Odznacza
-się on cieniowaną łupiną loga Fedory, która rośnie, a ostatecznie
-wybucha do pełnej postaci.
+%package theme-glow
+Summary:       Plymouth "Glow" theme
+Summary(pl.UTF-8):     Motyw Plymouth "Glow"
+Group:         Base
+Requires:      %{name}-plugin-two-step = %{version}-%{release}
+Requires(post):        %{name}-scripts = %{version}-%{release}
+Provides:      %{name}(system-theme) = %{version}-%{release}
+Obsoletes:     plymouth-theme-charge
+
+%description theme-glow
+This package contains the "Glow" boot splash theme for Plymouth.
+Corporate theme with pie chart boot progress followed by a glowing
+emerging logo.
+
+%description theme-glow -l pl.UTF-8
+Ten pakiet zawiera motyw ekranu startowego Plymouth "Glow".
 
 %package theme-fade-in
 Summary:       Plymouth "Fade-In" theme
@@ -327,7 +320,7 @@ Summary:    Plymouth "Spinfinity" theme
 Summary(pl.UTF-8):     Motyw Plymouth "Spinfinity"
 Group:         Base
 Requires(post):        %{name}-scripts = %{version}-%{release}
-Requires:      %{name}-plugin-throbgress = %{version}-%{release}
+Requires:      %{name}-plugin-two-step = %{version}-%{release}
 Obsoletes:     plymouth-plugin-spinfinity
 
 %description theme-spinfinity
@@ -356,22 +349,27 @@ Ten pakiet zawiera motyw ekranu startowego Plymouth "Spinner".
 Odznacza się on małym kółkiem kręcącym się na ciemnym tle.
 
 %prep
-%setup -q
+%setup -q -n %{name}-%{git_commit}
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
 
 # Change the default theme
-sed -i -e 's/fade-in/charge/g' src/plymouthd.defaults
+%{__sed} -i -e 's/Theme=.*/Theme=tribar/ig' -e 's/ShowDelay=.*//ig' src/plymouthd.defaults
 
 %build
+%{__autopoint}
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
-       %{__enable_disable drm_intel libdrm_intel} \
-       %{__enable_disable drm_radeon libdrm_radeon} \
-       %{__enable_disable drm_nouveau libdrm_nouveau} \
-       %{__enable_disable kms libkms} \
+       UDEVADM=/sbin/udevadm \
+       SYSTEMD_ASK_PASSWORD_AGENT=/bin/systemd-tty-ask-password-agent \
+       --enable-static \
+       %{__enable_disable drm drm} \
        --disable-silent-rules \
-       --disable-tests \
+       --enable-documentation \
        --disable-gdm-transition \
        --enable-systemd-integration \
        --enable-tracing \
@@ -387,12 +385,11 @@ sed -i -e 's/fade-in/charge/g' src/plymouthd.defaults
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_pixmapsdir},%{systemdtmpfilesdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{systemdtmpfilesdir}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-%{__mv} $RPM_BUILD_ROOT/%{_lib}/lib*.a $RPM_BUILD_ROOT%{_libdir}
 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libply.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libply.so
 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libply-splash-core.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libply-splash-core.so
 %{__rm} $RPM_BUILD_ROOT/%{_lib}/libply{,-splash-core}.so
@@ -401,46 +398,23 @@ install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/plymouth/default-boot-duration
 > $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth/boot-duration
 
-# FC: Add charge, our new default
-install -d $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
-cp %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
-cp $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow/{box,bullet,entry,lock}.png $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/charge
-
-# FC: Drop glow, it's not very Fedora-y
-%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/glow
-
-# FC: Override plymouth-update-initrd to work dracut or mkinitrd
-cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/plymouth/plymouth-update-initrd
-
-# FC: Add compat script for upgrades
-install -p %{SOURCE5} $RPM_BUILD_ROOT%{_sbindir}
+# Override plymouth-update-initrd to work with dracut or mkinitrd
+cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_libexecdir}/plymouth/plymouth-update-initrd
 
 %{__rm} $RPM_BUILD_ROOT{/%{_lib},%{_libdir}}/*.la \
        $RPM_BUILD_ROOT%{_libdir}/plymouth/*.{a,la} \
        $RPM_BUILD_ROOT%{_libdir}/plymouth/renderers/*.{a,la}
 
-# Temporary symlink until rc.sysinit is fixed
-ln -sf /bin/plymouth $RPM_BUILD_ROOT%{_bindir}/plymouth
+%{__mv} $RPM_BUILD_ROOT/%{_lib}/{libply,libply-splash-core}.a $RPM_BUILD_ROOT%{_libdir}
 
 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/plymouth
 
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/plymouth-logo.png
 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
 
-cp -p %{SOURCE7} $RPM_BUILD_ROOT%{systemdunitdir}/systemd-ask-password-plymouth.path
-cp -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/systemd-ask-password-plymouth.service
-
-# install plymouth services for targets
-# http://cgit.freedesktop.org/systemd/systemd/commit/?id=26cbf29c52a36b6ad9d1ccc16d8f7adccefeddca
-install -d $RPM_BUILD_ROOT%{systemdunitdir}/{halt,kexec,poweroff,reboot,sysinit,multi-user}.target.wants
-ln -sf ../plymouth-start.service $RPM_BUILD_ROOT%{systemdunitdir}/sysinit.target.wants/plymouth-start.service
-ln -sf ../plymouth-read-write.service $RPM_BUILD_ROOT%{systemdunitdir}/sysinit.target.wants/plymouth-read-write.service
-ln -sf ../plymouth-quit.service $RPM_BUILD_ROOT%{systemdunitdir}/multi-user.target.wants/plymouth-quit.service
-ln -sf ../plymouth-quit-wait.service $RPM_BUILD_ROOT%{systemdunitdir}/multi-user.target.wants/plymouth-quit-wait.service
-ln -sf ../plymouth-reboot.service $RPM_BUILD_ROOT%{systemdunitdir}/reboot.target.wants/plymouth-reboot.service
-ln -sf ../plymouth-kexec.service $RPM_BUILD_ROOT%{systemdunitdir}/kexec.target.wants/plymouth-kexec.service
-ln -sf ../plymouth-poweroff.service $RPM_BUILD_ROOT%{systemdunitdir}/poweroff.target.wants/plymouth-poweroff.service
-ln -sf ../plymouth-halt.service $RPM_BUILD_ROOT%{systemdunitdir}/halt.target.wants/plymouth-halt.service
+ln -s plymouth-logo.png $RPM_BUILD_ROOT%{_pixmapsdir}/system-logo-white.png
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -459,10 +433,9 @@ fi
 %post  graphics-libs -p /sbin/ldconfig
 %postun        graphics-libs -p /sbin/ldconfig
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS README TODO
-%attr(755,root,root) %{_bindir}/plymouth
 %dir %{_sysconfdir}/plymouth
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plymouth/plymouthd.conf
 %{_mandir}/man8/plymouth.8*
@@ -470,22 +443,28 @@ fi
 %attr(755,root,root) /sbin/plymouthd
 %attr(755,root,root) %{_libdir}/plymouth/details.so
 %attr(755,root,root) %{_libdir}/plymouth/text.so
+%attr(755,root,root) %{_libdir}/plymouth/tribar.so
 %attr(755,root,root) %{_libdir}/plymouth/renderers/drm.so
 %attr(755,root,root) %{_libdir}/plymouth/renderers/frame-buffer.so
 %dir %{_datadir}/plymouth
 %dir %{_datadir}/plymouth/themes
 %dir %{_datadir}/plymouth/themes/details
 %dir %{_datadir}/plymouth/themes/text
+%dir %{_datadir}/plymouth/themes/tribar
 %{_datadir}/plymouth/plymouthd.defaults
 %{_datadir}/plymouth/default-boot-duration
 %{_datadir}/plymouth/themes/details/details.plymouth
 %{_datadir}/plymouth/themes/text/text.plymouth
+%{_datadir}/plymouth/themes/tribar/tribar.plymouth
 %{_pixmapsdir}/plymouth-logo.png
+%{_pixmapsdir}/system-logo-white.png
 %{systemdtmpfilesdir}/%{name}.conf
 %dir %{_localstatedir}/lib/plymouth
 %ghost %{_localstatedir}/lib/plymouth/boot-duration
 %{_localstatedir}/run/plymouth
 %{_localstatedir}/spool/plymouth
+%{_mandir}/man1/plymouth.1*
+%{_mandir}/man8/plymouthd.8*
 
 %{systemdunitdir}/plymouth-halt.service
 %{systemdunitdir}/plymouth-kexec.service
@@ -501,6 +480,7 @@ fi
 %{systemdunitdir}/halt.target.wants/plymouth-halt.service
 %dir %{systemdunitdir}/initrd-switch-root.target.wants
 %{systemdunitdir}/initrd-switch-root.target.wants/plymouth-switch-root.service
+%{systemdunitdir}/initrd-switch-root.target.wants/plymouth-start.service
 %{systemdunitdir}/kexec.target.wants/plymouth-kexec.service
 %{systemdunitdir}/multi-user.target.wants/plymouth-quit.service
 %{systemdunitdir}/multi-user.target.wants/plymouth-quit-wait.service
@@ -512,18 +492,18 @@ fi
 %files core-libs
 %defattr(644,root,root,755)
 %attr(755,root,root) /%{_lib}/libply.so.*.*.*
-%attr(755,root,root) %ghost /%{_lib}/libply.so.2
+%attr(755,root,root) %ghost /%{_lib}/libply.so.5
 %attr(755,root,root) /%{_lib}/libply-splash-core.so.*.*.*
-%attr(755,root,root) %ghost /%{_lib}/libply-splash-core.so.2
+%attr(755,root,root) %ghost /%{_lib}/libply-splash-core.so.5
 %attr(755,root,root) %{_libdir}/libply-boot-client.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libply-boot-client.so.2
+%attr(755,root,root) %ghost %{_libdir}/libply-boot-client.so.5
 %dir %{_libdir}/plymouth
 %dir %{_libdir}/plymouth/renderers
 
 %files graphics-libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libply-splash-graphics.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libply-splash-graphics.so.2
+%attr(755,root,root) %ghost %{_libdir}/libply-splash-graphics.so.5
 %attr(755,root,root) %{_libdir}/plymouth/renderers/x11.so
 
 %files devel
@@ -546,11 +526,14 @@ fi
 
 %files scripts
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_sbindir}/plymouth-set-default-plugin
 %attr(755,root,root) %{_sbindir}/plymouth-set-default-theme
-%attr(755,root,root) %{_libdir}/plymouth/plymouth-generate-initrd
-%attr(755,root,root) %{_libdir}/plymouth/plymouth-populate-initrd
-%attr(755,root,root) %{_libdir}/plymouth/plymouth-update-initrd
+%if "%{_libexecdir}" != "%{_libdir}"
+%dir %{_libexecdir}/plymouth
+%endif
+%attr(755,root,root) %{_libexecdir}/plymouth/plymouth-generate-initrd
+%attr(755,root,root) %{_libexecdir}/plymouth/plymouth-populate-initrd
+%attr(755,root,root) %{_libexecdir}/plymouth/plymouth-update-initrd
+%{_mandir}/man1/plymouth-set-default-theme.1*
 
 %files plugin-fade-throbber
 %defattr(644,root,root,755)
@@ -568,10 +551,6 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/plymouth/space-flares.so
 
-%files plugin-throbgress
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/plymouth/throbgress.so
-
 %files plugin-two-step
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/plymouth/two-step.so
@@ -579,11 +558,16 @@ fi
 %files system-theme
 %defattr(644,root,root,755)
 
-%files theme-charge
+%files theme-bgrt
+%defattr(644,root,root,755)
+%dir %{_datadir}/plymouth/themes/bgrt
+%{_datadir}/plymouth/themes/bgrt/bgrt.plymouth
+
+%files theme-glow
 %defattr(644,root,root,755)
-%dir %{_datadir}/plymouth/themes/charge
-%{_datadir}/plymouth/themes/charge/*.png
-%{_datadir}/plymouth/themes/charge/charge.plymouth
+%dir %{_datadir}/plymouth/themes/glow
+%{_datadir}/plymouth/themes/glow/*.png
+%{_datadir}/plymouth/themes/glow/glow.plymouth
 
 %files theme-fade-in
 %defattr(644,root,root,755)
@@ -603,9 +587,14 @@ fi
 %files theme-spinfinity
 %defattr(644,root,root,755)
 %dir %{_datadir}/plymouth/themes/spinfinity
+%{_datadir}/plymouth/themes/spinfinity/animation-0001.png
 %{_datadir}/plymouth/themes/spinfinity/box.png
 %{_datadir}/plymouth/themes/spinfinity/bullet.png
+%{_datadir}/plymouth/themes/spinfinity/capslock.png
 %{_datadir}/plymouth/themes/spinfinity/entry.png
+%{_datadir}/plymouth/themes/spinfinity/header-image.png
+%{_datadir}/plymouth/themes/spinfinity/keyboard.png
+%{_datadir}/plymouth/themes/spinfinity/keymap-render.png
 %{_datadir}/plymouth/themes/spinfinity/lock.png
 %{_datadir}/plymouth/themes/spinfinity/throbber-[0-3][0-9].png
 %{_datadir}/plymouth/themes/spinfinity/spinfinity.plymouth
This page took 0.09941 seconds and 4 git commands to generate.