From 14b0506643ae1636825d59857fa02f176467e6a6 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Wed, 1 Feb 2017 08:25:53 +0100 Subject: [PATCH] Avoid depending on bash-completion Instead, co-own the directories we drop bash-completion files in as per https://fedoraproject.org/wiki/Packaging:Guidelines#The_directory_is_owned_by_a_package_which_is_not_required_for_your_package_to_function --- ldc.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ldc.spec b/ldc.spec index 1181a07..5fa16c3 100644 --- a/ldc.spec +++ b/ldc.spec @@ -44,7 +44,7 @@ BuildRequires: zlib-devel BuildRequires: libedit-devel BuildRequires: bash-completion -Requires: ldc-druntime-devel ldc-phobos-devel libedit bash-completion +Requires: ldc-druntime-devel ldc-phobos-devel libedit Obsoletes: ldc-config < 1:1.1.0 @@ -215,6 +215,8 @@ install -m0644 phobos.d.tags %{buildroot}/%{_datadir}/geany/tags/ %{_bindir}/ldc-prune-cache %{_libdir}/libldc-profile-rt.a %{_rpmconfigdir}/macros.d/macros.ldc +%dir %{_datadir}/bash-completion +%dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/ldc2 %files druntime @@ -253,6 +255,7 @@ install -m0644 phobos.d.tags %{buildroot}/%{_datadir}/geany/tags/ - Enable bootstrap - Merge -config subpackage into the main ldc package - Don't mark the rpm macros file and bash completion file as config +- Avoid depending on bash-completion * Tue Dec 13 2016 Kalev Lember - 1:1.1.0-0.7.beta6 - Update to 1.1.0 beta6