Mageia Bugzilla – Attachment 14058 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
katnatek version of rpmlint 2.4.0 spec
rpmlint.spec (text/plain), 3.36 KB, created by
katnatek
on 2023-10-15 03:30:14 CEST
(
hide
)
Description:
katnatek version of rpmlint 2.4.0 spec
Filename:
MIME Type:
Creator:
katnatek
Created:
2023-10-15 03:30:14 CEST
Size:
3.36 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 >%define fedora_url https://github.com/rpm-software-management/rpmlint/raw/main/configs/Fedora ># Taken from https://github.com/rpm-software-management/rpmlint/tree/main/configs/Fedora >Source1: %{fedora_url}/fedora.toml >Source3: %{fedora_url}/scoring.toml >Source4: %{fedora_url}/users-groups.toml >Source5: %{fedora_url}/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 > ># https://bugzilla.redhat.com/2175241 > >Patch1: https://github.com/rpm-software-management/rpmlint/commit/7d707f7f.patch#/0001-TagsCheck-handle-license-exception-in-grouping.patch >Patch2: https://github.com/rpm-software-management/rpmlint/commit/48aa148b.patch#/0001-TagsCheck-restore-space-exclusion-to-license_excepti.patch >Patch3: https://github.com/rpm-software-management/rpmlint/commit/65abdbd3.patch#/0002-TagsCheck-handle-license-exception-in-first-item-of-.patch > ># rpm-4.19.0 api fixes >#mageia have rpm 4.18 disbling this patches ># https://github.com/rpm-software-management/rpmlint/pull/1066 >#Patch4: 0001-DocCheck-adjust-for-rpm-4.19.0-API-changes.patch >#Patch5: 0002-rpmdiff-adjust-for-rpm-4.19.0-API-changes.patch > >Buildarch: noarch ># use git to apply patches; it handles binary diffs >BuildRequires: git-core >BuildRequires: python3-devel >BuildRequires: pyproject-rpm-macros >BuildRequires: python3dist(pybeam) >BuildRequires: python3dist(pyxdg) >BuildRequires: python3dist(tomli) >BuildRequires: python3dist(tomli-w) >BuildRequires: python3dist(zstandard) > ># tests >%if %{with tests} >BuildRequires: dash >BuildRequires: checkbashisms >BuildRequires: hunspell-cs >BuildRequires: hunspell-en-US >BuildRequires: python3dist(pytest) >BuildRequires: python3dist(pytest-xdist) >BuildRequires: appstream-util >BuildRequires: desktop-file-utils >%endif > >Requires: dash >Requires: checkbashisms >Requires: rpm-build >Requires: appstream-util >Requires: desktop-file-utils >Requires: rpmlint-fedora-license-data > >%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 -Sgit > ># 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 %define fedora_url https://github.com/rpm-software-management/rpmlint/raw/main/configs/Fedora # Taken from https://github.com/rpm-software-management/rpmlint/tree/main/configs/Fedora Source1: %{fedora_url}/fedora.toml Source3: %{fedora_url}/scoring.toml Source4: %{fedora_url}/users-groups.toml Source5: %{fedora_url}/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 # https://bugzilla.redhat.com/2175241 Patch1: https://github.com/rpm-software-management/rpmlint/commit/7d707f7f.patch#/0001-TagsCheck-handle-license-exception-in-grouping.patch Patch2: https://github.com/rpm-software-management/rpmlint/commit/48aa148b.patch#/0001-TagsCheck-restore-space-exclusion-to-license_excepti.patch Patch3: https://github.com/rpm-software-management/rpmlint/commit/65abdbd3.patch#/0002-TagsCheck-handle-license-exception-in-first-item-of-.patch # rpm-4.19.0 api fixes #mageia have rpm 4.18 disbling this patches # https://github.com/rpm-software-management/rpmlint/pull/1066 #Patch4: 0001-DocCheck-adjust-for-rpm-4.19.0-API-changes.patch #Patch5: 0002-rpmdiff-adjust-for-rpm-4.19.0-API-changes.patch Buildarch: noarch # use git to apply patches; it handles binary diffs BuildRequires: git-core BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros BuildRequires: python3dist(pybeam) BuildRequires: python3dist(pyxdg) BuildRequires: python3dist(tomli) BuildRequires: python3dist(tomli-w) BuildRequires: python3dist(zstandard) # tests %if %{with tests} BuildRequires: dash BuildRequires: checkbashisms BuildRequires: hunspell-cs BuildRequires: hunspell-en-US BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-xdist) BuildRequires: appstream-util BuildRequires: desktop-file-utils %endif Requires: dash Requires: checkbashisms Requires: rpm-build Requires: appstream-util Requires: desktop-file-utils Requires: rpmlint-fedora-license-data %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 -Sgit # 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