File pychecker.spec of Package pychecker

#
# spec file for package pychecker
#
# Copyright (c) 2011 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/
#



Name:           pychecker
Version:        0.8.19
Release:        0
Url:            http://sourceforge.net/projects/pychecker
Summary:        A tool for finding bugs in python source code
License:        BSD-3-Clause
Group:          Development/Languages/Python
Source:         %{name}-%{version}.tar.bz2
Source1:        pychecker.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
%{py_requires}
%if 0%{?suse_version} > 1110
BuildArch:      noarch
%endif

%description
PyChecker is a tool for finding bugs in python source code. It finds
problems that are typically caught by a compiler for less dynamic
languages, like C and C++.  Because of the dynamic nature of python,
some warnings may be incorrect; however, spurious warnings should be
fairly infrequent.

%prep
%setup -q

%build
CFLAGS="%{optflags}" python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -Dm644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1

%files
%defattr(-,root,root)
%doc COPYRIGHT ChangeLog KNOWN_BUGS MAINTAINERS pycheckrc README TODO
%doc %{_mandir}/man1/*
%{_bindir}/pychecker
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by