You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pesign-test-app/pesign-test-app.spec

91 lines
2.9 KiB

12 years ago
Summary: Simple pesign test target
Name: pesign-test-app
Version: 0.4
Release: 16%{?dist}
12 years ago
Group: Development/System
License: GPLv2
URL: https://github.com/vathpela/pesign-test-app
11 years ago
BuildRequires: gnu-efi, gnu-efi-devel
12 years ago
BuildRequires: pesign >= 0.104-1
ExclusiveArch: i686 x86_64 ia64
# pesign-test-app generates no binaries that run under the installed OS, so
# debuginfo is useless
%global debug_package %{nil}
# there is no tarball at github, of course. To get this version do:
# git clone https://github.com/vathpela/pesign-test-app.git
# git checkout %%{version}
Source0: pesign-test-app-%{version}.tar.bz2
%description
This package contains a very simple UEFI application that effectively does
nothing. The entire purpose of this is to provide a safe app to be signed,
so that we don't have to build large applications in order to test that
deployments of new pesign versions into build infrastructure have succeeded.
%prep
%setup -q
%build
make LIBDIR=%{_libdir} DATADIR=%{_datadir}
12 years ago
cp %{name}.efi %{name}-unsigned.efi
%pesign -s -i %{name}-unsigned.efi -o %{name}-signed.efi
12 years ago
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_libdir}
make LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} DATADIR=%{_datadir} \
install
12 years ago
mv %{name}-signed.efi %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi
%check
%ifarch x86_64
12 years ago
pesign -l -i %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi | grep -c -q "^Signing time: $(date +%%a\ %%b\ %%d,\ %%Y)$"
pesign -l -i %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi | grep -c -q '^The signer.s common name is Fedora Secure Boot Signer$'
%endif
12 years ago
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README COPYING
%dir %{_datadir}/%{name}-%{version}
%{_datadir}/%{name}-%{version}/%{name}.efi
%{_datadir}/%{name}-%{version}/%{name}-signed.efi
%changelog
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Tue Feb 17 2015 Peter Jones <pjones@redhat.com> - 0.4-14
- Right hand.
* Tue Feb 17 2015 Peter Jones <pjones@redhat.com> - 0.4-13
- Left hand.
* Mon Nov 10 2014 Peter Jones <pjones@redhat.com> - 0.4-12
- And the other shoe drops.
* Mon Nov 10 2014 Peter Jones <pjones@redhat.com> - 0.4-11
- I bet you don't know why this is getting built now.
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Aug 28 2013 Peter Jones <pjones@redhat.com> - 0.4-4
- Rebuilding to make sure bkernel01 is working right
12 years ago
* Wed May 22 2013 Peter Jones <pjones@redhat.com> - 0.4-2
- Add %%check
* Tue May 21 2013 Peter Jones <pjones@redhat.com> - 0.4-1
- Make it build on i686.
12 years ago
* Tue May 21 2013 Peter Jones <pjones@redhat.com> - 0.3-1
- First attempt.