From f203620a8ca7a530035e2f6cf83c8acbd65525c7 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones(a)redhat.com>
Date: Sun, 31 May 2015 17:14:51 -0400
Subject: Here we go again.
Signed-off-by: Peter Jones <pjones(a)redhat.com>
diff --git a/.gitignore b/.gitignore
index e69de29..f0edfdf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+fwupdate-*.tar.*
diff --git a/fwupdate.spec b/fwupdate.spec
new file mode 100644
index 0000000..65147ef
--- /dev/null
+++ b/fwupdate.spec
@@ -0,0 +1,98 @@
+%global efivar_version 0.19-1
+%global efibootmgr_version 0.12-1
+
+Name: fwupdate
+Version: 0.3
+Release: 1%{?dist}
+Summary: Tools to manage UEFI firmware updates
+License: GPLv2+
+URL:
https://github.com/rhinstaller/fwupdate
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+BuildRequires: efivar-devel >= %{efivar_version}
+BuildRequires: gnu-efi gnu-efi-devel
+BuildRequires: pesign
+BuildRequires: popt-devel git gettext pkgconfig
+ExclusiveArch: x86_64 %{ix86} aarch64
+
+%ifarch x86_64
+%global efiarch x64
+%endif
+%ifarch %{ix86}
+%global efiarch ia32
+%endif
+%ifarch aarch64
+%global efiarch aa64
+%endif
+
+# Figure out the right file path to use
+%global efidir %(eval grep ^ID= /etc/os-release | sed -e 's/^ID=//' -e
's/rhel/redhat/')
+
+Source0:
https://github.com/rhinstaller/fwupdate/releases/download/%{name}-%{versi...
+
+%description
+fwupdate provides a simple command line interface to the UEFI firmware updates.
+
+%package libs
+Summary: Library to manage UEFI firmware updates
+
+%description libs
+Library to allow for the simple manipulation of UEFI firmware updates.
+
+%package devel
+Summary: Development headers for libfwup
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+Requires: efivar-devel >= %{efivar_version}
+
+%description devel
+development headers required to use libfwup.
+
+%prep
+%setup -q -n %{name}-%{version}
+git init
+git config user.email "%{name}-owner(a)fedoraproject.org"
+git config user.name "Fedora Ninjas"
+git add .
+git commit -a -q -m "%{version} baseline."
+git am %{patches} </dev/null
+git config --unset user.email
+git config --unset user.name
+
+%build
+make OPT_FLAGS="$RPM_OPT_FLAGS" libdir=%{_libdir} bindir=%{_bindir} \
+ EFIDIR=%{efidir} %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%makeinstall EFIDIR=%{efidir} DESTDIR=${RPM_BUILD_ROOT}
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{!?_licensedir:%global license %%doc}
+%license COPYING
+# %%doc README
+%{_bindir}/fwupdate
+%attr(0700,root,root) %dir /boot/efi
+%dir /boot/efi/EFI/%{efidir}/
+/boot/efi/EFI/%{efidir}/fwupdate.efi
+%dir /boot/efi/EFI/%{efidir}/fw/
+%{_datadir}/locale/en/*.po
+%doc %{_mandir}/man1/*
+
+%files devel
+%defattr(-,root,root,-)
+%doc %{_mandir}/man3/*
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+
+%files libs
+%defattr(-,root,root,-)
+%{_libdir}/*.so.*
+
+%changelog
+* Thu May 28 2015 Peter Jones <pjones(a)redhat.com> - 0.3-1
+- Here we go again.
diff --git a/sources b/sources
index e69de29..8b2cc11 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d25763244096041af2c2c7daac69da18 fwupdate-0.3.tar.bz2
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/fwupdate.git/commit/?h=f22&id=f203...