SHA256
1
0
forked from pool/rpmlint
rpmlint/rpmlint.spec

134 lines
3.5 KiB
RPMSpec
Raw Normal View History

#
# spec file
#
# Copyright (c) 2023 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}" == ""
%define name_suffix %{nil}
%else
%define name_suffix -%{flavor}
%endif
Name: rpmlint%{name_suffix}
Accepting request 1111465 from home:fbonazzi:branches:devel:openSUSE:Factory:rpmlint - Update to version 2.4.0+git20230915.ac23757: * dbus-services: update tukitd (bsc#1215216) * FileDigestCheck: do not use hash as variable name * FileDigestCheck: Adapt fstrings to python3.12 check * test: Remove real_files opotional parameter * Add 'nats' user for NATS Server * Add 'signaling' user for Nextcloud Talk Signaling Server * Add 'otobo' user and group, successor app for OTRS * PythonCheck: Add python-sphinx-doctrees-leftover * test: Allow external file content definition * test: Allow list of files in get_tested_mock_package * test: add test documentation * test: each file now default to empty content * test: mocked test_config_files * test: mocked newly added multiple-pyc-version tests * test: mocked test_duplicates tests * Refactored FakePkg with a new helper method for cleaner code in get_tested_mock_package * moved _gather_dep_info and _gather_aux to AbstractPkg * CI: removed GSoC23 branch for CI workflow * test: mocked python dependencies leftovers; and removed 2 binaries * copied _gather_deps_info and _gather_aux functions to FakePkg class * test: mocked test_python_dependencies_missing; also removed its two rpm binaries * test: removed binaries used for testing python package dependencies from metadata and requires.txt * test: mocked another metadata test that supports complex dependency statements * test: mocked test for metadata check in python package * test: mocked complex dependencies from metadata * test: mocked test for python dependencies from requires.txt * test: mocked test for python dependencies from metadata * modified if condition in add_file_with_content function * test: distutil test for python packages is mocked * tests: Refactored Python package tests using mocking for docs, src, and tests * test: Remove binary RPM packages with Python docs and docs modules * test: modified test_python_doc_module_in_package with mocking * test: mocked test_python_doc_in_package * flake8: fixed flake8 warnings * Flake8 suggestion * Update main.yml for GitHub Actions on branch GSoC23 * No need to import FakePkg * changes as suggested * As suggested, I have made changes to to get_tested_mock_package to use API, instead of just kwargs * Tried to mock a test: test_binary.py * CI: Use pipx to install external dependencies * flake8: ignored double quotes with a comment * flake8: remove double quotes * add flake8 extra plugins * Use python-magic API when available * test: Skip test_executable_stack when ldd-failed * PythonCheck: Add check for *.pyc different version OBS-URL: https://build.opensuse.org/request/show/1111465 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=1076
2023-09-15 09:26:45 +02:00
Version: 2.4.0+git20230915.ac23757
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-and-cov.patch
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-setuptools
BuildArch: noarch
%if "%{flavor}" == "test"
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: 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: myspell-cs_CZ
BuildRequires: myspell-en_US
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-xdist
BuildRequires: python3-python-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-pyxdg
BuildRequires: python3-rpm
%if 0%{?python3_version_nodots < 311}
BuildRequires: python3-tomli
%endif
BuildRequires: python3-tomli-w
BuildRequires: python3-zstandard
BuildRequires: xz
%ifarch x86_64
BuildRequires: glibc-32bit
%endif
%endif
%if "%{flavor}" == ""
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-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-python-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
Requires: python3-pyxdg
Requires: python3-rpm
%if 0%{?python3_version_nodots < 311}
Requires: python3-tomli
%endif
Requires: python3-tomli-w
Requires: python3-zstandard
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: rpm-build
%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
%if "%{flavor}" != "test"
mkdir -p %{buildroot}%{_sysconfdir}/xdg/rpmlint
install -m644 configs/openSUSE/scoring-strict.override.toml %{buildroot}%{_sysconfdir}/xdg/rpmlint
%endif
%if "%{flavor}" == ""
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
rm %{buildroot}%{_sysconfdir}/xdg/rpmlint/scoring-strict.override.toml
%endif
%if "%{flavor}" == "test"
%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}" == ""
%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
%if "%{flavor}" == "strict"
%dir %{_sysconfdir}/xdg/rpmlint
%config %{_sysconfdir}/xdg/rpmlint/scoring-strict.override.toml
%endif
%endif
%changelog