forked from pool/rpmlint
- Make rpmlint-strict only a simple package with one config file.
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=789
This commit is contained in:
parent
ad7ee432ff
commit
058a327d0c
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 29 11:08:11 UTC 2021 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Make rpmlint-strict only a simple package with one config file.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 29 09:58:21 UTC 2021 - Martin Liška <mliska@suse.cz>
|
Tue Jun 29 09:58:21 UTC 2021 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
21
rpmlint.spec
21
rpmlint.spec
@ -32,6 +32,7 @@ License: GPL-2.0-or-later
|
|||||||
URL: https://github.com/rpm-software-management/rpmlint
|
URL: https://github.com/rpm-software-management/rpmlint
|
||||||
Source0: rpmlint-%{version}.tar.xz
|
Source0: rpmlint-%{version}.tar.xz
|
||||||
Patch0: disable-flake.patch
|
Patch0: disable-flake.patch
|
||||||
|
%if "%flavor" != "strict"
|
||||||
BuildRequires: appstream-glib
|
BuildRequires: appstream-glib
|
||||||
BuildRequires: binutils
|
BuildRequires: binutils
|
||||||
BuildRequires: checkbashisms
|
BuildRequires: checkbashisms
|
||||||
@ -53,7 +54,6 @@ BuildRequires: python3-rpm
|
|||||||
BuildRequires: python3-toml
|
BuildRequires: python3-toml
|
||||||
BuildRequires: python3-zstd
|
BuildRequires: python3-zstd
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
#!BuildIgnore: rpmlint-strict
|
|
||||||
Requires: appstream-glib
|
Requires: appstream-glib
|
||||||
Requires: bash
|
Requires: bash
|
||||||
Requires: binutils
|
Requires: binutils
|
||||||
@ -78,8 +78,6 @@ BuildArch: noarch
|
|||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
BuildRequires: glibc-32bit
|
BuildRequires: glibc-32bit
|
||||||
%endif
|
%endif
|
||||||
%if "%flavor" != "strict"
|
|
||||||
Conflicts: rpmlint-strict
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -90,21 +88,31 @@ source packages can be checked.
|
|||||||
%autosetup -p1 -n rpmlint-%{version}
|
%autosetup -p1 -n rpmlint-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if "%flavor" != "strict"
|
||||||
%python3_build
|
%python3_build
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/xdg/rpmlint
|
||||||
|
%if "%flavor" != "strict"
|
||||||
%python3_install
|
%python3_install
|
||||||
fdupes %{buildroot}%{python3_sitelib}
|
fdupes %{buildroot}%{python3_sitelib}
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/xdg/rpmlint
|
|
||||||
install -m644 configs/openSUSE/* %{buildroot}%{_sysconfdir}/xdg/rpmlint
|
install -m644 configs/openSUSE/* %{buildroot}%{_sysconfdir}/xdg/rpmlint
|
||||||
%if "%flavor" != "strict"
|
%if "%flavor" != "strict"
|
||||||
rm %{buildroot}%{_sysconfdir}/xdg/rpmlint/scoring-strict.override.toml
|
rm %{buildroot}%{_sysconfdir}/xdg/rpmlint/scoring-strict.override.toml
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%else
|
||||||
|
install -m644 configs/openSUSE/scoring-strict.override.toml %{buildroot}%{_sysconfdir}/xdg/rpmlint
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%flavor" != "strict"
|
||||||
%check
|
%check
|
||||||
python3 -m pytest
|
python3 -m pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%if "%flavor" != "strict"
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc README*
|
%doc README*
|
||||||
%{_bindir}/rpmlint
|
%{_bindir}/rpmlint
|
||||||
@ -113,4 +121,9 @@ python3 -m pytest
|
|||||||
%dir %{_sysconfdir}/xdg/rpmlint
|
%dir %{_sysconfdir}/xdg/rpmlint
|
||||||
%config %{_sysconfdir}/xdg/rpmlint/*
|
%config %{_sysconfdir}/xdg/rpmlint/*
|
||||||
|
|
||||||
|
%else
|
||||||
|
%dir %{_sysconfdir}/xdg/rpmlint
|
||||||
|
%config %{_sysconfdir}/xdg/rpmlint/scoring-strict.override.toml
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user