[svn] r9783 - in /trunk/rpms/bash-completion: bash-completion-20080705.spec bash-completion.spec

Steve Huff shuff at vecna.org
Fri Mar 25 19:25:53 CET 2011


Author: shuff
Date: Fri Mar 25 18:25:52 2011
New Revision: 9783

URL: http://svn.rpmforge.net/viewvc/rpmforge?rev=9783&view=rev
Log:
updated bash-completion to the latest version that will install properly (20080705)
later versions have a completely different numbering scheme, which arguably should be fixed with an epoch; i've tagged that as testing

Added:
    trunk/rpms/bash-completion/bash-completion-20080705.spec
Modified:
    trunk/rpms/bash-completion/bash-completion.spec

Added: trunk/rpms/bash-completion/bash-completion-20080705.spec
URL: http://svn.rpmforge.net/viewvc/rpmforge/trunk/rpms/bash-completion/bash-completion-20080705.spec?rev=9783&view=markup
==============================================================================
--- trunk/rpms/bash-completion/bash-completion-20080705.spec (added)
+++ trunk/rpms/bash-completion/bash-completion-20080705.spec Fri Mar 25 18:25:52 2011
@@ -1,0 +1,184 @@
+# $Id: bash-completion.spec 7981 2009-11-03 03:05:34Z dag $
+# Authority: shuff
+# Upstream: David Paleino <d.paleino$gmail,com>
+
+Summary: Programmable completion for Bash
+Name: bash-completion
+Version: 20080705
+Release: 1%{?dist}
+License: GPL
+Group: System Environment/Shells
+URL: https://launchpad.net/bash-completion/
+
+Source: http://launchpad.net/bash-completion/master/%{version}/+download/bash-completion-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildArch: noarch
+
+Requires: bash >= 2.05
+Requires: fileutils
+Requires: grep
+Requires: sed
+Requires: textutils
+
+%description
+bash-completion is a collection of shell functions that take advantage
+of the programmable completion feature of bash 2.04 and later.
+
+To use this collection, you should ideally have version 2.05b or later of
+bash. This will ensure that all features work and that you experience the
+least amount of hindrance from bugs in the completion subsystem.
+
+bash 2.05a may also be used, but certain unavoidable annoyances will be
+experienced. You should upgrade to at least 2.05b.
+
+bash 2.05 may be used if you apply the group name completion patch available
+at http://www.caliban.org/files/bash/bash-2.05-group_completion.patch.
+Alternatively, you can just comment out the lines in
+%{_sysconfdir}/bash_completion that contain 'comp{lete,gen} -g'. However,
+upgrading to at least 2.05b is recommended.
+
+If you're stuck using bash 2.04, in addition to commenting out the lines
+mentioned above, you'll also need to edit %{_sysconfdir}/bashrc
+to reflect this version in the $BASH_VERSION test. Again, an upgrade to at
+least 2.05b is strongly recommended.
+
+%prep
+%setup -n %{name}
+
+### FIXME: Remove this line the next release !
+%{__perl} -pi.orig -e 's|_comp-dpkg-hold-packages|_comp_dpkg_hold_packages|g' bash_completion
+
+### FIXME: TODO: Make this script work with other shells too !!
+%{__cat} <<'EOF' >bash_completion.sh
+#!/bin/sh
+
+### Check for Bash
+if [ -z "$BASH_VERSION" ]; then
+	return
+fi
+
+### Check for correct version of Bash (use \< instead of -lt because of 2.05b)
+if [ \( "${BASH_VERSINFO[0]}" -eq 2 -a "${BASH_VERSINFO[1]}" \< 05 \) -o "${BASH_VERSINFO[0]}" -lt 2 ]; then
+	return
+fi
+
+### Source Bash completions
+if [ -r "%{_sysconfdir}/bash_completion" ]; then
+	source "%{_sysconfdir}/bash_completion"
+fi
+EOF
+
+%build
+
+%install
+%{__rm} -rf %{buildroot}
+%{__install} -Dp -m0755 bash_completion %{buildroot}%{_sysconfdir}/bash_completion
+%{__install} -Dp -m0755 bash_completion.sh %{buildroot}%{_sysconfdir}/profile.d/bash_completion.sh
+%{__install} -d -m0755 %{buildroot}%{_sysconfdir}/bash_completion.d/
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(-, root, root, 0755)
+%doc README TODO
+%doc contrib/
+%config %{_sysconfdir}/bash_completion
+%config %{_sysconfdir}/profile.d/*
+%config %{_sysconfdir}/bash_completion.d/
+
+%changelog
+* Fri Mar 25 2011 Steve Huff <shuff at vecna.org> - 20080705-1
+- Updated to release 20080705.
+
+* Mon Dec 18 2006 Dag Wieers <dag at wieers.com> - 20060301-1
+- Updated to release 20060301.
+
+* Sat Jul 23 2005 Dag Wieers <dag at wieers.com> - 20050721-1
+- Updated to release 20050721.
+
+* Wed Jul 20 2005 Dag Wieers <dag at wieers.com> - 20050720-1
+- Updated to release 20050720.
+
+* Wed Jul 13 2005 Dag Wieers <dag at wieers.com> - 20050712-1
+- Updated to release 20050712.
+
+* Sat Jan 22 2005 Dag Wieers <dag at wieers.com> - 20050121-1
+- Updated to release 20050121.
+
+* Fri Jan 21 2005 Dag Wieers <dag at wieers.com> - 20050120-1
+- Updated to release 20050120.
+
+* Sun Jan 16 2005 Dag Wieers <dag at wieers.com> - 20050112-1
+- Updated to release 20050112.
+
+* Tue Jan 04 2005 Dag Wieers <dag at wieers.com> - 20050103-1
+- Updated to release 20050103.
+
+* Mon Nov 29 2004 Dag Wieers <dag at wieers.com> - 20041017-3
+- Reverted wrong change to Bash version check. (Juergen Moellenhoff)
+
+* Tue Nov 23 2004 Dag Wieers <dag at wieers.com> - 20041017-2
+- Correct version check for Bash 3. (Matteo Corti)
+
+* Sun Nov 21 2004 Dag Wieers <dag at wieers.com> - 20041017-1
+- Updated to release 20041017.
+
+* Sun Jul 11 2004 Dag Wieers <dag at wieers.com> - 20040711-1
+- Updated to release 20040711.
+
+* Sun Jul 04 2004 Dag Wieers <dag at wieers.com> - 20040704-1
+- Updated to release 20040704.
+
+* Thu May 27 2004 Dag Wieers <dag at wieers.com> - 20040526-1
+- Updated to release 20040526.
+
+* Wed Mar 31 2004 Dag Wieers <dag at wieers.com> - 20040331-1
+- Updated to release 20040331.
+
+* Wed Feb 25 2004 Dag Wieers <dag at wieers.com> - 20040214-1
+- Fix for bash-completion problem with gdm. (Rudolf Kastl)
+
+* Mon Feb 16 2004 Dag Wieers <dag at wieers.com> - 20040214-0
+- Updated to release 20040214.
+
+* Wed Feb 11 2004 Dag Wieers <dag at wieers.com> - 20040210-0
+- Updated to release 20040210.
+
+* Fri Jan 02 2004 Dag Wieers <dag at wieers.com> - 20040101-0
+- Updated to release 20040101.
+
+* Mon Dec 15 2003 Dag Wieers <dag at wieers.com> - 20031215-0
+- Updated to release 20031215.
+
+* Mon Nov 17 2003 Dag Wieers <dag at wieers.com> - 20031112-0
+- Updated to release 20031112.
+
+* Thu Oct 23 2003 Dag Wieers <dag at wieers.com> - 20031022-0
+- Updated to release 20031022.
+
+* Sun Aug 03 2003 Dag Wieers <dag at wieers.com> - 20030803-0
+- Updated to release 20030803.
+
+* Mon Jul 21 2003 Dag Wieers <dag at wieers.com> - 20030721-0
+- Updated to release 20030721.
+
+* Mon Jul 14 2003 Dag Wieers <dag at wieers.com> - 20030713-0
+- Fixed a problem with bash_completion.sh.
+- Updated to release 20030713.
+
+* Sun Jun 08 2003 Dag Wieers <dag at wieers.com> - 20030607-0
+- Updated to release 20030607.
+
+* Wed May 28 2003 Dag Wieers <dag at wieers.com> - 20030527-0
+- Updated to release 20030527.
+
+* Mon May 05 2003 Dag Wieers <dag at wieers.com> - 20030505-0
+- Updated to release 20030505.
+
+* Fri May 02 2003 Dag Wieers <dag at wieers.com> - 0.06.20030501-0
+- Updated to release 20030501.
+
+* Tue Apr 29 2003 Dag Wieers <dag at wieers.com> - 0.06.20030419-0
+- Initial package. (using DAR)

Modified: trunk/rpms/bash-completion/bash-completion.spec
URL: http://svn.rpmforge.net/viewvc/rpmforge/trunk/rpms/bash-completion/bash-completion.spec?rev=9783&r1=9782&r2=9783&view=diff
==============================================================================
--- trunk/rpms/bash-completion/bash-completion.spec (original)
+++ trunk/rpms/bash-completion/bash-completion.spec Fri Mar 25 18:25:52 2011
@@ -1,29 +1,38 @@
 # $Id$
-# Authority: dag
-# Upstream: Ian Macdonald <ian$caliban,org>
-
-%define real_name bash_completion
+# Authority: shuff
+# Upstream: David Paleino <d.paleino$gmail,com>
+# ExcludeDist: el3 el4
+# Tag: testing
 
 Summary: Programmable completion for Bash
 Name: bash-completion
-Version: 20060301
+Epoch: 1
+Version: 1.2
 Release: 1%{?dist}
 License: GPL
 Group: System Environment/Shells
-URL: http://www.caliban.org/bash/
+URL: https://launchpad.net/bash-completion/
 
-Source: http://www.caliban.org/files/bash/bash-completion-%{version}.tar.bz2
+Source: http://launchpad.net/bash-completion/master/%{version}/+download/bash-completion-%{version}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 
 BuildArch: noarch
-Requires: bash >= 2.05-12, grep, textutils, sed, fileutils
+
+Requires: bash >= 3.2
+Requires: fileutils
+Requires: grep
+Requires: sed
+Requires: textutils
+
+# version scheme changed from dates to dotted :(
+Provides: bash-completion = 20080705
 
 %description
 bash-completion is a collection of shell functions that take advantage
 of the programmable completion feature of bash 2.04 and later.
 
 %prep
-%setup -n %{real_name}
+%setup
 
 ### FIXME: Remove this line the next release !
 %{__perl} -pi.orig -e 's|_comp-dpkg-hold-packages|_comp_dpkg_hold_packages|g' bash_completion
@@ -61,12 +70,17 @@
 
 %files
 %defattr(-, root, root, 0755)
-%doc BUGS Changelog contrib/ COPYING README
+%doc AUTHORS CHANGES COPYING README TODO
+%doc contrib/
 %config %{_sysconfdir}/bash_completion
 %config %{_sysconfdir}/profile.d/*
 %config %{_sysconfdir}/bash_completion.d/
 
 %changelog
+* Fri Mar 25 2011 Steve Huff <shuff at vecna.org> - 1.2-1
+- This package has apparently come back to life.
+- I know Epochs are bad, but I don't see another sane way to fix this.
+
 * Mon Dec 18 2006 Dag Wieers <dag at wieers.com> - 20060301-1
 - Updated to release 20060301.
 




More information about the commits mailing list