forked from pool/python-inspektor
77 lines
2.3 KiB
RPMSpec
77 lines
2.3 KiB
RPMSpec
|
#
|
||
|
# spec file for package python
|
||
|
#
|
||
|
# Copyright (c) 2017 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/
|
||
|
#
|
||
|
|
||
|
|
||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||
|
%global pkgname inspektor
|
||
|
Name: python-%{pkgname}
|
||
|
Version: 0.4.5
|
||
|
Release: 0
|
||
|
Summary: Program used to verify the code of your python project
|
||
|
License: GPL-2.0
|
||
|
Group: Development/Languages/Python
|
||
|
Url: https://github.com/avocado-framework/inspektor
|
||
|
Source: https://github.com/avocado-framework/inspektor/archive/%{version}.tar.gz#/%{pkgname}-%{version}.tar.gz
|
||
|
BuildRequires: %{python_module base}
|
||
|
BuildRequires: %{python_module devel}
|
||
|
BuildRequires: %{python_module logutils}
|
||
|
BuildRequires: %{python_module pep8}
|
||
|
BuildRequires: %{python_module pylint}
|
||
|
BuildRequires: %{python_module setuptools}
|
||
|
BuildRequires: %{python_module six}
|
||
|
BuildRequires: fdupes
|
||
|
BuildRequires: python-rpm-macros
|
||
|
Requires: python-logutils
|
||
|
Requires: python-pep8
|
||
|
Requires: python-pylint
|
||
|
Requires: python-six
|
||
|
Requires(post): update-alternatives
|
||
|
Requires(postun): update-alternatives
|
||
|
BuildArch: noarch
|
||
|
%python_subpackages
|
||
|
|
||
|
%description
|
||
|
Inspektor is a program used to verify the code of a Python project.
|
||
|
It checks code with the help of pylint, checks indentation with
|
||
|
pycodestyle, and checks for PEP8 compliance.
|
||
|
|
||
|
Inspektor can work with Git and SVN checkouts.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{pkgname}-%{version}
|
||
|
|
||
|
%build
|
||
|
%python_build
|
||
|
|
||
|
%install
|
||
|
%python_install
|
||
|
%python_clone -a %{buildroot}%{_bindir}/inspekt
|
||
|
%fdupes %{buildroot}
|
||
|
|
||
|
%post
|
||
|
%python_install_alternative inspekt
|
||
|
|
||
|
%postun
|
||
|
%python_uninstall_alternative inspekt
|
||
|
|
||
|
%files %{python_files}
|
||
|
%doc LICENSE README.rst
|
||
|
%python_alternative %{_bindir}/inspekt
|
||
|
%{python_sitelib}/*
|
||
|
|
||
|
%changelog
|