2019-11-06 19:05:22 +08:00
|
|
|
%global git_commit_hash 889594ffb104e3384fd91395f4f26b8b68fc38e1
|
|
|
|
|
|
2019-09-30 10:36:38 -04:00
|
|
|
Name: dbxtool
|
|
|
|
|
Version: 8
|
2020-01-06 15:42:20 +08:00
|
|
|
Release: 10
|
2019-09-30 10:36:38 -04:00
|
|
|
Summary: Tool for managing dbx updates installed on a machine.
|
|
|
|
|
License: GPLv2
|
2019-11-06 19:05:22 +08:00
|
|
|
URL: https://github.com/vathpela/dbxtool-devel
|
|
|
|
|
Source0: https://github.com/vathpela/%{name}-devel/archive/%{git_commit_hash}/%{name}-devel-889594f.tar.gz
|
2019-09-30 10:36:38 -04:00
|
|
|
|
2019-11-06 19:05:22 +08:00
|
|
|
BuildRequires: gcc popt-devel efivar-devel >= 35-1 systemd
|
2019-09-30 10:36:38 -04:00
|
|
|
Requires: efivar systemd
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Tool for managing dbx updates installed on a machine.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
2019-11-06 19:05:22 +08:00
|
|
|
%autosetup -n %{name}-devel-%{git_commit_hash} -p1
|
2019-09-30 10:36:38 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%make_build CFLAGS="$RPM_OPT_FLAGS" CCLDFLAGS="%{__global_ldflags}"
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
|
2019-11-06 19:05:22 +08:00
|
|
|
%check
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
2019-09-30 10:36:38 -04:00
|
|
|
%preun
|
|
|
|
|
%systemd_preun dbxtool.service
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post dbxtool.service
|
|
|
|
|
|
2019-11-06 19:05:22 +08:00
|
|
|
%postun
|
|
|
|
|
|
2019-09-30 10:36:38 -04:00
|
|
|
%files
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%license COPYING
|
|
|
|
|
%exclude %{_docdir}/%{name}/COPYING
|
|
|
|
|
%{_unitdir}/dbxtool.service
|
2019-11-06 19:05:22 +08:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%dir %{_datadir}/%{name}/
|
|
|
|
|
%{_datadir}/%{name}/*.bin
|
2019-09-30 10:36:38 -04:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc %{_mandir}/man1/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-01-06 15:42:20 +08:00
|
|
|
* Mon Jan 6 2020 openEuler Buildteam <buildteam@openeuler.org> - 8-10
|
|
|
|
|
- remove useless patch.
|
|
|
|
|
|
2019-11-06 19:05:22 +08:00
|
|
|
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 8-9
|
|
|
|
|
- Package rebuild.
|
|
|
|
|
|
|
|
|
|
* Mon Sep 02 2019 openEuler Buildteam <buildteam@openeuler.org> - 8-8
|
|
|
|
|
- Package init.
|