5a70524e4c
- Update to 1.0.2: * declare setuptools requirement in __pkginfo__/setup.py * randomize order of test modules in pytest -t * restore __pkginfo__.version, which pylint < 1.4.4 uses * remove unused/deprecated modules: cli, contexts, corbautils, dbf, pyro_ext, xmlrpcutils. __pkginfo__ is no longer installed. * major layout change * use setuptools exclusively * 'logilab' is now a proper namespace package * modutils: basic support for namespace packages * registry: ambiguous selects now raise a specific exception * testlib: better support for non-pytest launchers * testlib: Tags() now work with py3k - Now needs setuptools to compile OBS-URL: https://build.opensuse.org/request/show/328668 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-logilab-common?expand=0&rev=48
71 lines
2.6 KiB
RPMSpec
71 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-logilab-common
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX 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: python-logilab-common
|
|
Version: 1.0.2
|
|
Release: 0
|
|
Url: http://www.logilab.org/projects/common/
|
|
Summary: Python lowlevel functionality shared by logilab projects
|
|
License: LGPL-2.1+
|
|
Group: Development/Languages/Python
|
|
Source: https://pypi.python.org/packages/source/l/logilab-common/logilab-common-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-setuptools
|
|
%if 0%{?suse_version} <= 1110
|
|
%{!?python_sitearch: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
|
|
%{py_requires}
|
|
%else
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
The package logilab.common contains several modules providing low level
|
|
functionalities shared among some python projects developed by logilab.
|
|
|
|
The package is used by pylint, an advanced Python style and syntax
|
|
checker.
|
|
|
|
Please note that some of the modules have some extra dependencies. For
|
|
instance, logilab.common.db will require a db-api 2.0 compliant
|
|
database driver. Command line parsing modules require optik to be
|
|
installed, if you're using python2.1 or 2.2.
|
|
|
|
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.
|
|
|
|
%prep
|
|
%setup -n logilab-common-%{version}
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root="%{buildroot}"
|
|
rm -rf %{buildroot}{%{_bindir}/pytest,%{python_sitelib}/logilab/common/test} # Don't install tests
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc ChangeLog COPYING COPYING.LESSER README
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|