2013-02-05 11:41:47 +01:00
|
|
|
#
|
2013-02-05 14:35:22 +01:00
|
|
|
# spec file for package pesign-obs-integration
|
2013-02-05 11:41:47 +01:00
|
|
|
#
|
2015-01-23 03:01:38 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-02-05 11:41:47 +01:00
|
|
|
#
|
2013-02-05 14:35:22 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2013-02-05 11:41:47 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-03-05 08:41:57 +01:00
|
|
|
|
2013-03-15 07:19:57 +01:00
|
|
|
# needssslcertforbuild
|
2013-03-05 10:55:45 +01:00
|
|
|
|
2013-02-05 11:41:47 +01:00
|
|
|
Name: pesign-obs-integration
|
|
|
|
Summary: Macros and scripts to sign the kernel and bootloader
|
2013-02-05 14:35:22 +01:00
|
|
|
License: GPL-2.0
|
|
|
|
Group: Development/Tools/Other
|
2013-06-14 23:59:33 +02:00
|
|
|
Version: 10.0
|
2014-09-03 18:27:37 +02:00
|
|
|
Release: 0
|
2014-08-13 11:59:54 +02:00
|
|
|
Requires: fipscheck
|
2013-03-15 07:19:57 +01:00
|
|
|
Requires: mozilla-nss-tools
|
|
|
|
Requires: openssl
|
2013-02-05 11:41:47 +01:00
|
|
|
%ifarch %ix86 x86_64 ia64
|
|
|
|
Requires: pesign
|
|
|
|
%endif
|
|
|
|
BuildRequires: openssl
|
2013-02-05 14:35:22 +01:00
|
|
|
Url: http://en.opensuse.org/openSUSE:UEFI_Image_File_Sign_Tools
|
2013-02-05 11:41:47 +01:00
|
|
|
Source2: pesign-repackage.spec.in
|
|
|
|
Source3: pesign-gen-repackage-spec
|
2013-02-06 13:25:06 +01:00
|
|
|
Source4: brp-99-pesign
|
2013-02-05 11:41:47 +01:00
|
|
|
Source5: COPYING
|
|
|
|
Source6: README
|
|
|
|
Source7: kernel-sign-file
|
2013-06-14 23:59:33 +02:00
|
|
|
Source8: modsign-repackage
|
2014-04-27 09:52:13 +02:00
|
|
|
Source9: gen-hmac
|
2014-08-21 06:08:32 +02:00
|
|
|
Source10: brp-99-compress-vmlinux
|
2013-02-05 11:41:47 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-02-05 14:35:22 +01:00
|
|
|
|
2013-02-05 11:41:47 +01:00
|
|
|
%description
|
|
|
|
This package provides scripts and rpm macros to automate signing of the
|
|
|
|
boot loader, kernel and kernel modules in the openSUSE Buildservice.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -cT
|
|
|
|
cp %_sourcedir/{COPYING,README} .
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
2013-02-06 13:31:33 +01:00
|
|
|
mkdir -p %buildroot/usr/lib/rpm/brp-suse.d %buildroot/usr/lib/rpm/pesign
|
2013-02-05 11:41:47 +01:00
|
|
|
cd %_sourcedir
|
2014-08-21 06:08:32 +02:00
|
|
|
install pesign-gen-repackage-spec kernel-sign-file gen-hmac %buildroot/usr/lib/rpm/pesign
|
|
|
|
install brp-99-pesign %buildroot/usr/lib/rpm/brp-suse.d
|
|
|
|
# brp-99-compress-vmlinux has nothing to do with signing. It is packaged in
|
|
|
|
# pesign-obs-integration because this package is already used by the kernel
|
|
|
|
# build
|
|
|
|
install brp-99-compress-vmlinux %buildroot/usr/lib/rpm/brp-suse.d
|
2013-02-06 13:25:06 +01:00
|
|
|
install -m644 pesign-repackage.spec.in %buildroot/usr/lib/rpm/pesign
|
2013-06-14 23:59:33 +02:00
|
|
|
mkdir -p %buildroot/usr/bin
|
|
|
|
install modsign-repackage %buildroot/usr/bin/
|
2013-02-05 11:41:47 +01:00
|
|
|
if test -e _projectcert.crt; then
|
|
|
|
openssl x509 -inform PEM -in _projectcert.crt \
|
2013-02-06 13:25:06 +01:00
|
|
|
-outform DER -out %buildroot/usr/lib/rpm/pesign/pesign-cert.x509
|
2013-02-05 11:41:47 +01:00
|
|
|
else
|
|
|
|
echo "No buildservice project certificate available"
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING README
|
2013-06-14 23:59:33 +02:00
|
|
|
/usr/bin/modsign-repackage
|
2013-02-05 11:41:47 +01:00
|
|
|
/usr/lib/rpm/*
|
|
|
|
|
|
|
|
%changelog
|