python-jedi/python-jedi.spec
Todd R 792eab877b Accepting request 195416 from home:mvyskocil:branches:devel:languages:python
- update to 0.6.0
  * Created find_module helper to handle compatibility with python 3.3 
  * Fixed caching issues
  * More robust source encoding detection
  * Improved documentantion
  * and lot of bugfixes
- drop pre-checkin.sh
- drop a dependency on rpmbuild > 4.10, we don't need no ~ in version

OBS-URL: https://build.opensuse.org/request/show/195416
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=3
2013-08-19 11:41:05 +00:00

77 lines
2.4 KiB
RPMSpec

#
# spec file for package
#
# Copyright (c) 2013 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/
#
%global build_for_python3 0
%if %{build_for_python3}
%global my_sitelib %{python3_sitelib}
%global my_python %{_bindir}/python3
%else
%global my_sitelib %{python_sitelib}
%global my_python %{_bindir}/python2
%endif
Name: python-jedi
Version: 0.6.0
Release: 0
License: LGPL-3.0+
Summary: An autocompletion tool for Python
URL: https://jedi.readthedocs.org/en/latest/index.html
Group: Development/Languages/Python
Source0: https://pypi.python.org/packages/source/j/jedi/jedi-%{version}.tar.gz
%if %{build_for_python3}
BuildRequires: python3-devel
BuildRequires: python3-distribute
%else
BuildRequires: python-devel
BuildRequires: python-distribute
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Jedi is an autocompletion tool for Python. It works. With and without syntax
errors. Sometimes it sucks, but that's normal in dynamic languages. But it
sucks less than other tools. It understands almost all of the basic Python
syntax elements including many builtins.
Jedi suports two different goto functions and has support for renaming.
Probably it will also have some support for refactoring in the future.
Jedi uses a very simple interface to connect with IDE's. As an reference, there
is a VIM implementation, which uses Jedi's autocompletion. However, I encourage
you to use Jedi in your IDEs. Start writing plugins! If there are problems with
licensing, just contact me.
%prep
%setup -q -n jedi-%{version}
%build
%{my_python} setup.py build
%install
%{my_python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(0644,root,root,0755)
%doc AUTHORS.txt README.rst LICENSE.txt
%{my_sitelib}/*
%changelog