diff --git a/.gitignore b/.gitignore index e69de29..b1ceac2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +pesign-test-app-* diff --git a/pesign-test-app.spec b/pesign-test-app.spec new file mode 100644 index 0000000..95f3d17 --- /dev/null +++ b/pesign-test-app.spec @@ -0,0 +1,52 @@ +Summary: Simple pesign test target +Name: pesign-test-app +Version: 0.3 +Release: 1%{?dist} +Group: Development/System +License: GPLv2 +URL: https://github.com/vathpela/pesign-test-app +BuildRequires: gnu-efi +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} + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/%{_libdir} +make LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} DATADIR=%{_datadir} \ + install +%pesign -s -i %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}.efi -o %{buildroot}/%{_datadir}/%{name}-%{version}/%{name}-signed.efi + +%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 +* Tue May 21 2013 Peter Jones - 0.3-1 +- First attempt. diff --git a/sources b/sources index e69de29..c5aa42c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d44f45c6a239036fdc2e2ac7d38247ef pesign-test-app-0.3.tar.bz2