Hello community, here is the log from the commit of package python-pylint for openSUSE:Factory checked in at 2012-05-07 22:50:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pylint (Old) and /work/SRC/openSUSE:Factory/.python-pylint.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pylint", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/python-pylint/python-pylint.changes 2012-02-24 06:53:55.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-pylint.new/python-pylint.changes 2012-05-07 22:50:38.000000000 +0200 @@ -1,0 +2,6 @@ +Mon Apr 30 14:54:40 UTC 2012 - [email protected] + +- Cleaned up spec file formatting +- Added python 3 package + +------------------------------------------------------------------- New Changes file: --- /dev/null 2012-05-03 01:24:41.895590051 +0200 +++ /work/SRC/openSUSE:Factory/.python-pylint.new/python3-pylint.changes 2012-05-07 22:50:38.000000000 +0200 @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Mon Apr 30 14:54:40 UTC 2012 - [email protected] + +- Cleaned up spec file formatting +- Added python 3 package + New: ---- python3-pylint.changes python3-pylint.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pylint.spec ++++++ --- /var/tmp/diff_new_pack.qwEJu9/_old 2012-05-07 22:50:39.000000000 +0200 +++ /var/tmp/diff_new_pack.qwEJu9/_new 2012-05-07 22:50:39.000000000 +0200 @@ -15,8 +15,8 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - -Name: python-pylint +%define modname pylint +Name: python-%{modname} Version: 0.25.1 Release: 0 Summary: Syntax and style checker for Python code @@ -31,9 +31,10 @@ Obsoletes: pylint <= %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %{py_requires} -%if 0%suse_version > 1110 +%if 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else BuildArch: noarch -%define py_sitedir %python_sitelib %endif %description @@ -52,40 +53,24 @@ customizable, and you can easily write a small plugin to add a personal feature. -Please send any comment, patch or question to the python-projects -mailing-list. Before asking a question, please first search the -archives in case it would have already been answered. You may want to -use google and add "site:lists.logilab.org" to your keywords to narrow -your search. We will soon provide our own search engine. - -Authors: --------- - Logilab <[email protected]> - %prep -%setup -q -n pylint-%{version} +%setup -q -n %{modname}-%{version} %build -%{__python} setup.py build +python setup.py build %install #export PYTHONOPTIMIZE=1 #--optimize=1 -%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES - -# some files contain expected errors, hence compilation fails, -# remove them from installed file list, too -for p in $(find %{buildroot}%{py_sitedir}/pylint/test/input -name \*.py); do - if ! $(test -f ${p}c); then - f=$(basename $p) - sed -i "/.*\/${f}c$/d" INSTALLED_FILES - fi -done +python setup.py install --prefix=%{_prefix} --root=%{buildroot} %clean -%{__rm} -rf %{buildroot} +rm -rf %{buildroot} -%files -f INSTALLED_FILES +%files %defattr(-,root,root) %doc README ChangeLog examples/ doc/ +%{_bindir}/* +%{python_sitelib}/%{modname}/ +%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info %changelog ++++++ python3-pylint.spec ++++++ # # spec file for package python3-pylint # # Copyright (c) 2012 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/ # %define modname pylint Name: python3-%{modname} Version: 0.25.1 Release: 0 Summary: Syntax and style checker for Python code License: GPL-2.0+ Group: Development/Languages/Python Url: http://www.logilab.org/projects/pylint/ Source: pylint-%{version}.tar.gz BuildRequires: python3 BuildRequires: python3-2to3 BuildRequires: python3-devel Requires: python3-logilab-astng >= 0.21.1 Requires: python3-logilab-common >= 0.55 Provides: pylint = %{version} Obsoletes: pylint <= %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} <= 1140 %{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)" 2>/dev/null || echo PYTHON-NOT-FOUND)} %ifarch x86_64 # to allow ownership of noarch python directories BuildRequires: python3-32bit %endif %endif BuildArch: noarch Requires: python3 >= %{py3_ver} %description Pylint analyzes Python source code looking for bugs and signs of poor quality. Pylint is a python tool that checks if a module satisfies a coding standard. Pylint can be seen as another PyChecker since nearly all tests you can do with PyChecker can also be done with Pylint. But Pylint offers some more features, like checking line-code's length, checking if variable names are well-formed according to your coding standard, or checking if declared interfaces are truly implemented, and much more (see the complete check list). The big advantage with Pylint is that it is highly configurable, customizable, and you can easily write a small plugin to add a personal feature. %prep %setup -q -n %{modname}-%{version} %build python3 setup.py build %install # build failes without --no-compile python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} --no-compile for f in %{buildroot}%{_bindir}/*; do mv $f $f-python%{py3_ver}; done %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README ChangeLog examples/ doc/ %{_bindir}/*-python%{py3_ver} %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}-py%{py3_ver}.egg-info %if 0%{?suse_version} <= 1140 %dir %{python3_sitelib} %endif %changelog -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
