Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Do
-
None
Description
If rpmlint is getting added to Docker build. Some easy standing issues should be fixed or suspended. This one is for very easy ones:
- License GPLv2 should be GPL-2.0-only as rpm should use SPDX license string
- License LGPLv2.1 should be LGPL-2.1-only as in above
- Some requirements are circular (updated later)
These are to update size they are found. Nothing big changes are not made only fine tuning.
I examined this little bit this issue with small test spec file and compiled it with rpmbuild -ba test-gpl.spec and rpmbuild -ba test-gpl-spdx.spec. For test-gpl.spec just replace GPLv2 OR LGPLv2
Name: test-gpl-spdx
Version: 1.0.0
Release: 0
Summary: Test GPLv2 license
License: GPL-2.0-only OR LGPL-2.0-only
Group: Applications/Internet
URL: https://www.example.com
Source0: test.txt
%description
RPMlint test which license is ok
%prep
%build
%install
mkdir -p %{buildroot}%{_bindir}
chmod +x %{SOURCE0}
cp %{SOURCE0} %{buildroot}%{_bindir}
%files
%{_bindir}/*.txt
Run rpmlint and result is that only SLES and openSUSE supports SPDX and others goes with old style. First approach is wrong and need small adjustment.