Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Add an rpm spec file.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jones <[email protected]>
  • Loading branch information
vathpela committed Aug 20, 2014
1 parent c245c14 commit 4845f01
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions dbxtool.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Name: dbxtool
Version: 0.4
Release: 1%{?dist}
Summary: Secure Boot DBX updater
License: GPLv2
URL: https://github.com/vathpela/dbxtool
Requires: popt efivar-libs
ExclusiveArch: i386 x86_64 aarch64
BuildRequires: popt-devel git efivar-devel
Source0: https://github.com/vathpela/dbxtool/releases/download/dbxtool-%{version}/dbxtool-%{version}.tar.bz2

%description
This package contains DBX updates for UEFI Secure Boot.

%prep
%setup -q -n %{name}-%{version}
git init
git config user.email "%{name}[email protected]"
git config user.name "Fedora Ninjas"
git add .
git commit -a -q -m "%{version} baseline."
git am %{patches} </dev/null

%build
make PREFIX=%{_prefix} LIBDIR=%{_libdir} CFLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}/%{_libdir}
make PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} \
install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%doc COPYING
%{_bindir}/dbxtool
%{_mandir}/man1/*
%dir %{_datadir}/dbxtool/
%{_datadir}/dbxtool/*.bin
%{_unitdir}/dbxtool.service
%{_mandir}/man1/*

%changelog
* Wed Aug 20 2014 Peter Jones <[email protected]> - 0.4-1
- First packaging attempt.

0 comments on commit 4845f01

Please sign in to comment.