2019-09-30 10:37:57 -04:00
|
|
|
Name: efivar
|
2022-11-07 11:54:25 +00:00
|
|
|
Version: 38
|
2024-04-08 07:39:20 +00:00
|
|
|
Release: 6
|
2019-09-30 10:37:57 -04:00
|
|
|
Summary: Tools and libraries to work with EFI variables
|
2022-11-07 11:54:25 +00:00
|
|
|
License: LGPL-2.1-only
|
2019-09-30 10:37:57 -04:00
|
|
|
URL: https://github.com/rhboot/%{name}
|
|
|
|
|
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
|
2022-11-07 11:54:25 +00:00
|
|
|
|
2023-08-28 14:02:55 +08:00
|
|
|
Patch0001: 0001-Fix-the-march-issue-for-riscv64-and-sw_64.patch
|
2022-11-07 11:54:25 +00:00
|
|
|
Patch0002: 0002-Fix-glibc-2.36-build-mount.h-conflicts.patch
|
2022-10-19 16:04:22 +08:00
|
|
|
%ifarch sw_64
|
2022-11-07 11:54:25 +00:00
|
|
|
Patch0003: efivar-37-sw.patch
|
2022-10-19 16:04:22 +08:00
|
|
|
%endif
|
2023-09-12 17:43:14 +08:00
|
|
|
Patch9000: dp_h-check-_ucs2size-in-format_ucs2.patch
|
2024-03-13 06:27:39 +00:00
|
|
|
Patch9001: backport-Fix-invalid-free-in-main.patch
|
2024-04-08 07:39:20 +00:00
|
|
|
Patch9002: add-loongarch64-support-for-efivar.patch
|
2019-09-30 10:37:57 -04:00
|
|
|
|
2019-11-06 19:06:18 +08:00
|
|
|
BuildRequires: popt-devel glibc-static
|
2022-11-07 11:54:25 +00:00
|
|
|
BuildRequires: gcc mandoc
|
2020-02-17 17:31:50 +08:00
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
2019-09-30 10:37:57 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Some command line interface of the UEFI variables tools are offered by %{name}.
|
|
|
|
|
|
2020-02-17 17:31:50 +08:00
|
|
|
%package libs
|
|
|
|
|
Summary: Libraries for %{name}
|
|
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
|
Libraries for %{name}.
|
|
|
|
|
|
2019-09-30 10:37:57 -04:00
|
|
|
%package devel
|
|
|
|
|
Summary: Development headers requred by libefivar
|
2020-02-17 17:31:50 +08:00
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
2019-09-30 10:37:57 -04:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Development titles to use libefivar must be included.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
2021-07-30 16:49:54 +08:00
|
|
|
export LDFLAGS="-flto-partition=none"
|
2024-04-05 16:35:23 +08:00
|
|
|
%if "%{?toolchain}" == "clang"
|
|
|
|
|
%global make_opts CC=clang CXX=clang++
|
|
|
|
|
%endif
|
|
|
|
|
%make_build %{?make_opts}
|
2019-09-30 10:37:57 -04:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
2022-11-07 11:54:25 +00:00
|
|
|
install -m 0644 src/abignore %{buildroot}%{_includedir}/efivar/.abignore
|
2019-09-30 10:37:57 -04:00
|
|
|
|
2020-02-17 17:31:50 +08:00
|
|
|
%ldconfig_scriptlets libs
|
2019-09-30 10:37:57 -04:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%license COPYING
|
2022-11-07 11:54:25 +00:00
|
|
|
%{_bindir}/*
|
2020-02-17 17:31:50 +08:00
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:37:57 -04:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_includedir}/%{name}/*.h
|
2022-11-07 11:54:25 +00:00
|
|
|
%{_includedir}/%{name}/.abignore
|
2019-09-30 10:37:57 -04:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
%{_libdir}/libefiboot.so
|
|
|
|
|
%{_libdir}/libefivar.so
|
2022-11-07 11:54:25 +00:00
|
|
|
%{_libdir}/libefisec.so
|
2019-09-30 10:37:57 -04:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README.md
|
2022-11-07 11:54:25 +00:00
|
|
|
%{_mandir}/man1/*.1.gz
|
2019-09-30 10:37:57 -04:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-04-08 07:39:20 +00:00
|
|
|
* Mon Apr 8 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 38-6
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add loongarch64 support for efivar
|
|
|
|
|
|
2024-04-05 16:35:23 +08:00
|
|
|
* Mon Apr 1 2024 luofeng13 <luofeng13@huawei.com> - 38-5
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:support clang build
|
|
|
|
|
|
2024-03-13 06:27:39 +00:00
|
|
|
* Wed Mar 13 2024 zhouyihang <zhouyihang3@h-partners.com> - 38-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix invalid free in main()
|
|
|
|
|
|
2023-09-12 17:43:14 +08:00
|
|
|
* Tue Sep 12 2023 zhangqiumiao <zhangqiumiao1@huawei.com> - 38-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:dp.h: check _ucs2size in format_ucs2()
|
|
|
|
|
|
2023-08-28 14:02:55 +08:00
|
|
|
* Wed Apr 26 2023 panchenbo <panchenbo@kylinsec.com.cn> - 38-2
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix sw_64 build error
|
|
|
|
|
|
2022-11-07 11:54:25 +00:00
|
|
|
* Mon Nov 07 2022 zhouyihang <zhouyihang3@h-partners.com> - 38-1
|
|
|
|
|
- Type:requirements
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update efivar to 38
|
|
|
|
|
|
2022-10-19 16:04:22 +08:00
|
|
|
* Wed Oct 19 2022 wuzx<wuzx1226@qq.com> - 37-9
|
|
|
|
|
- Type:feature
|
|
|
|
|
- CVE:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Add sw64 architecture
|
|
|
|
|
|
2022-05-16 15:22:43 +08:00
|
|
|
* Mon May 16 2022 mylee <liweiganga@uniontech.com> - 37-8
|
|
|
|
|
- fix spec changelog date
|
|
|
|
|
|
2022-03-24 16:25:24 +08:00
|
|
|
* Thu Mar 24 2022 xinghe <xinghe2@h-partners.com> - 37-7
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix efibootmgr -v error
|
|
|
|
|
|
2021-07-30 16:49:54 +08:00
|
|
|
* Fri Jul 30 2021 gaihuiying <gaihuiying1@huawei.com> - 37-6
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix build error with gcc10
|
|
|
|
|
|
2021-05-27 10:49:39 +08:00
|
|
|
* Thu May 27 2021 lijingyuan <lijingyuan3@huawei.com> - 37-5
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Add the compilation dependency of gcc.
|
|
|
|
|
|
2022-05-16 15:22:43 +08:00
|
|
|
* Tue Jun 9 2020 zhujunhao <zhujunhao8@huawei.com> - 37-4
|
2020-06-09 17:46:51 +08:00
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix gcc9 new warning -Werror=address-of-packed-member
|
|
|
|
|
|
2020-02-17 17:31:50 +08:00
|
|
|
* Mon Feb 17 2020 hexiujun <hexiujun1@huawei.com> - 37-3
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:unpack libs subpackage
|
|
|
|
|
|
2019-11-06 19:06:18 +08:00
|
|
|
* Thu Oct 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 37-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove the libabigail in buildRequires.
|
|
|
|
|
|
2019-09-30 10:37:57 -04:00
|
|
|
* Mon Sep 2 2019 openEuler Buildteam <buildteam@openeuler.org> - 37-1
|
|
|
|
|
- Package init
|