summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2022-09-16 10:15:51 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2022-09-22 15:54:15 +0900
commit06f0844e0a0da50d3d5f80cd2ef4ad532ea0f88b (patch)
tree69dea4ddb711dca21c657953298415a3fadda8ea
parent49f8cdceaa631ca9754ff27046b4b8e4a217465a (diff)
downloadgpg2-tizen_7.0_hotfix.tar.gz
gpg2-tizen_7.0_hotfix.tar.bz2
gpg2-tizen_7.0_hotfix.zip
Change-Id: I622e08e3e2b68365f01ecebe1172ed535dc7b6a4
-rw-r--r--packaging/gpg2.manifest5
-rw-r--r--packaging/gpg2.spec101
2 files changed, 106 insertions, 0 deletions
diff --git a/packaging/gpg2.manifest b/packaging/gpg2.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/gpg2.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/gpg2.spec b/packaging/gpg2.spec
new file mode 100644
index 0000000..aac698c
--- /dev/null
+++ b/packaging/gpg2.spec
@@ -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