commit python-optcomplete for openSUSE:Factory
Hello community, here is the log from the commit of package python-optcomplete for openSUSE:Factory checked in at Tue Nov 2 16:17:32 CET 2010. -------- New Changes file: --- /dev/null 2010-07-09 01:59:37.000000000 +0200 +++ /mounts/work_src_done/STABLE/python-optcomplete/python-optcomplete.changes 2010-03-24 13:23:38.000000000 +0100 @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Wed Mar 24 12:22:06 UTC 2010 - toms@suse.de + +- Improved package and added bash completion code in + /etc/bash_completion.d/ and added examples and documentation + +------------------------------------------------------------------- +Wed Mar 24 11:34:54 UTC 2010 - toms@suse.de + +- Initial version 1.2_devel + calling whatdependson for head-i586 New: ---- optcomplete-1.2-devel.tar.bz2 python-optcomplete.changes python-optcomplete.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-optcomplete.spec ++++++ # # spec file for package python-optcomplete (Version 1.2_devel) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define modname optcomplete %define _version 1.2_devel %define unmangled_version 1.2-devel %define release 1 Summary: Automatic Shell Completion Support for Scripts Using Optparse Name: python-%{modname} Version: %{_version} Release: 1 Source0: %{modname}-%{unmangled_version}.tar.bz2 License: BSD Group: Development/Libraries/Python BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} BuildArch: noarch %endif Url: http://furius.ca/optcomplete BuildRequires: python-devel %py_requires %description This module provide automatic bash completion support for programs that use the optparse module. The premise is that the optparse options parser specifies enough information (and more) for us to be able to generate completion strings esily. Another advantage of this over traditional completion schemes where the completion strings are hard-coded in a separate bash source file, is that the same code that parses the options is used to generate the completions, so the completions is always up-to-date with the program itself. In addition, we allow you specify a list of regular expressions or code that define what kinds of files should be proposed as completions to this file if needed. If you want to implement more complex behaviour, you can instead specify a function, which will be called with the current directory as an argument. You need to activate bash completion using the shell script function that comes with optcomplete (see http://furius.ca/optcomplete for more details). %prep %setup -n %{modname}-%{unmangled_version} %build python setup.py build %install python setup.py install \ --root=$RPM_BUILD_ROOT \ --prefix=%{_prefix} \ --record=%{name}.files mkdir -p $RPM_BUILD_ROOT%_sysconfdir/bash_completion.d mv bin example chmod -x example/README mkdir bash_completion mv etc/bashrc etc/env etc/optcomplete.zsh bash_completion/ chmod -x bash_completion/optcomplete.zsh cp -v etc/optcomplete.bash \ $RPM_BUILD_ROOT%_sysconfdir/bash_completion.d/optcomplete.sh %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.files %defattr(-,root,root) %config %_sysconfdir/bash_completion.d/* %doc README TODO VERSION CHANGES COPYING CREDITS %doc doc/* example bash_completion %changelog ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de