2008-04-17 04:52:37 +02:00
|
|
|
#
|
2021-10-12 09:23:05 +02:00
|
|
|
# spec file
|
2008-04-17 04:52:37 +02:00
|
|
|
#
|
2021-01-11 09:39:19 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2008-04-17 04:52:37 +02:00
|
|
|
#
|
2008-08-06 01:56:12 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-11-28 13:04:28 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-04-17 04:52:37 +02:00
|
|
|
#
|
|
|
|
|
2012-01-11 18:32:22 +01:00
|
|
|
|
2021-06-24 11:03:59 +02:00
|
|
|
%define flavor @BUILD_FLAVOR@%{nil}
|
2021-08-27 09:45:25 +02:00
|
|
|
%if "%{flavor}" == ""
|
2021-06-24 11:03:59 +02:00
|
|
|
%define name_suffix %{nil}
|
2021-08-27 09:45:25 +02:00
|
|
|
%else
|
|
|
|
%define name_suffix -%{flavor}
|
2021-06-24 11:03:59 +02:00
|
|
|
%endif
|
|
|
|
Name: rpmlint%{name_suffix}
|
2021-11-23 08:16:56 +01:00
|
|
|
Version: 2.1+git20211122.36cebbc
|
2017-10-01 14:53:30 +02:00
|
|
|
Release: 0
|
2017-10-24 15:44:17 +02:00
|
|
|
Summary: RPM file correctness checker
|
2018-03-26 12:30:54 +02:00
|
|
|
License: GPL-2.0-or-later
|
2019-11-28 13:04:28 +01:00
|
|
|
URL: https://github.com/rpm-software-management/rpmlint
|
2021-06-24 08:33:48 +02:00
|
|
|
Source0: rpmlint-%{version}.tar.xz
|
2021-08-27 10:01:37 +02:00
|
|
|
Patch0: disable-flake.patch
|
2021-08-26 16:18:40 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildArch: noarch
|
|
|
|
%if "%{flavor}" == "test"
|
2021-06-24 08:33:48 +02:00
|
|
|
BuildRequires: appstream-glib
|
|
|
|
BuildRequires: binutils
|
|
|
|
BuildRequires: checkbashisms
|
|
|
|
BuildRequires: dash
|
2019-01-23 22:53:50 +01:00
|
|
|
BuildRequires: desktop-file-utils
|
2021-06-24 08:33:48 +02:00
|
|
|
BuildRequires: myspell-cs_CZ
|
|
|
|
BuildRequires: myspell-en_US
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-01-23 22:53:50 +01:00
|
|
|
BuildRequires: python3-magic
|
2021-06-24 08:33:48 +02:00
|
|
|
BuildRequires: python3-pybeam
|
|
|
|
BuildRequires: python3-pyenchant
|
2017-10-01 14:53:30 +02:00
|
|
|
BuildRequires: python3-pytest
|
2021-06-24 08:33:48 +02:00
|
|
|
BuildRequires: python3-pytest-cov
|
|
|
|
BuildRequires: python3-pytest-runner
|
|
|
|
BuildRequires: python3-pytest-xdist
|
|
|
|
BuildRequires: python3-pyxdg
|
2017-10-01 14:53:30 +02:00
|
|
|
BuildRequires: python3-rpm
|
2021-06-24 08:33:48 +02:00
|
|
|
BuildRequires: python3-toml
|
|
|
|
BuildRequires: python3-zstd
|
2017-10-01 14:53:30 +02:00
|
|
|
BuildRequires: xz
|
2021-08-05 10:36:58 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
BuildRequires: glibc-32bit
|
|
|
|
%endif
|
2021-08-26 16:18:40 +02:00
|
|
|
%endif
|
|
|
|
%if "%{flavor}" == ""
|
2021-06-24 08:33:48 +02:00
|
|
|
Requires: appstream-glib
|
2017-10-01 14:53:30 +02:00
|
|
|
Requires: bash
|
2021-06-24 08:33:48 +02:00
|
|
|
Requires: binutils
|
2017-10-01 14:53:30 +02:00
|
|
|
Requires: checkbashisms
|
|
|
|
Requires: cpio
|
|
|
|
Requires: dash
|
|
|
|
Requires: desktop-file-utils
|
|
|
|
Requires: file
|
|
|
|
Requires: findutils
|
2021-06-24 08:33:48 +02:00
|
|
|
Requires: myspell-en_US
|
2017-10-01 14:53:30 +02:00
|
|
|
Requires: python3-magic
|
|
|
|
Requires: python3-pybeam
|
2021-06-24 08:33:48 +02:00
|
|
|
Requires: python3-pyenchant
|
|
|
|
Requires: python3-pyxdg
|
2017-10-01 14:53:30 +02:00
|
|
|
Requires: python3-rpm
|
2021-06-24 08:33:48 +02:00
|
|
|
Requires: python3-toml
|
2017-10-01 14:53:30 +02:00
|
|
|
Requires: python3-xml
|
2021-06-24 08:33:48 +02:00
|
|
|
Requires: python3-zstd
|
|
|
|
Requires: rpm-build
|
|
|
|
%endif
|
2021-08-05 10:36:58 +02:00
|
|
|
|
2008-04-17 04:52:37 +02:00
|
|
|
%description
|
2017-10-24 15:44:17 +02:00
|
|
|
rpmlint is a tool to check common errors on RPM packages. Binary and
|
2008-04-17 04:52:37 +02:00
|
|
|
source packages can be checked.
|
|
|
|
|
|
|
|
%prep
|
2021-06-24 08:33:48 +02:00
|
|
|
%autosetup -p1 -n rpmlint-%{version}
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
%build
|
2021-08-26 16:18:40 +02:00
|
|
|
%if "%{flavor}" != "strict"
|
2021-06-24 08:33:48 +02:00
|
|
|
%python3_build
|
2021-06-29 13:08:28 +02:00
|
|
|
%endif
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
%install
|
2021-08-26 16:18:40 +02:00
|
|
|
%if "%{flavor}" != "test"
|
2021-06-29 13:08:28 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/xdg/rpmlint
|
2021-08-26 16:18:40 +02:00
|
|
|
install -m644 configs/openSUSE/scoring-strict.override.toml %{buildroot}%{_sysconfdir}/xdg/rpmlint
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{flavor}" == ""
|
2021-06-24 08:33:48 +02:00
|
|
|
%python3_install
|
|
|
|
fdupes %{buildroot}%{python3_sitelib}
|
|
|
|
install -m644 configs/openSUSE/* %{buildroot}%{_sysconfdir}/xdg/rpmlint
|
2021-06-25 09:22:19 +02:00
|
|
|
rm %{buildroot}%{_sysconfdir}/xdg/rpmlint/scoring-strict.override.toml
|
2021-06-24 11:03:59 +02:00
|
|
|
%endif
|
2008-04-17 04:52:37 +02:00
|
|
|
|
2021-08-26 16:18:40 +02:00
|
|
|
%if "%{flavor}" == "test"
|
2016-01-28 08:20:40 +01:00
|
|
|
%check
|
2021-06-24 08:33:48 +02:00
|
|
|
python3 -m pytest
|
2021-06-29 13:08:28 +02:00
|
|
|
%endif
|
2008-04-17 04:52:37 +02:00
|
|
|
|
|
|
|
%files
|
2021-08-26 16:18:40 +02:00
|
|
|
%if "%{flavor}" == ""
|
2017-10-01 14:53:30 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README*
|
|
|
|
%{_bindir}/rpmlint
|
|
|
|
%{_bindir}/rpmdiff
|
2021-06-24 08:33:48 +02:00
|
|
|
%{python3_sitelib}/rpmlint*
|
|
|
|
%dir %{_sysconfdir}/xdg/rpmlint
|
|
|
|
%config %{_sysconfdir}/xdg/rpmlint/*
|
2008-04-17 04:52:37 +02:00
|
|
|
|
2021-06-29 13:08:28 +02:00
|
|
|
%else
|
2021-08-26 16:18:40 +02:00
|
|
|
%if "%{flavor}" == "strict"
|
2021-06-29 13:08:28 +02:00
|
|
|
%dir %{_sysconfdir}/xdg/rpmlint
|
|
|
|
%config %{_sysconfdir}/xdg/rpmlint/scoring-strict.override.toml
|
|
|
|
%endif
|
2021-08-26 16:18:40 +02:00
|
|
|
%endif
|
2021-06-29 13:08:28 +02:00
|
|
|
|
2008-04-17 04:52:37 +02:00
|
|
|
%changelog
|