Accepting request 1172646 from Base:System

- Make verify the patches an optional task for local builds only 

- Add ncurses patch 20240504
  + update ncurses/wcwidth.c, for MinGW ports, from xterm.
  + trim obsolete comment about tack from INSTALL.
- Verify also every patch

OBS-URL: https://build.opensuse.org/request/show/1172646
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ncurses?expand=0&rev=263
This commit is contained in:
Dominique Leuenberger 2024-05-10 10:04:29 +00:00 committed by Git OBS Bridge
commit 39411120b4
3 changed files with 29 additions and 4 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:30ec28d18d884f51bf0d20e291ede030f4e346fffc6314a9fc464d90d8f8a348 oid sha256:a340e9bd90cd7b2a4b315e2c98c5bbe41998b26966ce1dbd75b1c9a012b5b599
size 230 size 18074

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Wed May 8 07:30:03 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Make verify the patches an optional task for local builds only
-------------------------------------------------------------------
Mon May 6 06:51:35 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Add ncurses patch 20240504
+ update ncurses/wcwidth.c, for MinGW ports, from xterm.
+ trim obsolete comment about tack from INSTALL.
- Verify also every patch
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 29 07:42:51 UTC 2024 - Dr. Werner Fink <werner@suse.de> Mon Apr 29 07:42:51 UTC 2024 - Dr. Werner Fink <werner@suse.de>

View File

@ -27,6 +27,7 @@
%bcond_with ada %bcond_with ada
%bcond_with libbsd %bcond_with libbsd
%bcond_with usepcre2 %bcond_with usepcre2
%bcond_with gpgverify
%if %{with onlytinfo} %if %{with onlytinfo}
%global soname_tinfo tinfo %global soname_tinfo tinfo
@ -44,6 +45,10 @@ Name: ncurses
%if %{with hasheddb} %if %{with hasheddb}
BuildRequires: db-devel BuildRequires: db-devel
%endif %endif
%if %{with gpgverify}
BuildRequires: /usr/bin/gpg
%endif
BuildRequires: /usr/bin/zcat
BuildRequires: expect BuildRequires: expect
%if %{with ada} %if %{with ada}
# Currently we're missing gprbuild and gprconfig # Currently we're missing gprbuild and gprconfig
@ -335,11 +340,18 @@ incoming data stream.
%prep %prep
%setup -q -n %{name}-%{basevers} -b1 -a5 %setup -q -n %{name}-%{basevers} -b1 -a5
set +x set +x
for patch in ../patches/ncurses*.patch %if %{with gpgverify}
GPGTMP=$(mktemp -d ${PWD}/tmp.XXXXXXXXXX)
gpg --homedir $GPGTMP -q --no-default-keyring --trust-model always --import %{S:11}
gpg --homedir $GPGTMP -q --multifile --verify ../patches/*.patch.gz.asc
unset GPGTMP
rm -rf "$GPGTMP"
%endif
for patch in ../patches/ncurses*.patch.gz
do do
test -e "$patch" || continue test -e "$patch" || continue
echo Apply patch: $patch echo Apply patch: $patch
patch -f -T -p1 -s < $patch zcat $patch | patch -f -T -p1 -s
done done
set -x set -x
%if ! %{defined donttouch} %if ! %{defined donttouch}