File pycscope.spec of Package pycscope
# vim: set sw=4 ts=4 et nu:
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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/
Name: pycscope
Version: 1.2.1
Release: 0
Summary: Generates a cscope Index of Python Source Trees
Source: https://pypi.python.org/packages/source/p/pycscope/pycscope-%{version}.tar.gz
Patch0: pycscope-test-sort.patch
URL: https://github.com/portante/pycscope
Group: Development/Languages/Python
License: GPL-2.0+
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: python-devel >= 2.7
BuildRequires: python-distribute
BuildRequires: python-nose
BuildArch: noarch
%description
A python script to generate a cscope index from a Python source tree. pycscope
uses Python's own parser and (C)oncrete (S)yntax (T)ree to generate the index,
so it is a bit more accurate than plain cscope.
%prep
%setup -q
%patch0 -p1
%build
%__python ./setup.py build
%install
%__python ./setup.py install \
--prefix="%{_prefix}" \
--root="%{buildroot}" \
--record-rpm=files.lst
%check
./runtests
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f files.lst
%defattr(-,root,root)
%doc LICENSE README
%changelog