Mageia Bugzilla – Attachment 13554 Details for
Bug 30427
We still have rpmlint 1.11 while upstream is at 2.5.0 now
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec file
rpmlint.spec (text/plain), 2.44 KB, created by
Kristoffer Grundström
on 2022-12-09 09:55:06 CET
(
hide
)
Description:
Proposal spec file
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2022-12-09 09:55:06 CET
Size:
2.44 KB
patch
obsolete
># pass --without tests to skip the test suite >%bcond_without tests > >Name: rpmlint >Version: 2.4.0 >Release: %mkrel 1 >Summary: Tool for checking common errors in RPM packages >License: GPL-2.0-or-later >URL: https://github.com/rpm-software-management/rpmlint >Source0: %{url}/archive/%{version}/rpmlint-%{version}.tar.gz ># Taken from https://github.com/rpm-software-management/rpmlint/tree/main/configs/Fedora >Source1: fedora.toml >Source3: scoring.toml >Source4: users-groups.toml >Source5: warn-on-functions.toml > ># https://bugzilla.redhat.com/2132936 ># https://github.com/rpm-software-management/rpmlint/pull/943 >Patch0: https://github.com/rpm-software-management/rpmlint/commit/393cde4e.patch#/0001-fix-broken-regex-for-no-manual-page-for-binary-check.patch > >BuildArch: noarch >BuildRequires: python3-devel ># tests >%if %{with tests} >BuildRequires: dash >BuildRequires: checkbashisms >BuildRequires: hunspell-cs >BuildRequires: hunspell-en-US >BuildRequires: python3dist(pytest) >BuildRequires: python3dist(pytest-xdist) >BuildRequires: python3dist(pybeam) >BuildRequires: python3dist(pyxdg) >BuildRequires: python3dist(tomli-w) >BuildRequires: python3dist(zstandard) >BuildRequires: appstream-util >BuildRequires: desktop-file-utils >BuildRequires: pyproject-rpm-macros >BuildRequires: mock >%endif >Requires: dash >Requires: checkbashisms >Requires: rpm-build >Requires: appstream-util >Requires: desktop-file-utils > >%description >rpmlint is a tool for checking common errors in RPM packages. Binary >and source packages as well as spec files can be checked. > >%prep >%autosetup -p1 > ># Replace python-magic dep with file-magic (rhbz#1899279) >sed -i 's/python-magic/file-magic/g' setup.py > ># Don't lint the code or measure coverage in %%check >sed -i -e 's/ --cov=rpmlint//' -e 's/ --flake8//' setup.cfg > ># Avoid warnings about pytest.mark.no_cover marker >sed -i '/^@pytest.mark.no_cover/d' test/test_lint.py > >%generate_buildrequires >%pyproject_buildrequires > >%build >%pyproject_wheel > >%install >%pyproject_install >%pyproject_save_files %{name} > >mkdir -p %{buildroot}%{_sysconfdir}/xdg/rpmlint/ >cp -a %{SOURCE1} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{buildroot}%{_sysconfdir}/xdg/rpmlint/ > >%check >%if %{with tests} >%pytest >%endif > >%files -f %{pyproject_files} >%doc README.md >%dir %{_sysconfdir}/xdg/rpmlint >%config(noreplace) %{_sysconfdir}/xdg/rpmlint/*.toml >%{_bindir}/rpmdiff >%{_bindir}/rpmlint
# pass --without tests to skip the test suite %bcond_without tests Name: rpmlint Version: 2.4.0 Release: %mkrel 1 Summary: Tool for checking common errors in RPM packages License: GPL-2.0-or-later URL: https://github.com/rpm-software-management/rpmlint Source0: %{url}/archive/%{version}/rpmlint-%{version}.tar.gz # Taken from https://github.com/rpm-software-management/rpmlint/tree/main/configs/Fedora Source1: fedora.toml Source3: scoring.toml Source4: users-groups.toml Source5: warn-on-functions.toml # https://bugzilla.redhat.com/2132936 # https://github.com/rpm-software-management/rpmlint/pull/943 Patch0: https://github.com/rpm-software-management/rpmlint/commit/393cde4e.patch#/0001-fix-broken-regex-for-no-manual-page-for-binary-check.patch BuildArch: noarch BuildRequires: python3-devel # tests %if %{with tests} BuildRequires: dash BuildRequires: checkbashisms BuildRequires: hunspell-cs BuildRequires: hunspell-en-US BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-xdist) BuildRequires: python3dist(pybeam) BuildRequires: python3dist(pyxdg) BuildRequires: python3dist(tomli-w) BuildRequires: python3dist(zstandard) BuildRequires: appstream-util BuildRequires: desktop-file-utils BuildRequires: pyproject-rpm-macros BuildRequires: mock %endif Requires: dash Requires: checkbashisms Requires: rpm-build Requires: appstream-util Requires: desktop-file-utils %description rpmlint is a tool for checking common errors in RPM packages. Binary and source packages as well as spec files can be checked. %prep %autosetup -p1 # Replace python-magic dep with file-magic (rhbz#1899279) sed -i 's/python-magic/file-magic/g' setup.py # Don't lint the code or measure coverage in %%check sed -i -e 's/ --cov=rpmlint//' -e 's/ --flake8//' setup.cfg # Avoid warnings about pytest.mark.no_cover marker sed -i '/^@pytest.mark.no_cover/d' test/test_lint.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{name} mkdir -p %{buildroot}%{_sysconfdir}/xdg/rpmlint/ cp -a %{SOURCE1} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{buildroot}%{_sysconfdir}/xdg/rpmlint/ %check %if %{with tests} %pytest %endif %files -f %{pyproject_files} %doc README.md %dir %{_sysconfdir}/xdg/rpmlint %config(noreplace) %{_sysconfdir}/xdg/rpmlint/*.toml %{_bindir}/rpmdiff %{_bindir}/rpmlint
View Attachment As Raw
Actions:
View
Attachments on
bug 30427
:
13554
|
13555
|
13556
|
13600
|
13601
|
14058