[lrzip] Package bash completion helper into standalone sub-package

Petr Pisar ppisar at fedoraproject.org
Mon Sep 19 09:06:56 UTC 2011


commit 94c2b18c0cecffb61b510f86f84c21f4f176f3fc
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Sep 19 10:55:57 2011 +0200

    Package bash completion helper into standalone sub-package

 lrzip.spec |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/lrzip.spec b/lrzip.spec
index 5a55b13..f8e374d 100644
--- a/lrzip.spec
+++ b/lrzip.spec
@@ -2,14 +2,12 @@ Name:           lrzip
 Version:        0.607
 Release:        1%{?dist}
 Summary:        Compression program optimized for large files
-
 Group:          Applications/File
 License:        GPLv2+
 URL:            http://ck.kolivas.org/apps/%{name}/
 Source0:        http://ck.kolivas.org/apps/%{name}/%{name}-%{version}.tar.bz2
 # Fix bash completion installation, in upstream after 0.607
 Patch0:         %{name}-0.607-bash_completion_installation.patch
-
 # automake for %%{name}-0.607-bash_completition_installation.patch
 BuildRequires:  automake
 BuildRequires:  bzip2-devel lzo-devel perl zlib-devel
@@ -17,7 +15,6 @@ BuildRequires:  bzip2-devel lzo-devel perl zlib-devel
 BuildRequires:  nasm
 %endif
 
-
 %description
 Long Range ZIP or Lzma RZIP
 
@@ -28,6 +25,17 @@ be chosen to be either size (much smaller than bzip2) or speed (much faster
 than bzip2). Decompression is always much faster than bzip2.
 
 
+%package bash
+Summary:        Bash completion for lrzip
+Group:          System Environment/Shells
+License:        GPLv2+
+BuildArch:      noarch
+Requires:       lrzip = %{epoch}:%{version}-%{release}
+
+%description bash
+Bash completion helper extending completion experience on lrzip command.
+
+
 %prep
 %setup -q
 %patch0 -p1 -b .completition
@@ -51,16 +59,18 @@ make install DESTDIR=$RPM_BUILD_ROOT
 %files
 %{docdir}
 %{_bindir}/*
-%{_sysconfdir}/bash_completion.d
 %{_mandir}/man1/*.1.gz
 %{_mandir}/man5/*.5.gz
 
+%files bash
+%{_sysconfdir}/bash_completion.d
 
 %changelog
 * Mon Sep 19 2011 Petr Pisar <ppisar at redhat.com> - 0.607-1
 - 0.607 bump
 - Fix bash completion installation
 - Remove defattr spec code
+- Package bash completion helper into standalone sub-package
 
 * Mon May 16 2011 Petr Pisar <ppisar at redhat.com> - 0.606-1
 - 0.606 bump


More information about the scm-commits mailing list