fix build error for loongarch64
(cherry picked from commit 2d4f839c73a97b412def32d399dec06faae69687)
This commit is contained in:
parent
9c7e24dd72
commit
bdd2fcfed4
@ -1,7 +1,7 @@
|
|||||||
Name: wpa_supplicant
|
Name: wpa_supplicant
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.10
|
Version: 2.10
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: A WPA Supplicant with support for WPA and WPA2 (IEEE 802.11i / RSN)
|
Summary: A WPA Supplicant with support for WPA and WPA2 (IEEE 802.11i / RSN)
|
||||||
License: BSD or GPLv2
|
License: BSD or GPLv2
|
||||||
Url: https://w1.fi/wpa_supplicant/
|
Url: https://w1.fi/wpa_supplicant/
|
||||||
@ -13,12 +13,20 @@ Source5: %{name}.logrotate
|
|||||||
#fix PEAP client to require successful Phase2 authentication when needed (CVE-2023-52160)
|
#fix PEAP client to require successful Phase2 authentication when needed (CVE-2023-52160)
|
||||||
Patch0: backport-wpa_supplicant-PEAP-client-Update-Phase-2-authentication-requiremen.patch
|
Patch0: backport-wpa_supplicant-PEAP-client-Update-Phase-2-authentication-requiremen.patch
|
||||||
|
|
||||||
|
%ifnarch loongarch64
|
||||||
Patch6000: wpa_supplicant-gui-qt4.patch
|
Patch6000: wpa_supplicant-gui-qt4.patch
|
||||||
|
%endif
|
||||||
%if "%{?toolchain}" == "clang"
|
%if "%{?toolchain}" == "clang"
|
||||||
Patch6001: Add-clang-support-for-qmake.patch
|
Patch6001: Add-clang-support-for-qmake.patch
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRequires: qt-devel >= 4.0 openssl-devel readline-devel dbus-devel libnl3-devel systemd-units docbook-utils
|
%ifarch loongarch64
|
||||||
|
BuildRequires: /usr/bin/qmake
|
||||||
|
%else
|
||||||
|
BuildRequires: qt-devel >= 4.0
|
||||||
|
%endif
|
||||||
|
BuildRequires: openssl-devel readline-devel dbus-devel libnl3-devel systemd-units docbook-utils
|
||||||
|
|
||||||
Requires(post): systemd-sysv
|
Requires(post): systemd-sysv
|
||||||
Requires(post): systemd
|
Requires(post): systemd
|
||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
@ -31,11 +39,13 @@ It is suitable for both desktop/laptop computers and embedded systems. Supplican
|
|||||||
used in the client stations. It implements key negotiation with a WPA Authenticator and it controls the roaming
|
used in the client stations. It implements key negotiation with a WPA Authenticator and it controls the roaming
|
||||||
and IEEE 802.11 authentication/association of the wlan driver.
|
and IEEE 802.11 authentication/association of the wlan driver.
|
||||||
|
|
||||||
|
%ifnarch loongarch64
|
||||||
%package gui
|
%package gui
|
||||||
Summary: Graphical User Interface for %{name}
|
Summary: Graphical User Interface for %{name}
|
||||||
|
|
||||||
%description gui
|
%description gui
|
||||||
Graphical User Interface for wpa_supplicant written using QT
|
Graphical User Interface for wpa_supplicant written using QT
|
||||||
|
%endif
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: Help package for %{name}
|
Summary: Help package for %{name}
|
||||||
@ -59,7 +69,9 @@ export CFLAGS="${CFLAGS:-%optflags} -fPIE -DPIE"\
|
|||||||
|
|
||||||
cp -f %{SOURCE1} %{name}/.config
|
cp -f %{SOURCE1} %{name}/.config
|
||||||
%{_build_cmd__ %{name}}
|
%{_build_cmd__ %{name}}
|
||||||
|
%ifnarch loongarch64
|
||||||
%{_build_cmd__ %{name} wpa_gui-qt4} %{_build_setups_qt__}
|
%{_build_cmd__ %{name} wpa_gui-qt4} %{_build_setups_qt__}
|
||||||
|
%endif
|
||||||
%{_build_cmd__ %{name} eapol_test}
|
%{_build_cmd__ %{name} eapol_test}
|
||||||
%{_build_cmd__ %{name}/doc/docbook man}
|
%{_build_cmd__ %{name}/doc/docbook man}
|
||||||
|
|
||||||
@ -73,7 +85,9 @@ install -m755 %{name}/{wpa_passphrase,wpa_cli,wpa_supplicant,eapol_test} %{build
|
|||||||
install -Dm644 %{name}/dbus/dbus-wpa_supplicant.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
|
install -Dm644 %{name}/dbus/dbus-wpa_supplicant.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
|
||||||
install -Dm644 %{name}/dbus/fi.w1.wpa_supplicant1.service %{buildroot}%{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service
|
install -Dm644 %{name}/dbus/fi.w1.wpa_supplicant1.service %{buildroot}%{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service
|
||||||
|
|
||||||
|
%ifnarch loongarch64
|
||||||
install -Dm755 %{name}/wpa_gui-qt4/wpa_gui %{buildroot}/%{_bindir}/wpa_gui
|
install -Dm755 %{name}/wpa_gui-qt4/wpa_gui %{buildroot}/%{_bindir}/wpa_gui
|
||||||
|
%endif
|
||||||
|
|
||||||
install -d %{buildroot}%{_mandir}/man{5,8}
|
install -d %{buildroot}%{_mandir}/man{5,8}
|
||||||
install -m644 %{name}/doc/docbook/*.8 %{buildroot}%{_mandir}/man8
|
install -m644 %{name}/doc/docbook/*.8 %{buildroot}%{_mandir}/man8
|
||||||
@ -96,8 +110,10 @@ install -m644 %{name}/doc/docbook/*.5 %{buildroot}%{_mandir}/man5
|
|||||||
%{_sbindir}/wpa_cli
|
%{_sbindir}/wpa_cli
|
||||||
%{_sbindir}/eapol_test
|
%{_sbindir}/eapol_test
|
||||||
|
|
||||||
|
%ifnarch loongarch64
|
||||||
%files gui
|
%files gui
|
||||||
%{_bindir}/wpa_gui
|
%{_bindir}/wpa_gui
|
||||||
|
%endif
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc %{name}/ChangeLog README %{name}/eap_testing.txt %{name}/todo.txt %{name}/wpa_supplicant.conf %{name}/examples
|
%doc %{name}/ChangeLog README %{name}/eap_testing.txt %{name}/todo.txt %{name}/wpa_supplicant.conf %{name}/examples
|
||||||
@ -105,6 +121,9 @@ install -m644 %{name}/doc/docbook/*.5 %{buildroot}%{_mandir}/man5
|
|||||||
%{_mandir}/man5/*
|
%{_mandir}/man5/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 29 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1:2.10-6
|
||||||
|
- fix build error for loongarch64
|
||||||
|
|
||||||
* Mon Apr 15 2024 Han Jinpeng <hanjinpeng@kylinos.cn> - 1:2.10-5
|
* Mon Apr 15 2024 Han Jinpeng <hanjinpeng@kylinos.cn> - 1:2.10-5
|
||||||
- Backport patch fix CVE-2023-52160
|
- Backport patch fix CVE-2023-52160
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user