[lbzip2/mizdebsk/override] Obsolete and provide bzip2

Mikolaj Izdebski mizdebsk at fedoraproject.org
Tue Apr 15 08:47:53 UTC 2014


commit 308826a18453a43241bc58b5a40f823952785f1c
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date:   Tue Apr 15 10:46:33 2014 +0200

    Obsolete and provide bzip2

 lbzip2.spec |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/lbzip2.spec b/lbzip2.spec
index 020c485..9e88828 100644
--- a/lbzip2.spec
+++ b/lbzip2.spec
@@ -1,4 +1,5 @@
 Name:           lbzip2
+Epoch:          1
 Version:        2.5
 Release:        1%{?dist}
 Summary:        Fast, multi-threaded bzip2 utility
@@ -8,6 +9,9 @@ URL:            http://lbzip2.org/
 Source0:        http://archive.lbzip2.org/%{name}-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+Obsoletes:      bzip2 < 2
+Provides:       bzip2 = %{epoch}:%{version}-%{release}
+
 
 %description
 lbzip2 is an independent, multi-threaded implementation of bzip2. It is
@@ -28,6 +32,16 @@ make %{?_smp_mflags} V=1
 rm -rf %{buildroot}
 make install DESTDIR=%{buildroot}
 
+cd %{buildroot}%{_bindir}
+ln -s lbzip2 bzip2
+ln -s lbzip2 bunzip2
+ln -s lbzip2 bzcat
+
+cd %{buildroot}%{_mandir}/man1
+ln -s lbzip2.1.gz bzip2.1.gz
+ln -s lbzip2.1.gz bunzip2.1.gz
+ln -s lbzip2.1.gz bzcat.1.gz
+
 
 %check
 make check
@@ -43,9 +57,15 @@ rm -rf %{buildroot}
 %{_bindir}/%{name}
 %{_bindir}/lbzcat
 %{_bindir}/lbunzip2
+%{_bindir}/bzip2
+%{_bindir}/bunzip2
+%{_bindir}/bzcat
 %doc %{_mandir}/man1/%{name}.1*
 %doc %{_mandir}/man1/lbzcat.1*
 %doc %{_mandir}/man1/lbunzip2.1*
+%doc %{_mandir}/man1/bzip2.1*
+%doc %{_mandir}/man1/bunzip2.1*
+%doc %{_mandir}/man1/bzcat.1*
 
 
 %changelog


More information about the scm-commits mailing list