rpmlint/rpmlint.spec

128 lines
3.3 KiB
RPMSpec
Raw Normal View History

#
# spec file
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define flavor @BUILD_FLAVOR@%{nil}
%if "%flavor" == "strict"
%define name_suffix -%{flavor}
%else
%define name_suffix %{nil}
%endif
Name: rpmlint%{name_suffix}
Version: 2.0+git20210722.86f10b0
Release: 0
Summary: RPM file correctness checker
License: GPL-2.0-or-later
URL: https://github.com/rpm-software-management/rpmlint
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
Source0: rpmlint-%{version}.tar.xz
Patch0: disable-flake.patch
BuildRequires: appstream-glib
BuildRequires: binutils
BuildRequires: checkbashisms
BuildRequires: dash
BuildRequires: desktop-file-utils
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
BuildRequires: fdupes
BuildRequires: myspell-cs_CZ
BuildRequires: myspell-en_US
BuildRequires: python-rpm-macros
BuildRequires: python3-magic
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
BuildRequires: python3-pybeam
BuildRequires: python3-pyenchant
BuildRequires: python3-pytest
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
BuildRequires: python3-pytest-cov
BuildRequires: python3-pytest-runner
BuildRequires: python3-pytest-xdist
BuildRequires: python3-pyxdg
BuildRequires: python3-rpm
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
BuildRequires: python3-toml
BuildRequires: python3-zstd
BuildRequires: xz
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
Requires: appstream-glib
Requires: bash
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
Requires: binutils
Requires: checkbashisms
Requires: cpio
Requires: dash
Requires: desktop-file-utils
Requires: file
Requires: findutils
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
Requires: myspell-en_US
Requires: python3-magic
Requires: python3-pybeam
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
Requires: python3-pyenchant
Requires: python3-pyxdg
Requires: python3-rpm
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
Requires: python3-setuptools
Requires: python3-toml
Requires: python3-xml
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
Requires: python3-zstd
Requires: rpm-build
- new versioin 1.6 - add script update_git.sh based on qemu's to simplify importing a patch series from git after rebasing. * Patches dropped: 0001-Python-3-compatibility-tweaks.patch (upstream) 0001-Set-Python-3.4-magic-number-to-3310.patch (upstream) add-scoring-support.diff (different upstream solution) check-buildroot-during-install.diff (need to fix no-cleaning-of-buildroot check upstream) fix-versioned-prereq.diff (was disabled, not sure what it's useful for) ignore-non-readable-in-etc.diff (filtered anyways) locale-support.diff (drop) locale-update.diff (different upstream solution now) more-verbose-lsb-check.diff (drop) perl-versioned-rpath-deps.diff (upstream) rpmlint-1.5-disallow-var-run-and-var-lock.diff (upstream) rpmlint-1.5-Fix-setgroups-error-name.diff (upstream) rpmlint-decode-fix.diff (different upstream solution) rpmlint-fix-unexpanded-macros-for-array-values.patch (different upstream solution) stricter-tags-check.diff (merged in weak deps and check-for-self-provides.diff) suppress-for-perl-python.diff (use filter instead) suse-binary-info-compile-opts.diff (drop) suse-changelog.patch (change config instead) suse-mono-deps-checks.diff (useful?) suse-required-lsb-tags.diff (different upstream solution) verify-buildrequires.diff (very build system specific, drop) xdg-check-exception.diff (upstream) * renamed patches: script-interpreter-only-for-exec-scripts.diff -> script-interpreter-only-for-exec-sc.diff confusing-invalid-spec-name.patch OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=317
2015-04-10 16:35:46 +02:00
BuildArch: noarch
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
%ifarch x86_64
BuildRequires: glibc-32bit
%endif
%description
rpmlint is a tool to check common errors on RPM packages. Binary and
source packages can be checked.
%prep
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
%autosetup -p1 -n rpmlint-%{version}
%build
%if "%flavor" != "strict"
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
%python3_build
%endif
%install
mkdir -p %{buildroot}%{_sysconfdir}/xdg/rpmlint
%if "%flavor" != "strict"
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
%python3_install
fdupes %{buildroot}%{python3_sitelib}
install -m644 configs/openSUSE/* %{buildroot}%{_sysconfdir}/xdg/rpmlint
%if "%flavor" != "strict"
rm %{buildroot}%{_sysconfdir}/xdg/rpmlint/scoring-strict.override.toml
%endif
%else
install -m644 configs/openSUSE/scoring-strict.override.toml %{buildroot}%{_sysconfdir}/xdg/rpmlint
%endif
%if "%flavor" != "strict"
%check
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
python3 -m pytest
%endif
%files
%if "%flavor" != "strict"
%license COPYING
%doc README*
%{_bindir}/rpmlint
%{_bindir}/rpmdiff
Accepting request 901418 from home:StevenK:branches:devel:openSUSE:Factory:rpmlint - Install configs with 644. - Update to Rpmlint 2.0: * RPMLint now is a "normal" Python application and now supports being imported like a standard Python module! This means that all the normal use-cases for RPMLint are still supported, but now you can make it a part of larger Python-based applications or services. * RPMLint uses a declarative TOML-based syntax for configuring RPMLint policy instead of Python code. * RPMLint now has an override system for the descriptions shown for various checks, so that distributions who want to give specific policy information can do so without patching the code. * RPMLint includes many more checks! Nearly all of the generally useful checks created by the openSUSE community have been merged into the tree, so distributions can now benefit from a wider offering of checks to implement policy enforcement. * RPMLint is Python 3 only and now supports Python 3.6 and newer. * RPMLint is now built and installed like a standard Python application using setuptools. - Removed legacy patches: * invalid-filerequires.diff * no-badness-return.diff * no-doc-for-lib.diff * only-reg-files-are-scripts.diff * remove-ghostfile-checks.diff * rpm415-workaround.diff * rpmgroup-checks.diff * rpmlint-suse.diff * suse-binarieschecks.diff * suse-checks.diff * suse-filter-exception.diff * suse-filter-more-verbose.diff OBS-URL: https://build.opensuse.org/request/show/901418 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=780
2021-06-24 08:33:48 +02:00
%{python3_sitelib}/rpmlint*
%dir %{_sysconfdir}/xdg/rpmlint
%config %{_sysconfdir}/xdg/rpmlint/*
%else
%dir %{_sysconfdir}/xdg/rpmlint
%config %{_sysconfdir}/xdg/rpmlint/scoring-strict.override.toml
%endif
%changelog