Consolidate the el8 blocks

Gate excludearch to el8 only

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9
Michel Alexandre Salim 4 years ago
parent e3e864d550
commit 9e41c67180
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

@ -41,10 +41,10 @@ Source5: README-epel.md
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
%if 0%{?el8}
# https://bugzilla.redhat.com/show_bug.cgi?id=1978414 # https://bugzilla.redhat.com/show_bug.cgi?id=1978414
ExcludeArch: s390x ExcludeArch: s390x
%if 0%{?el8}
BuildRequires: rust-toolset BuildRequires: rust-toolset
# for libbpf-sys # for libbpf-sys
BuildRequires: kernel-headers BuildRequires: kernel-headers
@ -111,6 +111,7 @@ Recommends: logrotate
%setup -q -n %{crate}-%{version} %setup -q -n %{crate}-%{version}
%patch1 -p1 %patch1 -p1
%cargo_prep -V 4 %cargo_prep -V 4
cp -p %{SOURCE5} README-epel.md
%else %else
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep %cargo_prep
@ -122,10 +123,6 @@ cp -p %{SOURCE3} README.md
%cargo_generate_buildrequires %cargo_generate_buildrequires
%endif %endif
%if 0%{?el8}
cp -p %{SOURCE5} README-epel.md
%endif
%build %build
%cargo_build %cargo_build
@ -142,8 +139,9 @@ install -d -m1777 %{buildroot}%{_localstatedir}/log/%{crate}
%endif %endif
%changelog %changelog
* Thu Jul 1 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.2.0-4 * Tue Jul 6 2021 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.2.0-4
- Add README-epel.md with instructions for enabling PSI support - Add README-epel.md with instructions for enabling PSI support
- Gate ExclusiveArch s390x to el8 only
* Wed Jun 30 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.2.0-3 * Wed Jun 30 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.2.0-3
- Add vendored dependencies for EPEL and make it build there - Add vendored dependencies for EPEL and make it build there

Loading…
Cancel
Save