File pychecker.spec of Package pychecker
#
# spec file for package pychecker (Version 0.8.18)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: pychecker
BuildRequires: python-devel
License: BSD 3-Clause
Group: Development/Languages/Python
AutoReqProv: on
Version: 0.8.18
Release: 1
Source: %{name}-%{version}.tar.bz2
Source1: pychecker.1
Url: http://sourceforge.net/projects/pychecker
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: A tool for finding bugs in python source code
%{py_requires}
%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.
Authors:
--------
Neal Norwitz <neal@metaslash.com>
Eric C. Newton <ecn@metaslash.com>
%prep
%setup
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
rm -rf $RPM_BUILD_ROOT
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
sed -e "s#$RPM_BUILD_ROOT##" $RPM_BUILD_ROOT/usr/bin/pychecker > pychecker.modified
cp pychecker.modified $RPM_BUILD_ROOT/usr/bin/pychecker
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
install -m 644 %{S:1} $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc COPYRIGHT CHANGELOG KNOWN_BUGS MAINTAINERS pycheckrc README TODO
%doc %{_mandir}/man1/*
%changelog
* Fri Sep 12 2008 matejcik@suse.cz
- update to 0.8.18
* support for python2.5 (finally)
* bunch of new command line switches
* better warnings about special methods
* Thu Oct 19 2006 jmatejek@suse.cz
- update to 0.8.17
- bugfixes
- new command line options for better output control
- support for skipping broken extensions
- support for new opcodes
* Tue Feb 28 2006 jmatejek@suse.cz
- updated to reflect python changes due to #149809
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 10 2005 jmatejek@suse.cz
- update to 0.8.16
- fixed path in /usr/bin/pychecker
* Wed Jun 30 2004 mcihar@suse.cz
- update to 0.8.14
* Wed Nov 19 2003 mcihar@suse.cz
- no root for build
- updated to 0.8.13
- updated man page
- versioned dependency on python
* Tue Jun 17 2003 mcihar@suse.cz
- install man page
* Mon Jun 16 2003 mcihar@suse.cz
- use distutils
* Tue Apr 01 2003 mcihar@suse.cz
- added python-devel to neededforbuild
* Tue Mar 04 2003 mcihar@suse.cz
- added man page
* Mon Jan 06 2003 mcihar@suse.cz
- upgrade to 0.8.12:
* Add --isliteral option to warn when using is/is not against literal
(e.g., XXX is 5 YYY is not 'abcdef', etc)
* Add --modulo1 option to warn when using (expr %% 1),
which is constant when expr is an integer or string
* Add -4/--noeffect option to disable warnings for 'Statement has no effect'
* self is not first argument warning can be disabled with -S/--self ''
* Don't print duplicate warnings when importing pychecker
* Fix other spurious warnings when importing pychecker
* Fix bug for spurious invalid arguments when passing a dict inline
* Fix bug for spurious Statement has no effect when print >> x, ... ,
* Add @option_file command line argument to read options from a file
(used on platforms which can't have too many options, ie Windows)
* Fix several crashes
* Tue Jun 11 2002 vinil@suse.cz
- upgrade to 0.8.11
* Thu May 23 2002 ro@suse.de
- fix filelist
* Wed May 15 2002 vinil@suse.cz
- use %%{_lib} instead of '/lib'
* Thu May 02 2002 vinil@suse.cz
- upgrade to 0.8.10
* Sun Feb 03 2002 vinil@suse.cz
- upgrade to 0.8.9
* Fri Jan 18 2002 vinil@suse.cz
- upgrade to 0.8.8
* Fri Jan 11 2002 ro@suse.de
- fixed to build on python-2.2
* Mon Jan 07 2002 vinil@suse.cz
- upgrade to 0.8.7
* Tue Nov 27 2001 vinil@suse.cz
- upgrade to 0.8.6
* Fri Nov 16 2001 vinil@suse.cz
- initial release 0.8.5