forked from pool/systemd
Accepting request 221379 from home:coolo:branches:openSUSE:Factory
- split bash-completion support into its own package, no need for sles_version OBS-URL: https://build.opensuse.org/request/show/221379 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=509
This commit is contained in:
parent
bcc20b8ac2
commit
2de988407c
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 8 06:12:55 UTC 2014 - coolo@suse.com
|
||||||
|
|
||||||
|
- split bash-completion support into its own package,
|
||||||
|
no need for sles_version
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 7 13:02:28 UTC 2014 - werner@suse.de
|
Fri Feb 7 13:02:28 UTC 2014 - werner@suse.de
|
||||||
|
|
||||||
|
@ -23,15 +23,6 @@
|
|||||||
%define udevpkgname udev-mini
|
%define udevpkgname udev-mini
|
||||||
%define udev_major 1
|
%define udev_major 1
|
||||||
|
|
||||||
%if 0%{?sles_version} == 0 && 0%{?suse_version} == 1315
|
|
||||||
%global sles_version 12
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?sles_version} == 0
|
|
||||||
%global with_bash_completion 1
|
|
||||||
%endif
|
|
||||||
%bcond_with bash_completion
|
|
||||||
|
|
||||||
Name: systemd-mini
|
Name: systemd-mini
|
||||||
Url: http://www.freedesktop.org/wiki/Software/systemd
|
Url: http://www.freedesktop.org/wiki/Software/systemd
|
||||||
Version: 208
|
Version: 208
|
||||||
@ -101,9 +92,7 @@ Conflicts: kiwi
|
|||||||
# the buildignore is important for bootstrapping
|
# the buildignore is important for bootstrapping
|
||||||
#!BuildIgnore: udev
|
#!BuildIgnore: udev
|
||||||
Requires: %{udevpkgname} >= 172
|
Requires: %{udevpkgname} >= 172
|
||||||
%if %{with bash_completion}
|
Recommends: %{name}-bash-completion
|
||||||
Recommends: bash-completion
|
|
||||||
%endif
|
|
||||||
Requires: dbus-1 >= 1.4.0
|
Requires: dbus-1 >= 1.4.0
|
||||||
Requires: kbd
|
Requires: kbd
|
||||||
Requires: kmod >= 14
|
Requires: kmod >= 14
|
||||||
@ -331,6 +320,15 @@ transactional dependency-based service control logic. It can work as a
|
|||||||
drop-in replacement for sysvinit.
|
drop-in replacement for sysvinit.
|
||||||
|
|
||||||
|
|
||||||
|
%package bash-completion
|
||||||
|
Summary: Bash completion support for systemd
|
||||||
|
License: LGPL-2.1+
|
||||||
|
Group: System/Base
|
||||||
|
Requires: bash
|
||||||
|
Requires: bash-completion
|
||||||
|
|
||||||
|
%description bash-completion
|
||||||
|
Some systemd commands offer bash completion, but it's an optional dependency.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development headers for systemd
|
Summary: Development headers for systemd
|
||||||
@ -799,16 +797,6 @@ install -m 644 units/powerfail.service %{buildroot}/%{_prefix}/lib/systemd/syste
|
|||||||
install -m 644 man/systemd-powerfail.service.8 %{buildroot}/%{_mandir}/man8/
|
install -m 644 man/systemd-powerfail.service.8 %{buildroot}/%{_mandir}/man8/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# clean out some completions which requires bash-completion package
|
|
||||||
%if %{without bash_completion}
|
|
||||||
for c in %{buildroot}/%{_datadir}/bash-completion/completions/*
|
|
||||||
do
|
|
||||||
test -e "$c" || continue
|
|
||||||
grep -q _init_completion "$c" || continue
|
|
||||||
rm -vf "$c"
|
|
||||||
done
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%fdupes -s %{buildroot}%{_mandir}
|
%fdupes -s %{buildroot}%{_mandir}
|
||||||
|
|
||||||
%if 0%{suse_version} >= 1310
|
%if 0%{suse_version} >= 1310
|
||||||
@ -1169,10 +1157,7 @@ exit 0
|
|||||||
%if ! 0%{?bootstrap}
|
%if ! 0%{?bootstrap}
|
||||||
%{_prefix}/lib/udev/numlock-on
|
%{_prefix}/lib/udev/numlock-on
|
||||||
%endif
|
%endif
|
||||||
%dir %{_datadir}/bash-completion
|
|
||||||
%dir %{_datadir}/bash-completion/completions
|
|
||||||
%ghost /var/lib/systemd/catalog/database
|
%ghost /var/lib/systemd/catalog/database
|
||||||
%{_datadir}/bash-completion/completions/*
|
|
||||||
%if 0%{suse_version} < 1310
|
%if 0%{suse_version} < 1310
|
||||||
%{_sysconfdir}/rpm/macros.systemd
|
%{_sysconfdir}/rpm/macros.systemd
|
||||||
%endif
|
%endif
|
||||||
@ -1188,6 +1173,12 @@ exit 0
|
|||||||
%ghost /var/lib/systemd/backlight
|
%ghost /var/lib/systemd/backlight
|
||||||
%ghost /var/lib/systemd/random-seed
|
%ghost /var/lib/systemd/random-seed
|
||||||
|
|
||||||
|
%files bash-completion
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{_datadir}/bash-completion
|
||||||
|
%dir %{_datadir}/bash-completion/completions
|
||||||
|
%{_datadir}/bash-completion/completions/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/libsystemd-daemon.so
|
%{_libdir}/libsystemd-daemon.so
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 8 06:12:55 UTC 2014 - coolo@suse.com
|
||||||
|
|
||||||
|
- split bash-completion support into its own package,
|
||||||
|
no need for sles_version
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 7 13:02:28 UTC 2014 - werner@suse.de
|
Fri Feb 7 13:02:28 UTC 2014 - werner@suse.de
|
||||||
|
|
||||||
|
41
systemd.spec
41
systemd.spec
@ -21,15 +21,6 @@
|
|||||||
%define udevpkgname udev
|
%define udevpkgname udev
|
||||||
%define udev_major 1
|
%define udev_major 1
|
||||||
|
|
||||||
%if 0%{?sles_version} == 0 && 0%{?suse_version} == 1315
|
|
||||||
%global sles_version 12
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?sles_version} == 0
|
|
||||||
%global with_bash_completion 1
|
|
||||||
%endif
|
|
||||||
%bcond_with bash_completion
|
|
||||||
|
|
||||||
Name: systemd
|
Name: systemd
|
||||||
Url: http://www.freedesktop.org/wiki/Software/systemd
|
Url: http://www.freedesktop.org/wiki/Software/systemd
|
||||||
Version: 208
|
Version: 208
|
||||||
@ -96,9 +87,7 @@ Conflicts: kiwi
|
|||||||
# the buildignore is important for bootstrapping
|
# the buildignore is important for bootstrapping
|
||||||
#!BuildIgnore: udev
|
#!BuildIgnore: udev
|
||||||
Requires: %{udevpkgname} >= 172
|
Requires: %{udevpkgname} >= 172
|
||||||
%if %{with bash_completion}
|
Recommends: %{name}-bash-completion
|
||||||
Recommends: bash-completion
|
|
||||||
%endif
|
|
||||||
Requires: dbus-1 >= 1.4.0
|
Requires: dbus-1 >= 1.4.0
|
||||||
Requires: kbd
|
Requires: kbd
|
||||||
Requires: kmod >= 14
|
Requires: kmod >= 14
|
||||||
@ -326,6 +315,15 @@ transactional dependency-based service control logic. It can work as a
|
|||||||
drop-in replacement for sysvinit.
|
drop-in replacement for sysvinit.
|
||||||
|
|
||||||
|
|
||||||
|
%package bash-completion
|
||||||
|
Summary: Bash completion support for systemd
|
||||||
|
License: LGPL-2.1+
|
||||||
|
Group: System/Base
|
||||||
|
Requires: bash
|
||||||
|
Requires: bash-completion
|
||||||
|
|
||||||
|
%description bash-completion
|
||||||
|
Some systemd commands offer bash completion, but it's an optional dependency.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development headers for systemd
|
Summary: Development headers for systemd
|
||||||
@ -794,16 +792,6 @@ install -m 644 units/powerfail.service %{buildroot}/%{_prefix}/lib/systemd/syste
|
|||||||
install -m 644 man/systemd-powerfail.service.8 %{buildroot}/%{_mandir}/man8/
|
install -m 644 man/systemd-powerfail.service.8 %{buildroot}/%{_mandir}/man8/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# clean out some completions which requires bash-completion package
|
|
||||||
%if %{without bash_completion}
|
|
||||||
for c in %{buildroot}/%{_datadir}/bash-completion/completions/*
|
|
||||||
do
|
|
||||||
test -e "$c" || continue
|
|
||||||
grep -q _init_completion "$c" || continue
|
|
||||||
rm -vf "$c"
|
|
||||||
done
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%fdupes -s %{buildroot}%{_mandir}
|
%fdupes -s %{buildroot}%{_mandir}
|
||||||
|
|
||||||
%if 0%{suse_version} >= 1310
|
%if 0%{suse_version} >= 1310
|
||||||
@ -1164,10 +1152,7 @@ exit 0
|
|||||||
%if ! 0%{?bootstrap}
|
%if ! 0%{?bootstrap}
|
||||||
%{_prefix}/lib/udev/numlock-on
|
%{_prefix}/lib/udev/numlock-on
|
||||||
%endif
|
%endif
|
||||||
%dir %{_datadir}/bash-completion
|
|
||||||
%dir %{_datadir}/bash-completion/completions
|
|
||||||
%ghost /var/lib/systemd/catalog/database
|
%ghost /var/lib/systemd/catalog/database
|
||||||
%{_datadir}/bash-completion/completions/*
|
|
||||||
%if 0%{suse_version} < 1310
|
%if 0%{suse_version} < 1310
|
||||||
%{_sysconfdir}/rpm/macros.systemd
|
%{_sysconfdir}/rpm/macros.systemd
|
||||||
%endif
|
%endif
|
||||||
@ -1183,6 +1168,12 @@ exit 0
|
|||||||
%ghost /var/lib/systemd/backlight
|
%ghost /var/lib/systemd/backlight
|
||||||
%ghost /var/lib/systemd/random-seed
|
%ghost /var/lib/systemd/random-seed
|
||||||
|
|
||||||
|
%files bash-completion
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{_datadir}/bash-completion
|
||||||
|
%dir %{_datadir}/bash-completion/completions
|
||||||
|
%{_datadir}/bash-completion/completions/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/libsystemd-daemon.so
|
%{_libdir}/libsystemd-daemon.so
|
||||||
|
Loading…
Reference in New Issue
Block a user