Blame SPECS/dbxtool.spec

14a92e
Name:           dbxtool
14a92e
Version:        8
1ede18
Release:        5%{?dist}.2
14a92e
Summary:        Secure Boot DBX updater
14a92e
License:        GPLv2
14a92e
URL:            https://github.com/vathpela/dbxtool
14a92e
ExclusiveArch:  i386 x86_64 aarch64
14a92e
BuildRequires:  popt-devel git systemd
14a92e
BuildRequires:  efivar-devel >= 31-3
14a92e
Requires:       efivar >= 31-3
14a92e
Requires(post): systemd
14a92e
Requires(preun):systemd
14a92e
Source0:        https://github.com/vathpela/dbxtool/releases/download/dbxtool-%{version}/dbxtool-%{version}.tar.bz2
14a92e
Patch0000:      %{name}-8-ccldflags.patch
14a92e
Patch0001:      0001-don-t-use-f-in-dbxtool.service.patch
14a92e
Patch0002:      0002-Make-quiet-exit-on-missing-PK-KEK-not-return-error-s.patch
1ede18
Patch0003:      0003-fix-relop-in-esl_iter_next.patch
14a92e
14a92e
%description
14a92e
This package contains DBX updates for UEFI Secure Boot.
14a92e
14a92e
%prep
14a92e
%setup -q -n %{name}-%{version}
14a92e
git init
14a92e
git config user.email "%{name}-owner@fedoraproject.org"
14a92e
git config user.name "Fedora Ninjas"
14a92e
git add .
14a92e
git commit -a -q -m "%{version} baseline."
14a92e
git am %{patches} 
14a92e
git config --unset user.email
14a92e
git config --unset user.name
14a92e
14a92e
%build
14a92e
make PREFIX=%{_prefix} LIBDIR=%{_libdir} CFLAGS="$RPM_OPT_FLAGS" CCLDFLAGS="%{__global_ldflags}"
14a92e
14a92e
%install
14a92e
rm -rf $RPM_BUILD_ROOT
14a92e
mkdir -p %{buildroot}/%{_libdir}
14a92e
make PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} \
14a92e
        install
14a92e
rm -f %{buildroot}/%{_docdir}/%{name}/COPYING
14a92e
14a92e
%post
14a92e
%systemd_post dbxtool.service
14a92e
14a92e
%preun
14a92e
%systemd_preun dbxtool.service
14a92e
14a92e
%files
14a92e
%{!?_licensedir:%global license %%doc}
14a92e
%license COPYING
14a92e
%{_bindir}/dbxtool
14a92e
%doc %{_mandir}/man1/*
14a92e
%dir %{_datadir}/dbxtool/
14a92e
%{_datadir}/dbxtool/*.bin
14a92e
%{_unitdir}/dbxtool.service
14a92e
14a92e
%changelog
1ede18
* Wed Jan 20 2021 Jan Hlavac <jhlavac@redhat.com> - 8-5.el8_3.2
1ede18
- Enable manual gating
1ede18
  Related: rhbz#1681753
1ede18
  Related: rhbz#1912474
1ede18
1ede18
* Fri Jan 15 2021 Javier Martinez Canillas <javierm@redhat.com> - 8-5.el8_3.1
1ede18
- Fix 'EFI Signature List is malformed' error (lersek)
1ede18
  Resolves: rhbz#1912474
1ede18
14a92e
* Thu Apr 12 2018 Petr Šabata <contyk@redhat.com> - 8-5
14a92e
- Fix build flags injection (rhbz#1548123)
14a92e
14a92e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8-4
14a92e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
14a92e
14a92e
* Mon Oct 23 2017 Peter Jones <pjones@redhat.com> - 8-3
14a92e
- Also don't return error if we're using --quiet and PK/KEK are absent.
14a92e
  Resolves: rhbz#1489942
14a92e
14a92e
* Thu Oct 19 2017 Peter Jones <pjones@redhat.com> - 8-2
14a92e
- Don't use -f in dbxtool.service; that'll make it do the thing we're
14a92e
  trying to avoid.
14a92e
  Resolves: rhbz#1489942
14a92e
14a92e
* Wed Oct 18 2017 Peter Jones <pjones@redhat.com> - 8-1
14a92e
- Update to dbxtool 8
14a92e
- Make a "make coverity" rule to scan the source
14a92e
  Results at: https://scan.coverity.com/projects/rhboot-dbxtool
14a92e
- Don't try to apply anything if PK and KEK aren't enrolled
14a92e
- Add --force and --quiet for the PK/KEK checker, and use them in the
14a92e
  systemd service.
14a92e
  Resolves: rhbz#1489942
14a92e
- Add a .syntastic_c_config for vim's Syntastic modules
14a92e
- Use tsearch()/tfind()/tdestroy() from libc instead of ccan htables
14a92e
- Don't open the dbx file with O_RDWR|O_CREAT, use O_RDONLY.
14a92e
- Lots of minor bug fixes gcc -Wextra and friends found.
14a92e
14a92e
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7-6
14a92e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
14a92e
14a92e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7-5
14a92e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
14a92e
14a92e
* Sat Jul 08 2017 Peter Jones <pjones@redhat.com> - 7-4
14a92e
- Rebuild for efivar-31-1.fc26
14a92e
  Related: rhbz#1468841
14a92e
14a92e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7-3
14a92e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
14a92e
14a92e
* Wed Aug 17 2016 Peter Jones <pjones@redhat.com> - 7-2
14a92e
- Rebuild for newer efivar.
14a92e
14a92e
* Wed Aug 10 2016 Peter Jones <pjones@redhat.com> - 7-1
14a92e
- Update to version 7
14a92e
- Add new dbxupdate.bin for CVE-2016-3320 and
14a92e
  https://support.microsoft.com/en-us/kb/3179577
14a92e
14a92e
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-6
14a92e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
14a92e
14a92e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-5
14a92e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
14a92e
14a92e
* Mon Feb 23 2015 Peter Jones <pjones@redhat.com> - 0.6-4
14a92e
- Zbigniew Jędrzejewski-Szmek was kind enough to audit the systemd service,
14a92e
  and had some suggestions, as did Harald Hoyer and Lennart Poettering.
14a92e
  Related: rhbz#1181568
14a92e
14a92e
* Tue Dec 09 2014 Peter Jones <pjones@redhat.com> - 0.6-3
14a92e
- Add systemd scriptlets for the service.
14a92e
14a92e
* Thu Oct 09 2014 Peter Jones <pjones@redhat.com> - 0.6-2
14a92e
- Require efivar >= 0.14-1 specifically.
14a92e
14a92e
* Wed Oct 08 2014 Peter Jones <pjones@redhat.com> - 0.6-1
14a92e
- Update to 0.6
14a92e
- make "dbxtool -l" correctly show not-well-known guids.
14a92e
14a92e
* Tue Oct 07 2014 Peter Jones <pjones@redhat.com> - 0.5-1
14a92e
- Update to 0.5:
14a92e
- make applying to dbx when it doesn't exist work (lersek)
14a92e
- make displaying KEK work right
14a92e
14a92e
* Wed Aug 20 2014 Peter Jones <pjones@redhat.com> - 0.4-1
14a92e
- First packaging attempt.