Update to 1.6.0 (RHBZ #1167656)
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
This commit is contained in:
parent
a3b7662655
commit
d4df7f7b7c
@ -1,26 +0,0 @@
|
|||||||
diff -up wrk/src/engine-gpgsm.c.wrk wrk/src/engine-gpgsm.c
|
|
||||||
--- wrk/src/engine-gpgsm.c.wrk 2014-12-06 04:22:35.944109162 +0100
|
|
||||||
+++ wrk/src/engine-gpgsm.c 2014-12-06 04:24:15.127086534 +0100
|
|
||||||
@@ -834,7 +834,8 @@ status_handler (void *opaque, int fd)
|
|
||||||
else
|
|
||||||
{
|
|
||||||
*aline = newline;
|
|
||||||
- gpgsm->colon.attic.linesize += linelen + 1;
|
|
||||||
+ // gpgsm->colon.attic.linesize += linelen + 1; - cherrypicked security fix
|
|
||||||
+ gpgsm->colon.attic.linesize = *alinelen + linelen + 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!err)
|
|
||||||
diff -up wrk/src/engine-uiserver.c.wrk wrk/src/engine-uiserver.c
|
|
||||||
--- wrk/src/engine-uiserver.c.wrk 2014-12-06 04:24:32.200254777 +0100
|
|
||||||
+++ wrk/src/engine-uiserver.c 2014-12-06 04:25:16.718693472 +0100
|
|
||||||
@@ -699,7 +699,8 @@ status_handler (void *opaque, int fd)
|
|
||||||
else
|
|
||||||
{
|
|
||||||
*aline = newline;
|
|
||||||
- uiserver->colon.attic.linesize += linelen + 1;
|
|
||||||
+ //uiserver->colon.attic.linesize += linelen + 1; - cherrypicked security fix
|
|
||||||
+ uiserver->colon.attic.linesize = *alinelen + linelen + 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!err)
|
|
57
gpgme.spec
57
gpgme.spec
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
Name: gpgme
|
Name: gpgme
|
||||||
Summary: GnuPG Made Easy - high level crypto API
|
Summary: GnuPG Made Easy - high level crypto API
|
||||||
Version: 1.4.3
|
Version: 1.6.0
|
||||||
Release: 7%{?dist}
|
Release: 1%{?dist}
|
||||||
|
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://www.gnupg.org/related_software/gpgme/
|
URL: http://www.gnupg.org/related_software/gpgme/
|
||||||
@ -22,8 +22,7 @@ Patch2: gpgme-1.4.3-no_gpgsm_t-verify.patch
|
|||||||
# add -D_FILE_OFFSET_BITS... to gpgme-config, upstreamable
|
# add -D_FILE_OFFSET_BITS... to gpgme-config, upstreamable
|
||||||
Patch3: gpgme-1.3.2-largefile.patch
|
Patch3: gpgme-1.3.2-largefile.patch
|
||||||
|
|
||||||
Patch4: gpgme-1.3.2-bufferoverflow.patch
|
BuildRequires: gcc
|
||||||
|
|
||||||
BuildRequires: gawk
|
BuildRequires: gawk
|
||||||
# see patch2 above, else we only need 2.0.4
|
# see patch2 above, else we only need 2.0.4
|
||||||
BuildRequires: gnupg2 >= 2.0.22
|
BuildRequires: gnupg2 >= 2.0.22
|
||||||
@ -32,7 +31,9 @@ BuildRequires: libgpg-error-devel >= 1.8
|
|||||||
BuildRequires: pth-devel
|
BuildRequires: pth-devel
|
||||||
BuildRequires: libassuan-devel >= 2.0.2
|
BuildRequires: libassuan-devel >= 2.0.2
|
||||||
|
|
||||||
%define _with_gpg --with-gpg=%{_bindir}/gpg2
|
# to remove RPATH
|
||||||
|
BuildRequires: chrpath
|
||||||
|
|
||||||
Requires: gnupg2
|
Requires: gnupg2
|
||||||
|
|
||||||
# On the following architectures workaround multiarch conflict of -devel packages:
|
# On the following architectures workaround multiarch conflict of -devel packages:
|
||||||
@ -53,8 +54,9 @@ Requires: libgpg-error-devel%{?_isa}
|
|||||||
#Requires: libassuan2-devel
|
#Requires: libassuan2-devel
|
||||||
Requires(post): /sbin/install-info
|
Requires(post): /sbin/install-info
|
||||||
Requires(postun): /sbin/install-info
|
Requires(postun): /sbin/install-info
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
%{summary}
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -63,49 +65,43 @@ Requires(postun): /sbin/install-info
|
|||||||
%patch1 -p1 -b .config_extras
|
%patch1 -p1 -b .config_extras
|
||||||
#patch2 -p1 -b .no_gpgsm_t-verify
|
#patch2 -p1 -b .no_gpgsm_t-verify
|
||||||
%patch3 -p1 -b .largefile
|
%patch3 -p1 -b .largefile
|
||||||
%patch4 -p1 -b .overflow
|
|
||||||
|
|
||||||
## HACK ALERT
|
## HACK ALERT
|
||||||
# The config script already suppresses the -L if it's /usr/lib, so cheat and
|
# The config script already suppresses the -L if it's /usr/lib, so cheat and
|
||||||
# set it to a value which we know will be suppressed.
|
# set it to a value which we know will be suppressed.
|
||||||
sed -i -e 's|^libdir=@libdir@$|libdir=@exec_prefix@/lib|g' src/gpgme-config.in
|
sed -i -e 's|^libdir=@libdir@$|libdir=@exec_prefix@/lib|g' src/gpgme-config.in
|
||||||
|
|
||||||
|
sed -i -e 's|GPG = gpg|GPG = gpg2|' tests/gpg/Makefile.{in,am}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure --disable-static --disable-silent-rules --with-gpg=%{_bindir}/gpg2
|
||||||
--disable-static \
|
%make_build
|
||||||
--without-g13 \
|
|
||||||
%{?_with_gpg}
|
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
%make_install
|
||||||
|
|
||||||
# unpackaged files
|
# unpackaged files
|
||||||
rm -fv $RPM_BUILD_ROOT%{_infodir}/dir
|
rm -fv %{buildroot}%{_infodir}/dir
|
||||||
rm -fv $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
rm -fv %{buildroot}%{_libdir}/lib*.la
|
||||||
rm -rfv $RPM_BUILD_ROOT%{_datadir}/common-lisp/source/gpgme/
|
rm -rfv %{buildroot}%{_datadir}/common-lisp/source/gpgme/
|
||||||
|
|
||||||
# Hack to resolve multiarch conflict (#341351)
|
# Hack to resolve multiarch conflict (#341351)
|
||||||
%ifarch %{multilib_arches}
|
%ifarch %{multilib_arches}
|
||||||
mv $RPM_BUILD_ROOT%{_bindir}/gpgme-config{,.%{_target_cpu}}
|
mv %{buildroot}%{_bindir}/gpgme-config{,.%{_target_cpu}}
|
||||||
cat > gpgme-config-multilib.sh <<__END__
|
cat > gpgme-config-multilib.sh <<__END__
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec %{_bindir}/gpgme-config.\$(arch) \$@
|
exec %{_bindir}/gpgme-config.\$(arch) \$@
|
||||||
__END__
|
__END__
|
||||||
install -D -p gpgme-config-multilib.sh $RPM_BUILD_ROOT%{_bindir}/gpgme-config
|
install -D -p gpgme-config-multilib.sh %{buildroot}%{_bindir}/gpgme-config
|
||||||
mv $RPM_BUILD_ROOT%{_includedir}/gpgme.h \
|
mv %{buildroot}%{_includedir}/gpgme.h \
|
||||||
$RPM_BUILD_ROOT%{_includedir}/gpgme-%{__isa_bits}.h
|
%{buildroot}%{_includedir}/gpgme-%{__isa_bits}.h
|
||||||
install -m644 -p -D %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/gpgme.h
|
install -m644 -p -D %{SOURCE2} %{buildroot}%{_includedir}/gpgme.h
|
||||||
%endif
|
%endif
|
||||||
|
chrpath -d %{buildroot}%{_bindir}/%{name}-tool
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -113,8 +109,8 @@ make check
|
|||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license COPYING*
|
%license COPYING*
|
||||||
%doc AUTHORS ChangeLog NEWS README* THANKS TODO VERSION
|
%doc AUTHORS ChangeLog NEWS README* THANKS TODO VERSION
|
||||||
%{_libdir}/libgpgme.so.11*
|
%{_libdir}/lib%{name}.so.11*
|
||||||
%{_libdir}/libgpgme-pthread.so.11*
|
%{_libdir}/lib%{name}-pthread.so.11*
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
|
||||||
@ -125,7 +121,8 @@ if [ $1 -eq 0 ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_bindir}/gpgme-config
|
%{_bindir}/%{name}-config
|
||||||
|
%{_bindir}/%{name}-tool
|
||||||
%ifarch %{multilib_arches}
|
%ifarch %{multilib_arches}
|
||||||
%{_bindir}/gpgme-config.%{_target_cpu}
|
%{_bindir}/gpgme-config.%{_target_cpu}
|
||||||
%{_includedir}/gpgme-%{__isa_bits}.h
|
%{_includedir}/gpgme-%{__isa_bits}.h
|
||||||
@ -135,8 +132,10 @@ fi
|
|||||||
%{_datadir}/aclocal/gpgme.m4
|
%{_datadir}/aclocal/gpgme.m4
|
||||||
%{_infodir}/gpgme.info*
|
%{_infodir}/gpgme.info*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 13 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.6.0-1
|
||||||
|
- Update to 1.6.0 (RHBZ #1167656)
|
||||||
|
|
||||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-7
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-7
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user