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
This commit is contained in:
Gary Ching-Pang Lin 2015-08-17 02:24:40 +00:00 committed by Git OBS Bridge
parent 4af6aa8c9f
commit 5595ee282c
2 changed files with 16 additions and 10 deletions

View File

@ -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 Mon Jul 13 11:07:10 UTC 2015 - werner@suse.de

View File

@ -22,8 +22,8 @@ Release: 0
Summary: Signing tool for PE-COFF binaries Summary: Signing tool for PE-COFF binaries
License: GPL-2.0 License: GPL-2.0
Group: Productivity/Security Group: Productivity/Security
Url: https://github.com/vathpela/pesign Url: https://github.com/rhinstaller/pesign
Source: %{name}-%{version}.tar.bz2 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 # PATCH-FIX-SUSE pesign-suse-build.patch glin@suse.com -- Adjust Makefile for the build service
Patch1: pesign-suse-build.patch Patch1: pesign-suse-build.patch
# PATCH-FIX-UPSTREAM pesign-fix-build-errors.patch glin@suse.com -- Fix gcc warnings # 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 Signing tool for PE-COFF binaries, hopefully at least vaguely compliant
with the PE and Authenticode specifications. with the PE and Authenticode specifications.
Authors:
--------
Peter Jones <pjones@redhat.com>
%prep %prep
%setup -q %setup -q
%patch1 -p1 %patch1 -p1
@ -82,12 +76,15 @@ Authors:
make %{?_smp_mflags} OPTFLAGS="%{optflags}" make %{?_smp_mflags} OPTFLAGS="%{optflags}"
%install %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}%{_localstatedir}/lib/pesign
mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_sbindir}
make INSTALLROOT=%{buildroot} UNITDIR=%{_unitdir} install_systemd 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 # there's some stuff that's not really meant to be shipped yet
rm -rf %{buildroot}/boot %{buildroot}%{_prefix}/include rm -rf %{buildroot}/boot %{buildroot}%{_prefix}/include
rm -rf %{buildroot}%{_libdir}/libdpe* 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 systemd-tmpfiles --create %{_libexecdir}/tmpfiles.d/pesign.conf
%postun %postun
%service_del_preun pesign.service %service_del_postun pesign.service
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -116,6 +113,7 @@ systemd-tmpfiles --create %{_libexecdir}/tmpfiles.d/pesign.conf
%{_bindir}/pesigcheck %{_bindir}/pesigcheck
%{_bindir}/efisiglist %{_bindir}/efisiglist
%{_bindir}/authvar %{_bindir}/authvar
%{_sbindir}/rcpesign
%dir %{_sysconfdir}/popt.d %dir %{_sysconfdir}/popt.d
%config %{_sysconfdir}/popt.d/pesign.popt %config %{_sysconfdir}/popt.d/pesign.popt
%{_sysconfdir}/pki/ %{_sysconfdir}/pki/