[python-pysmell/f19] initial import (RHBZ#1028817)

T.C. Hollingsworth patches at fedoraproject.org
Mon Dec 2 21:41:34 UTC 2013


commit 10f10188f694514ab34a3ec5ff2ce81aae46da66
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date:   Mon Dec 2 14:39:36 2013 -0700

    initial import (RHBZ#1028817)

 .gitignore          |    1 +
 python-pysmell.spec |  112 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 114 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a4cb417 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pysmell-0.7.3.zip
diff --git a/python-pysmell.spec b/python-pysmell.spec
new file mode 100644
index 0000000..d11ff06
--- /dev/null
+++ b/python-pysmell.spec
@@ -0,0 +1,112 @@
+Name:           python-pysmell
+Version:        0.7.3
+Release:        2%{?dist}
+Summary:        An autocompletion library for Python
+BuildArch:      noarch
+
+License:        BSD
+URL:            https://code.google.com/p/pysmell/
+Source0:        https://pypi.python.org/packages/source/p/pysmell/pysmell-%{version}.zip
+
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+
+%description
+PySmell is a python IDE completion helper.
+
+It tries to statically analyze Python source code, without executing it, and 
+generates information about a project's structure that IDE tools can use.
+
+PySmell currently supports Vim, Emacs and TextMate. It can be integrated with
+any editor that can run Python scripts and has an auto-complete API.
+
+%package -n vim-pysmell
+Summary:    Python autocompletion for vim
+Requires:   %{name} = %{version}-%{release}
+Requires:   vim-filesystem
+
+%description -n vim-pysmell
+PySmell is a python IDE completion helper.
+
+It tries to statically analyze Python source code, without executing it, and 
+generates information about a project's structure that IDE tools can use.
+
+This package provides autocompletion support for vim.
+
+%package -n emacs-pysmell
+Summary:    Python automcompletion for GNU Emacs
+Requires:   %{name} = %{version}-%{release}
+Requires:   emacs-filesystem
+
+%description -n emacs-pysmell
+PySmell is a python IDE completion helper.
+
+It tries to statically analyze Python source code, without executing it, and 
+generates information about a project's structure that IDE tools can use.
+
+This package provides autocompletion support for GNU Emacs.
+
+%package -n xemacs-pysmell
+Summary:    Python automcompletion for XEmacs
+Requires:   %{name} = %{version}-%{release}
+Requires:   xemacs-filesystem
+
+%description -n xemacs-pysmell
+PySmell is a python IDE completion helper.
+
+It tries to statically analyze Python source code, without executing it, and 
+generates information about a project's structure that IDE tools can use.
+
+This package provides autocompletion support for XEmacs.
+
+
+%prep
+%setup -qn pysmell-%{version}
+
+# drop unwanted shebang
+sed -i '1{\@^#!/usr/bin/env python at d}' pysmell/tags.py
+
+# CRLF -> LF
+sed -i "s|\r||g" PKG-INFO
+
+# remove bundled egg
+rm -rf pysmell.egg-info
+
+%build
+%{__python2} setup.py build
+
+
+%install
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
+
+# install editor integration files
+install -Dpm0644 pysmell.vim %{buildroot}%{_datadir}/vim/vimfiles/plugins/pysmell.vim
+install -Dpm0644 pysmell.el %{buildroot}%{_datadir}/emacs/site-lisp/pysmell.el
+install -Dpm0644 pysmell.el %{buildroot}%{_datadir}/xemacs/site-packages/lisp/pysmell.el
+
+
+%files
+%{python2_sitelib}/pysmell
+%{python2_sitelib}/pysmell*.egg-info
+%{_bindir}/pysmell
+%doc AUTHORS CHANGELOG PKG-INFO README.markdown
+
+%files -n vim-pysmell
+%{_datadir}/vim/vimfiles/plugins/pysmell.vim
+
+%files -n emacs-pysmell
+%{_datadir}/emacs/site-lisp/pysmell.el
+
+%files -n xemacs-pysmell
+%{_datadir}/xemacs/site-packages/lisp/pysmell.el
+
+
+%changelog
+* Mon Nov 11 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.7.3-2
+- remove bundled egg
+- use python2 in macros
+- set permissions on editor integration files explicitly to avoid spurious 
+  executable bits
+
+* Sun Nov 10 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.7.3-1
+- initial package
diff --git a/sources b/sources
index e69de29..53d33d6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4161fa810a8e7147a35a94abfb28d9cd  pysmell-0.7.3.zip


More information about the scm-commits mailing list