Bump to gpg2 2.3.7 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix sandbox/backup/gpg2_2.3.7_20230201 sandbox/dh0128.kwak/gpg2-2.3.7-20220916 tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.060343 accepted/tizen/7.0/unified/hotfix/20221116.110833 accepted/tizen/unified/20220922.173839 tizen_7.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 16 Sep 2022 01:15:51 +0000 (10:15 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 22 Sep 2022 06:54:15 +0000 (15:54 +0900)
Change-Id: I622e08e3e2b68365f01ecebe1172ed535dc7b6a4

packaging/gpg2.manifest [new file with mode: 0644]
packaging/gpg2.spec [new file with mode: 0644]

diff --git a/packaging/gpg2.manifest b/packaging/gpg2.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/gpg2.spec b/packaging/gpg2.spec
new file mode 100644 (file)
index 0000000..aac698c
--- /dev/null
@@ -0,0 +1,101 @@
+Name:           gpg2
+Version:        2.3.7
+Release:        0
+License:        GPL-3.0-or-later
+Summary:        GnuPG 2
+Url:            http://www.gnupg.org/aegypten2/
+Group:          Security/Certificate Management
+Source:         gnupg-%{version}.tar.bz2
+Source1001:     gpg2.manifest
+
+BuildRequires:  automake
+BuildRequires:  expect
+BuildRequires:  fdupes
+BuildRequires:  gettext-tools
+BuildRequires:  libassuan-devel >= 2.0.0
+BuildRequires:  libcurl-devel >= 7.10
+BuildRequires:  libgcrypt-devel >= 1.4.0
+BuildRequires:  libgpg-error-devel >= 1.7
+BuildRequires:  libksba-devel >= 1.0.7
+BuildRequires:  libpth-devel >= 1.3.7
+BuildRequires:  readline-devel
+BuildRequires:  npth-devel
+BuildRequires:  pkgconfig(libusb-1.0)
+BuildRequires:  pkgconfig(zlib)
+
+Provides:       gnupg = %{version}
+Provides:       gpg = 1.4.9
+Provides:       newpg
+Provides:       gpg2_signd_support
+Obsoletes:      gpg < 1.4.9
+
+%description
+GnuPG 2 is the successor of "GnuPG" or GPG. It provides: GPGSM,
+gpg-agent, and a keybox library.
+
+%prep
+%setup  -q -n gnupg-%{version}
+cp %{SOURCE1001} .
+
+%build
+%if 0%{?asan}%{?hwasan} != 0
+%restore_fcommon
+export LIBS+=" -ldl "
+%endif
+
+./autogen.sh
+# build PIEs (position independent executables) for address space randomisation:
+PIE="-fpie"
+export CFLAGS="%{optflags} ${PIE} "
+export LDFLAGS=-pie
+%reconfigure \
+    --libexecdir=%{_libdir} \
+    --docdir=%{_docdir}/%{name} \
+    --with-agent-pgm=%{_bindir}/gpg-agent \
+    --with-scdaemon-pgm=%{_bindir}/scdaemon \
+    --enable-gpgsm=yes \
+    --enable-gpg \
+    --with-gnu-ld
+
+%__make %{?_smp_mflags}
+
+%check
+#%if ! 0%{?qemu_user_space_build}
+#%__make check
+#./tools/gpgsplit -v -p pubsplit-                    --uncompress <tests/openpgp/pubring.gpg
+#./tools/gpgsplit -v -p secsplit- --secret-to-public --uncompress <tests/openpgp/secring.gpg
+#%endif
+
+%install
+%make_install
+mkdir -p %{buildroot}%{_sysconfdir}/gnupg/
+
+install -m 644 doc/examples/gpgconf.conf %{buildroot}%{_sysconfdir}/gnupg
+
+rm -rf %{buildroot}%{_datadir}/doc/packages/gpg2/examples/gpgconf.conf
+
+ln -sf gpg2 %{buildroot}%{_bindir}/gpg
+ln -sf gpgv2 %{buildroot}%{_bindir}/gpgv
+ln -sf gpg2.1 %{buildroot}%{_mandir}/man1/gpg.1
+ln -sf gpgv2.1 %{buildroot}%{_mandir}/man1/gpgv.1
+
+rm -rf %{buildroot}/%{_datadir}/locale/en@{bold,}quot
+
+%find_lang gnupg2
+
+%fdupes %{buildroot}
+
+
+%files -f gnupg2.lang
+%manifest %{name}.manifest
+%license COPYING
+%doc %{_infodir}/gnupg*
+%doc %{_docdir}/%{name}
+%{_mandir}/man*/*
+%{_bindir}/*
+%{_libdir}/[^d]*
+%{_sbindir}/addgnupghome
+%{_sbindir}/applygnupgdefaults
+%{_datadir}/gnupg
+%dir %{_sysconfdir}/gnupg
+%config(noreplace) %{_sysconfdir}/gnupg/gpgconf.conf