SHA256
1
0
forked from pool/xdg-utils

Accepting request 1189600 from X11:common:Factory

- Separate xdg-screensaver into a subpackage to isolate Perl
  dependency (bsc#1216537).

OBS-URL: https://build.opensuse.org/request/show/1189600
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xdg-utils?expand=0&rev=64
This commit is contained in:
Dominique Leuenberger 2024-07-26 14:15:01 +00:00 committed by Git OBS Bridge
commit 274fc8d293
2 changed files with 28 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Jul 21 08:08:07 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Separate xdg-screensaver into a subpackage to isolate Perl
dependency (bsc#1216537).
-------------------------------------------------------------------
Wed Mar 13 09:52:36 UTC 2024 - christophe@krop.fr

View File

@ -30,10 +30,8 @@ BuildRequires: make
# for xmlto to be able to generate text from html
BuildRequires: w3m
BuildRequires: xmlto
Requires: perl
Requires: perl-Net-DBus
Requires: perl-X11-Protocol
Requires: which
Recommends: %{name}-screensaver
BuildArch: noarch
%description
@ -53,6 +51,22 @@ This means that:
simply make sure that these utilities work properly in their
environment.
%package screensaver
Summary: Command line tool for controlling the screensaver
Requires: %{name} = %{version}-%{release}
Provides: xdg-utils:%{_bindir}/xdg-screensaver
Requires: perl
Requires: perl-Net-DBus
Requires: perl-X11-Protocol
%description screensaver
xdg-screensaver provides commands to control the screensaver.
For use inside a desktop session only. It is not recommended to
use xdg-screensaver as root.
Separated from the main package to isolate Perl dependency.
%prep
%autosetup -p1 -n %{name}-v%{version}
@ -80,7 +94,6 @@ ln -snf xdg-open %{buildroot}%{_bindir}/desktop-launch
%{_bindir}/xdg-mime
%{_bindir}/xdg-open
%{_bindir}/xdg-su
%{_bindir}/xdg-screensaver
%{_bindir}/xdg-settings
%{_bindir}/xdg-terminal
%{_mandir}/man1/xdg-desktop-icon.1%{?ext_man}
@ -90,8 +103,12 @@ ln -snf xdg-open %{buildroot}%{_bindir}/desktop-launch
%{_mandir}/man1/xdg-mime.1%{?ext_man}
%{_mandir}/man1/xdg-open.1%{?ext_man}
%{_mandir}/man1/xdg-terminal.1%{?ext_man}
%{_mandir}/man1/xdg-screensaver.1%{?ext_man}
%{_mandir}/man1/xdg-settings.1%{?ext_man}
%{_mandir}/man1/xdg-su.1%{?ext_man}
%files screensaver
%license LICENSE
%{_bindir}/xdg-screensaver
%{_mandir}/man1/xdg-screensaver.1%{?ext_man}
%changelog