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
This commit is contained in:
Dr. Werner Fink 2016-05-18 13:41:14 +00:00 committed by Git OBS Bridge
parent 6547a3fd33
commit 60c29acfe3
2 changed files with 50 additions and 19 deletions

View File

@ -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

View File

@ -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