]> git.pld-linux.org Git - packages/gnupg2.git/commitdiff
- rel 1; make it default as it is default stable version at upstream
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 3 May 2018 18:17:31 +0000 (20:17 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 24 May 2018 06:48:49 +0000 (15:48 +0900)
gnupg2-nogit.patch [new file with mode: 0644]
gnupg2.spec

diff --git a/gnupg2-nogit.patch b/gnupg2-nogit.patch
new file mode 100644 (file)
index 0000000..b17850b
--- /dev/null
@@ -0,0 +1,18 @@
+--- gnupg-2.2.7/autogen.sh.org 2018-05-03 20:55:20.709894555 +0200
++++ gnupg-2.2.7/autogen.sh     2018-05-03 20:57:36.847624695 +0200
+@@ -244,11 +244,10 @@
+       rev=$(git rev-parse --short HEAD | tr -d '\n\r')
+       rvd=$((0x$(echo ${rev} | dd bs=1 count=4 2>/dev/null)))
+     else
+-      ingit=no
+-      beta=yes
+-      tmp="-unknown"
+-      rev="0000000"
+-      rvd="0"
++      ingit=yes
++      tmp=""
++      rev=$(grep "^BUILD_REVISION=" configure | sed -e 's#^BUILD_REVISION=\"\(.*\)\"#\1#g')
++      rvd=$((0x$(echo ${rev} | dd bs=1 count=4 2>/dev/null)))
+     fi
+     echo "$package-$vers$tmp:$beta:$ingit:$vers$tmp:$vers:$tmp:$rev:$rvd:"
index 00dfc1a97de08aa204ecc523fe0fd0888fe987e6..e946ee3252bdc90c32ec75188cc329e4c12ecdd5 100644 (file)
@@ -2,7 +2,7 @@
 # Conditional build:
 %bcond_without tests           # testsuite on build
 %bcond_without dirmngr         # dirmngr packages build
-%bcond_with    default_gpg     # install as gpg/gpgv instead of gpg2/gpgv2
+%bcond_without default_gpg     # install as gpg/gpgv instead of gpg2/gpgv2
 %bcond_with    gnutls          # GnuTLS instead of NTBTLS
 %bcond_with    selinux         # "SELinux hacks"
 #
@@ -11,14 +11,14 @@ Summary(pl.UTF-8):  GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego
 Name:          gnupg2
 # 2.1.x is development version unfortunately (see gpg2 --version)
 Version:       2.2.7
-Release:       0.1
+Release:       1
 License:       GPL v3+
 Group:         Applications/File
 Source0:       ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
 # Source0-md5: fc13424af7747a5dd6edb6086ec0cb2f
 Source1:       gnupg-agent.sh
 Patch0:                %{name}-info.patch
-Patch1:                %{name}-pth.patch
+Patch1:                %{name}-nogit.patch
 Patch2:                %{name}-disable_tests.patch
 Patch3:                %{name}-pl.po-update.patch
 Patch4:                %{name}-am.patch
@@ -46,6 +46,8 @@ Requires:     gnupg2-common = %{version}-%{release}
 Requires:      sqlite3 >= 3.7
 %if %{with default_gpg}
 Obsoletes:     gnupg < 2
+Obsoletes:     gnupg-plugin-keys_curl < 2
+Obsoletes:     gnupg-plugin-keys_hkp < 2
 Provides:      gnupg = %{version}-%{release}
 %endif
 Suggests:      gnupg-agent
@@ -229,6 +231,7 @@ wywoływany przez gpgsm i nie używany bezpośrednio.
 %setup -q -n gnupg-%{version}
 %patch0 -p1
 %patch1 -p1
+
 %{!?with_tests:%patch2 -p1}
 %patch3 -p1
 %patch4 -p1
@@ -241,6 +244,12 @@ wywoływany przez gpgsm i nie używany bezpośrednio.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+if (grep -q ^development_version=yes configure); then
+       echo "configure incorrectly rebuild with messed up development status and likely version and revision." >&2
+       echo "Consider fixing nogit.patch" >&2
+       exit 1
+fi
+
 %configure \
        --libexecdir=%{pkglibexecdir} \
        %{!?with_dirmngr:--disable-dirmngr} \
This page took 0.112237 seconds and 4 git commands to generate.