2013-01-14 11:49:40 +01:00
|
|
|
#
|
|
|
|
# spec file for package pesign
|
|
|
|
#
|
2016-04-26 16:58:40 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-01-14 11:49:40 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: pesign
|
2016-04-26 16:58:40 +02:00
|
|
|
Version: 0.112
|
2013-01-21 11:35:31 +01:00
|
|
|
Release: 0
|
2013-01-14 11:49:40 +01:00
|
|
|
Summary: Signing tool for PE-COFF binaries
|
2013-01-21 11:35:31 +01:00
|
|
|
License: GPL-2.0
|
2013-01-14 11:49:40 +01:00
|
|
|
Group: Productivity/Security
|
2015-08-17 04:24:40 +02:00
|
|
|
Url: https://github.com/rhinstaller/pesign
|
|
|
|
Source: https://github.com/rhinstaller/pesign/releases/download/%{version}/%{name}-%{version}.tar.bz2
|
2013-01-14 11:49:40 +01:00
|
|
|
# PATCH-FIX-SUSE pesign-suse-build.patch glin@suse.com -- Adjust Makefile for the build service
|
|
|
|
Patch1: pesign-suse-build.patch
|
|
|
|
# PATCH-FIX-UPSTREAM pesign-fix-build-errors.patch glin@suse.com -- Fix gcc warnings
|
|
|
|
Patch2: pesign-fix-build-errors.patch
|
2013-02-07 03:04:33 +01:00
|
|
|
# PATCH-FIX-UPSTREAM pesign-privkey_unneeded.diff glin@suse.com -- Don't check the private key when importing the raw signature
|
2013-07-16 08:43:52 +02:00
|
|
|
Patch3: pesign-privkey_unneeded.diff
|
2014-04-16 09:27:13 +02:00
|
|
|
# PATCH-FIX-SUSE pesign-run.patch aj@suse.com - Use /run instead of /var/run
|
2014-10-29 09:11:07 +01:00
|
|
|
Patch5: pesign-run.patch
|
|
|
|
# PATCH-FIX-UPSTREAM pesign-fix-authvar-write-loop.patch glin@suse.com -- Fix the write loop in authvar
|
|
|
|
Patch6: pesign-fix-authvar-write-loop.patch
|
2016-08-11 06:10:05 +02:00
|
|
|
# PATCH-FIX-UPSTREAM pesign-fix-argument-list.patch glin@suse.com -- Fix the argument list parsing
|
|
|
|
Patch7: pesign-fix-argument-list.patch
|
2014-10-29 09:11:07 +01:00
|
|
|
BuildRequires: efivar-devel
|
|
|
|
BuildRequires: libuuid-devel
|
2013-01-14 11:49:40 +01:00
|
|
|
BuildRequires: mozilla-nss-devel
|
|
|
|
BuildRequires: pkg-config
|
2013-01-21 11:35:31 +01:00
|
|
|
BuildRequires: popt-devel
|
2013-01-14 11:49:40 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2014-11-27 03:23:44 +01:00
|
|
|
Requires(pre): pwdutils
|
2013-01-14 11:49:40 +01:00
|
|
|
%{?systemd_requires}
|
2014-10-29 09:11:07 +01:00
|
|
|
ExclusiveArch: ia64 %ix86 x86_64 aarch64
|
2013-01-14 11:49:40 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Signing tool for PE-COFF binaries, hopefully at least vaguely compliant
|
|
|
|
with the PE and Authenticode specifications.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2014-10-29 09:11:07 +01:00
|
|
|
%patch5 -p1
|
2013-10-24 04:13:34 +02:00
|
|
|
%patch6 -p1
|
2016-08-11 06:10:05 +02:00
|
|
|
%patch7 -p1
|
2013-01-14 11:49:40 +01:00
|
|
|
|
|
|
|
%build
|
2015-12-01 10:03:35 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
|
2013-01-14 11:49:40 +01:00
|
|
|
|
|
|
|
%install
|
2015-12-01 10:03:35 +01:00
|
|
|
make INSTALLROOT=%{buildroot} libexecdir=%{_libexecdir} install
|
2014-11-27 03:23:44 +01:00
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/pesign
|
2013-01-14 11:49:40 +01:00
|
|
|
|
2014-11-27 03:23:44 +01:00
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
2015-12-01 10:03:35 +01:00
|
|
|
make INSTALLROOT=%{buildroot} UNITDIR=%{_unitdir} libexecdir=%{_libexecdir} install_systemd
|
2013-01-14 11:49:40 +01:00
|
|
|
|
2015-08-17 04:24:40 +02:00
|
|
|
# create rcsymlink
|
|
|
|
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
|
|
|
|
2013-01-14 11:49:40 +01:00
|
|
|
# there's some stuff that's not really meant to be shipped yet
|
2014-11-27 03:23:44 +01:00
|
|
|
rm -rf %{buildroot}/boot %{buildroot}%{_prefix}/include
|
2013-01-14 11:49:40 +01:00
|
|
|
rm -rf %{buildroot}%{_libdir}/libdpe*
|
|
|
|
|
|
|
|
%pre
|
|
|
|
getent group pesign >/dev/null || groupadd -r pesign
|
2014-11-27 03:23:44 +01:00
|
|
|
getent passwd pesign >/dev/null || useradd -r -g pesign -d %{_localstatedir}/lib/pesign -s /bin/false -c "PE-COFF signing daemon" pesign
|
2013-01-14 11:49:40 +01:00
|
|
|
%service_add_pre pesign.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun pesign.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post pesign.service
|
2015-09-01 09:29:06 +02:00
|
|
|
systemd-tmpfiles --create %{_libexecdir}/tmpfiles.d/pesign.conf || :
|
2013-01-14 11:49:40 +01:00
|
|
|
|
|
|
|
%postun
|
2015-08-17 04:24:40 +02:00
|
|
|
%service_del_postun pesign.service
|
2013-01-14 11:49:40 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING
|
|
|
|
%{_bindir}/pesign
|
|
|
|
%{_bindir}/pesign-client
|
2013-07-16 08:43:52 +02:00
|
|
|
%{_bindir}/efikeygen
|
2014-06-12 05:26:16 +02:00
|
|
|
%{_bindir}/pesigcheck
|
|
|
|
%{_bindir}/efisiglist
|
|
|
|
%{_bindir}/authvar
|
2015-08-17 04:24:40 +02:00
|
|
|
%{_sbindir}/rcpesign
|
2015-12-01 10:03:35 +01:00
|
|
|
%dir %{_sysconfdir}/pesign
|
|
|
|
%{_sysconfdir}/pesign/*
|
2013-01-14 11:49:40 +01:00
|
|
|
%dir %{_sysconfdir}/popt.d
|
|
|
|
%config %{_sysconfdir}/popt.d/pesign.popt
|
|
|
|
%{_sysconfdir}/pki/
|
|
|
|
%config %{_sysconfdir}/rpm/macros.pesign
|
|
|
|
%{_mandir}/man?/*
|
2014-11-27 03:23:44 +01:00
|
|
|
%{_localstatedir}/lib/pesign
|
2013-01-14 11:49:40 +01:00
|
|
|
%{_unitdir}/pesign.service
|
2014-11-27 03:23:44 +01:00
|
|
|
%{_libexecdir}/tmpfiles.d/pesign.conf
|
2015-12-01 10:03:35 +01:00
|
|
|
%dir %{_libexecdir}/pesign
|
|
|
|
%{_libexecdir}/pesign/pesign-authorize-*
|
2013-01-14 11:49:40 +01:00
|
|
|
%dir %attr(0775,pesign,pesign) %{_sysconfdir}/pki/pesign
|
2014-04-16 09:27:13 +02:00
|
|
|
%ghost %dir %attr(0770,pesign,pesign) /run/%{name}
|
2013-01-14 11:49:40 +01:00
|
|
|
%dir %attr(0770,pesign,pesign) %{_localstatedir}/lib/%{name}
|
|
|
|
|
|
|
|
%changelog
|