Mageia Bugzilla – Attachment 13400 Details for
Bug 30892
Update rpmlint to 2.3.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec file
rpmlint.spec (text/x-matlab), 1.99 KB, created by
Kristoffer Grundström
on 2022-09-25 18:59:33 CEST
(
hide
)
Description:
Proposal spec file
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2022-09-25 18:59:33 CEST
Size:
1.99 KB
patch
obsolete
>%bcond_with tests > >Name: rpmlint >Version: 2.3.0 >Release: %mkrel 1 >Summary: Tool for checking common errors in RPM packages >License: GPLv2 >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 >Source2: licenses.toml >Source3: scoring.toml >Source4: users-groups.toml >Source5: warn-on-functions.toml >BuildArch: noarch >BuildRequires: python3-devel >BuildRequires: %{py3_dist setuptools} >BuildRequires: %{py3_dist pybeam} >BuildRequires: %{py3_dist pyxdg} >BuildRequires: %{py3_dist rpm} >BuildRequires: %{py3_dist toml} >BuildRequires: %{py3_dist zstd} >Requires: checkbashisms >Requires: dash >Requires: rpm-build ># Technically works without it, but results are better with it. >Requires: appstream-util ># E: fatal error while reading ...: [Errno 2] No such file or directory: 'desktop-file-validate' >Requires: desktop-file-utils >Requires: %{py3_dist pyenchant} ># tests >BuildRequires: appstream-util >BuildRequires: %{py3_dist pytest} >BuildRequires: %{py3_dist pytest-xdist} >BuildRequires: %{py3_dist pyenchant} >BuildRequires: %{py3_dist file-magic} >BuildRequires: checkbashisms >BuildRequires: dash >BuildRequires: hunspell-cs >BuildRequires: hunspell-en-US >BuildRequires: 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 >%setup -q -n %{name}-%{version} > ># Don't lint the code or measure coverage in %%check >sed -i -e 's/ --cov=rpmlint//' -e 's/ --flake8//' setup.cfg > >%build >%py3_build > >%install >%py3_install > >mkdir -p %{buildroot}%{_sysconfdir}/xdg/rpmlint/ >cp -a %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{buildroot}%{_sysconfdir}/xdg/rpmlint/ > >%check >%if %{with tests} >%pytest >%endif > >%files >%license COPYING >%doc README.md >%config(noreplace) %{_sysconfdir}/xdg/rpmlint/*.toml >%{_bindir}/rpmdiff >%{_bindir}/rpmlint >%{python3_sitelib}/rpmlint*
%bcond_with tests Name: rpmlint Version: 2.3.0 Release: %mkrel 1 Summary: Tool for checking common errors in RPM packages License: GPLv2 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 Source2: licenses.toml Source3: scoring.toml Source4: users-groups.toml Source5: warn-on-functions.toml BuildArch: noarch BuildRequires: python3-devel BuildRequires: %{py3_dist setuptools} BuildRequires: %{py3_dist pybeam} BuildRequires: %{py3_dist pyxdg} BuildRequires: %{py3_dist rpm} BuildRequires: %{py3_dist toml} BuildRequires: %{py3_dist zstd} Requires: checkbashisms Requires: dash Requires: rpm-build # Technically works without it, but results are better with it. Requires: appstream-util # E: fatal error while reading ...: [Errno 2] No such file or directory: 'desktop-file-validate' Requires: desktop-file-utils Requires: %{py3_dist pyenchant} # tests BuildRequires: appstream-util BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist pytest-xdist} BuildRequires: %{py3_dist pyenchant} BuildRequires: %{py3_dist file-magic} BuildRequires: checkbashisms BuildRequires: dash BuildRequires: hunspell-cs BuildRequires: hunspell-en-US BuildRequires: 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 %setup -q -n %{name}-%{version} # Don't lint the code or measure coverage in %%check sed -i -e 's/ --cov=rpmlint//' -e 's/ --flake8//' setup.cfg %build %py3_build %install %py3_install mkdir -p %{buildroot}%{_sysconfdir}/xdg/rpmlint/ cp -a %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{buildroot}%{_sysconfdir}/xdg/rpmlint/ %check %if %{with tests} %pytest %endif %files %license COPYING %doc README.md %config(noreplace) %{_sysconfdir}/xdg/rpmlint/*.toml %{_bindir}/rpmdiff %{_bindir}/rpmlint %{python3_sitelib}/rpmlint*
View Attachment As Raw
Actions:
View
Attachments on
bug 30892
: 13400