From 60c29acfe3577867bcc8225dc10447f667fe5f5197929b68dba0a5dfacb553b9 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 18 May 2016 13:41:14 +0000 Subject: [PATCH] Split off sub packages devel and doc to avoid dependency cycles OBS-URL: https://build.opensuse.org/package/show/shells/bash-completion?expand=0&rev=70 --- bash-completion.changes | 5 ++++ bash-completion.spec | 64 +++++++++++++++++++++++++++++------------ 2 files changed, 50 insertions(+), 19 deletions(-) diff --git a/bash-completion.changes b/bash-completion.changes index 509a81b..06531e3 100644 --- a/bash-completion.changes +++ b/bash-completion.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 18 13:40:01 UTC 2016 - werner@suse.de + +- Split off sub packages devel and doc to avoid dependency cycles + ------------------------------------------------------------------- Wed Apr 27 20:34:12 CEST 2016 - sbrabec@suse.com diff --git a/bash-completion.spec b/bash-completion.spec index 9cf73b3..82046ad 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -60,6 +60,24 @@ BuildArch: noarch bash-completion is a collection of shell functions that take advantage of the programmable completion feature of Bash 2.04 and later. +%package devel +Summary: The Configuration of Programmable Completion for Bash +Group: Development/Libraries/C and C++ +Provides: bash-completion:%{_datadir}/pkgconfig/bash-completion.pc + +%description devel +This package contains the package configuration file of the +package bash-completion. + +%package doc +Summary: The Documentation of Programmable Completion for Bash +Group: Development/Libraries/C and C++ +Provides: bash-completion:%{_defaultdocdir}/%{name}/AUTHORS + +%description doc +This package contains the package documentation file of the +package bash-completion. + %prep %setup -q %patch0 -b .p0 @@ -86,34 +104,42 @@ popd %install %make_install pushd doc - mkdir -p %{buildroot}%{_defaultdocdir}/%{name}/html - install -m 0644 html/* %{buildroot}%{_defaultdocdir}/%{name}/html/ + mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-doc + install -m 0644 html/* %{buildroot}%{_defaultdocdir}/%{name}-doc/ popd # shipping in latest systemd now -rm -f %{buildroot}%{_datadir}/bash-completion/completions/udevadm -rm -f %{buildroot}%{_datadir}/bash-completion/completions/nmcli +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/udevadm +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/nmcli # shipping in latest util-linux now -rm -f %{buildroot}%{_datadir}/bash-completion/completions/cal -rm -f %{buildroot}%{_datadir}/bash-completion/completions/chsh -rm -f %{buildroot}%{_datadir}/bash-completion/completions/dmesg -rm -f %{buildroot}%{_datadir}/bash-completion/completions/eject -rm -f %{buildroot}%{_datadir}/bash-completion/completions/hexdump -rm -f %{buildroot}%{_datadir}/bash-completion/completions/hwclock -rm -f %{buildroot}%{_datadir}/bash-completion/completions/ionice -rm -f %{buildroot}%{_datadir}/bash-completion/completions/look -rm -f %{buildroot}%{_datadir}/bash-completion/completions/mount -rm -f %{buildroot}%{_datadir}/bash-completion/completions/newgrp -rm -f %{buildroot}%{_datadir}/bash-completion/completions/renice -rm -f %{buildroot}%{_datadir}/bash-completion/completions/rtcwake -rm -f %{buildroot}%{_datadir}/bash-completion/completions/su -rm -f %{buildroot}%{_datadir}/bash-completion/completions/umount +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/cal +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/chsh +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/dmesg +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/eject +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/hexdump +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/hwclock +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/ionice +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/look +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/mount +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/newgrp +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/renice +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/rtcwake +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/su +rm -vf %{buildroot}%{_datadir}/bash-completion/completions/umount %files %defattr(-,root,root) -%doc AUTHORS COPYING README +%doc COPYING %{_datadir}/bash-completion %config %{_sysconfdir}/profile.d/bash_completion.sh + +%files devel +%defattr(-,root,root) %{_datadir}/pkgconfig/bash-completion.pc +%files doc +%defattr(-,root,root) +%doc AUTHORS README +%{_defaultdocdir}/%{name}-doc/ + %changelog