From 21daa33cb22b0b257f3da5b1fa24a270f9facd50 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Thu, 5 Sep 2024 23:43:21 +0300 Subject: [PATCH] Delete rpmlint spec --- specs/rpmlint/SOURCES/default-config.patch | 28 ------ specs/rpmlint/rpmlint.spec | 99 ---------------------- tests/rpmlint/rpmlint.recipe | 50 ----------- tests/rpmlint/test1.spec | 53 ------------ tests/rpmlint/test2.spec | 54 ------------ tests/rpmlint/test3.spec | 53 ------------ 6 files changed, 337 deletions(-) delete mode 100644 specs/rpmlint/SOURCES/default-config.patch delete mode 100644 specs/rpmlint/rpmlint.spec delete mode 100644 tests/rpmlint/rpmlint.recipe delete mode 100644 tests/rpmlint/test1.spec delete mode 100644 tests/rpmlint/test2.spec delete mode 100644 tests/rpmlint/test3.spec diff --git a/specs/rpmlint/SOURCES/default-config.patch b/specs/rpmlint/SOURCES/default-config.patch deleted file mode 100644 index d010b4a29..000000000 --- a/specs/rpmlint/SOURCES/default-config.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff --color -urN rpmlint-2.4.0-orig/configs/Fedora/fedora.toml rpmlint-2.4.0/configs/Fedora/fedora.toml ---- rpmlint-2.4.0-orig/configs/Fedora/fedora.toml 2022-10-03 17:00:16.000000000 +0300 -+++ rpmlint-2.4.0/configs/Fedora/fedora.toml 2023-07-03 20:17:21.000000000 +0300 -@@ -39,7 +39,6 @@ - - # Enabled checks for the rpmlint to be run (besides the default set) - Checks = [ -- "BashismsCheck", - "PAMModulesCheck", - "TmpFilesCheck", - "SysVInitOnSystemdCheck", -@@ -90,6 +89,7 @@ - # ' dir-or-file-in-usr-local ', # handled by CheckFilelist.py - ' non-standard-dir-in-usr ', # handled by CheckFilelist.py - ' no-signature', -+ ' superfluous-%clean-section', - # ' symlink-crontab-file', #bnc591431 - # ' without-chkconfig', - # 'unstripped-binary-or-object.*\.ko', -@@ -294,6 +294,8 @@ - 'invalid-url .*\.jboss\.org/.*HTTP Error 403', - 'invalid-url .*bitbucket\.org/.*HTTP Error 403', - 'invalid-url .*github\.com/.*HTTP Error 403', -+ ## Ignore local packages -+ 'invalid-url Source.* [^\/]*', - # Don't care about long descriptions on debuginfo packages - # They automatically include the package name and are always - # quite long. diff --git a/specs/rpmlint/rpmlint.spec b/specs/rpmlint/rpmlint.spec deleted file mode 100644 index 9660fa887..000000000 --- a/specs/rpmlint/rpmlint.spec +++ /dev/null @@ -1,99 +0,0 @@ -################################################################################ - -Summary: Tool for checking common errors in RPM packages -Name: rpmlint -Version: 2.4 -Release: 0%{?dist} -License: GPLv2 -Group: Development/Tools -URL: https://github.com/rpm-software-management/rpmlint - -Source0: https://github.com/rpm-software-management/%{name}/archive/refs/tags/%{version}.0.tar.gz - -Patch0: default-config.patch - -BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: python3-devel >= 3.8 python3-setuptools - -Requires: cpio binutils rpm-build gzip bzip2 xz epel-release -Requires: python3 >= 3.8 python3-rpm python3-setuptools -Requires: python3-toml python3-pyxdg python3-beam - -Provides: %{name} = %{version}-%{release} - -################################################################################ - -%description -rpmlint is a tool for checking common errors in rpm packages. rpmlint can be -used to test individual packages before uploading or to check an entire -distribution. By default all applicable checks are performed but specific -checks can be performed by using command line parameters. - -rpmlint can check binary rpms (files and installed ones), source rpms, and -plain specfiles, but all checks do not apply to all argument types. For -best check coverage, run rpmlint on source rpms instead of plain specfiles, -and installed binary rpms instead of uninstalled binary rpm files. - -################################################################################ - -%prep -%setup -qn %{name}-%{version}.0 - -%patch0 -p1 - -%build -%{py3_build} - -%install -rm -rf %{buildroot} - -%{py3_install} - -install -dDm 755 %{buildroot}%{_sysconfdir}/xdg/rpmlint -install -pm 644 configs/Fedora/*.toml %{buildroot}%{_sysconfdir}/xdg/rpmlint/ - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root,-) -%doc README.md -%dir %{_sysconfdir}/xdg/rpmlint -%config(noreplace) %{_sysconfdir}/xdg/rpmlint/*.toml -%{_bindir}/rpmdiff -%{_bindir}/rpmlint -%{python3_sitelib}/* - -################################################################################ - -%changelog -* Mon Jul 03 2023 Anton Novojilov - 2.4-0 -- https://github.com/rpm-software-management/rpmlint/releases/tag/2.4.0 - -* Wed Feb 08 2023 Anton Novojilov - 2.3-0 -- https://github.com/rpm-software-management/rpmlint/releases/tag/2.3.0 - -* Wed Feb 08 2023 Anton Novojilov - 2.2-0 -- https://github.com/rpm-software-management/rpmlint/releases/tag/2.2.0 - -* Wed Feb 08 2023 Anton Novojilov - 2.1-0 -- https://github.com/rpm-software-management/rpmlint/releases/tag/2.1.0 - -* Mon Feb 06 2023 Anton Novojilov - 2.0-0 -- https://github.com/rpm-software-management/rpmlint/releases/tag/2.0.0 - -* Wed Jan 23 2019 Anton Novojilov - 1.11-0 -- https://github.com/rpm-software-management/rpmlint/releases/tag/rpmlint-1.11 - -* Mon Sep 18 2017 Anton Novojilov - 1.10-0 -- Updated to the latest release - -* Wed Nov 09 2016 Anton Novojilov - 1.9-0 -- Updated to the latest release - -* Sat Nov 14 2015 Anton Novojilov - 1.8-0 -- Initial build diff --git a/tests/rpmlint/rpmlint.recipe b/tests/rpmlint/rpmlint.recipe deleted file mode 100644 index 19b6fa1b3..000000000 --- a/tests/rpmlint/rpmlint.recipe +++ /dev/null @@ -1,50 +0,0 @@ -# Bibop recipe for rpmlint -# See more: https://kaos.sh/bibop - -pkg rpmlint - -fast-finish yes -unsafe-actions yes - -var conf_dir /etc/xdg/rpmlint - -command "-" "Check environment" - app rpmlint - app rpmdiff - -command "-" "Check configuration files" - exist {conf_dir}/fedora.toml - exist {conf_dir}/licenses.toml - exist {conf_dir}/scoring.toml - exist {conf_dir}/users-groups.toml - exist {conf_dir}/warn-on-functions.toml - - !empty {conf_dir}/fedora.toml - !empty {conf_dir}/licenses.toml - !empty {conf_dir}/scoring.toml - !empty {conf_dir}/users-groups.toml - !empty {conf_dir}/warn-on-functions.toml - - mode {conf_dir}/fedora.toml 644 - mode {conf_dir}/licenses.toml 644 - mode {conf_dir}/scoring.toml 644 - mode {conf_dir}/users-groups.toml 644 - mode {conf_dir}/warn-on-functions.toml 644 - - !file-contains {conf_dir}/fedora.toml "BashismsCheck" - file-contains {conf_dir}/fedora.toml "superfluous-%clean-section" - -command "-" "Check Python package" - python3-package rpmlint - -command "rpmlint test1.spec" "Check well-formated spec" - exit 0 - output-contains "0 packages and 1 specfiles checked; 0 errors, 0 warnings, 0 badness" - -command "rpmlint test2.spec" "Check spec with warnings" - exit 0 - output-contains "test2.spec: W: more-than-one-%changelog-section" - -command "rpmlint test3.spec" "Check spec with errors" - !exit 0 - output-contains "error: line 23: Unknown tag: %descriptionZ" diff --git a/tests/rpmlint/test1.spec b/tests/rpmlint/test1.spec deleted file mode 100644 index 7fc8f2ed8..000000000 --- a/tests/rpmlint/test1.spec +++ /dev/null @@ -1,53 +0,0 @@ -################################################################################ - -Summary: Test spec -Name: test -Version: 1.0.0 -Release: 0%{?dist} -License: GPLv2 -Group: Development/Tools -URL: https://domain.com - -Source0: https://google.com - -BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: bash -Requires: bash - -Provides: %{name} = %{version}-%{release} - -################################################################################ - -%description - -Test spec. - -################################################################################ - -%prep -%setup -q - -%build -%{make} all - -%install -rm -rf %{buildroot} - -%{make_install} - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root,-) -%{_bindir}/testapp - -################################################################################ - -%changelog -* Mon Feb 25 2019 Anton Novojilov - 1.0.0-0 -- Initial build diff --git a/tests/rpmlint/test2.spec b/tests/rpmlint/test2.spec deleted file mode 100644 index 79b2fbeb4..000000000 --- a/tests/rpmlint/test2.spec +++ /dev/null @@ -1,54 +0,0 @@ -################################################################################ - -Summary: Test spec -Name: test -Version: 1.0.0 -Release: 0%{?dist} -License: GPLv2 -Group: Development/Tools -URL: https://domain.com - -Source0: abcd.tar.gz - -BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: bash -Requires: bash - -Provides: %{name} = %{version}-%{release} - -################################################################################ - -%description - -Test spec. - -################################################################################ - -%prep -%setup -q - -%build -%{make} all - -%install -rm -rf %{buildroot} - -%{make_install} - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root,-) -%{_bindir}/testapp - -################################################################################ - -%changelog -%changelog -* Mon Feb 25 2019 Anton Novojilov - 1.0.0-0 -- Initial build diff --git a/tests/rpmlint/test3.spec b/tests/rpmlint/test3.spec deleted file mode 100644 index 4668fe4d4..000000000 --- a/tests/rpmlint/test3.spec +++ /dev/null @@ -1,53 +0,0 @@ -################################################################################ - -Summary: Test spec -Name: test -Version: 1.0.0 -Release: 0%{?dist} -License: GPLv2 -Group: Development/Tools -URL: https://domain.com - -Source0: abcd.tar.gz - -BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: bash -Requires: bash - -Provides: %{name} = %{version}-%{release} - -################################################################################ - -%descriptionZ - -Test spec. - -################################################################################ - -%prep -%setup -q - -%build -%{make} all - -%install -rm -rf %{buildroot} - -%{make_install} - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-,root,root,-) -%{_bindir}/testapp - -################################################################################ - -%changelog -* Mon Feb 25 2019 Anton Novojilov - 1.0.0-0 -- Initial build