From 4af6aa8c9fb8b838b789bdbfb0a428fb5066b372e592e13230411f745ba7f8f0 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 13 Jul 2015 11:07:47 +0000 Subject: [PATCH 1/2] . OBS-URL: https://build.opensuse.org/package/show/Base:System/pesign?expand=0&rev=33 --- pesign.changes | 5 +++++ pesign.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/pesign.changes b/pesign.changes index 8bd0f4b..54d6adf 100644 --- a/pesign.changes +++ b/pesign.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 13 11:07:10 UTC 2015 - werner@suse.de + +- Make it build, tool systemd-tmpfiles is part of systemd + ------------------------------------------------------------------- Tue Jun 16 06:52:21 UTC 2015 - glin@suse.com diff --git a/pesign.spec b/pesign.spec index 6a1a527..ec82bfe 100644 --- a/pesign.spec +++ b/pesign.spec @@ -49,6 +49,7 @@ BuildRequires: libuuid-devel BuildRequires: mozilla-nss-devel BuildRequires: pkg-config BuildRequires: popt-devel +BuildRequires: systemd BuildRequires: pkgconfig(systemd) Requires(pre): pwdutils %{?systemd_requires} From 5595ee282c5dda75c84e40caf9dd6c5c18c64c2a70e4038c59a895450fc87b22 Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin Date: Mon, 17 Aug 2015 02:24:40 +0000 Subject: [PATCH 2/2] Accepting request 322868 from home:pluskalm:branches:Base:System - Update project url - Use url for download - Add rcpesign symlink - Tiny spec file cleanup with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/322868 OBS-URL: https://build.opensuse.org/package/show/Base:System/pesign?expand=0&rev=34 --- pesign.changes | 8 ++++++++ pesign.spec | 18 ++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/pesign.changes b/pesign.changes index 54d6adf..3eba2ed 100644 --- a/pesign.changes +++ b/pesign.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Aug 14 07:45:31 UTC 2015 - mpluskal@suse.com + +- Update project url +- Use url for download +- Add rcpesign symlink +- Tiny spec file cleanup with spec-cleaner + ------------------------------------------------------------------- Mon Jul 13 11:07:10 UTC 2015 - werner@suse.de diff --git a/pesign.spec b/pesign.spec index ec82bfe..b74a37f 100644 --- a/pesign.spec +++ b/pesign.spec @@ -22,8 +22,8 @@ Release: 0 Summary: Signing tool for PE-COFF binaries License: GPL-2.0 Group: Productivity/Security -Url: https://github.com/vathpela/pesign -Source: %{name}-%{version}.tar.bz2 +Url: https://github.com/rhinstaller/pesign +Source: https://github.com/rhinstaller/pesign/releases/download/%{version}/%{name}-%{version}.tar.bz2 # 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 @@ -59,12 +59,6 @@ ExclusiveArch: ia64 %ix86 x86_64 aarch64 Signing tool for PE-COFF binaries, hopefully at least vaguely compliant with the PE and Authenticode specifications. - - -Authors: --------- - Peter Jones - %prep %setup -q %patch1 -p1 @@ -82,12 +76,15 @@ Authors: make %{?_smp_mflags} OPTFLAGS="%{optflags}" %install -make INSTALLROOT=%{buildroot} PREFIX=/usr DOCDIR=/share/doc/packages install +make INSTALLROOT=%{buildroot} PREFIX=%{_prefix} DOCDIR=/share/doc/packages install mkdir -p %{buildroot}%{_localstatedir}/lib/pesign mkdir -p %{buildroot}%{_sbindir} make INSTALLROOT=%{buildroot} UNITDIR=%{_unitdir} install_systemd +# create rcsymlink +ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} + # there's some stuff that's not really meant to be shipped yet rm -rf %{buildroot}/boot %{buildroot}%{_prefix}/include rm -rf %{buildroot}%{_libdir}/libdpe* @@ -105,7 +102,7 @@ getent passwd pesign >/dev/null || useradd -r -g pesign -d %{_localstatedir}/lib systemd-tmpfiles --create %{_libexecdir}/tmpfiles.d/pesign.conf %postun -%service_del_preun pesign.service +%service_del_postun pesign.service %files %defattr(-,root,root) @@ -116,6 +113,7 @@ systemd-tmpfiles --create %{_libexecdir}/tmpfiles.d/pesign.conf %{_bindir}/pesigcheck %{_bindir}/efisiglist %{_bindir}/authvar +%{_sbindir}/rcpesign %dir %{_sysconfdir}/popt.d %config %{_sysconfdir}/popt.d/pesign.popt %{_sysconfdir}/pki/