diff --git a/gnupg-1.4.1-gcc.patch b/gnupg-1.4.1-gcc.patch new file mode 100644 index 0000000000000000000000000000000000000000..d54328ebac8c7abfd4172ec2b82fc2e2791c00f7 --- /dev/null +++ b/gnupg-1.4.1-gcc.patch @@ -0,0 +1,46 @@ +From e89e07669e5bb46023f08d5c0b69065a931f9d27 Mon Sep 17 00:00:00 2001 +From: "Brian C. Lane" +Date: Mon, 30 Jan 2012 09:47:40 -0800 +Subject: [PATCH] Call gcc directly to build assembly files, so that CFLAGS + which are needed during preprocessing (-DPIC) get properly + passed to the preprocessor. + +--- + configure.ac | 1 + + mpi/Makefile.am | 5 +++++ + 2 files changed, 6 insertions(+), 0 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 5dc0a52..55d9bc2 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1398,6 +1398,7 @@ fi + + AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes) + ++AM_CONDITIONAL(USING_GCC, test x$GCC = xyes) + + # add some extra libs here so that previous tests don't fail for + # mysterious reasons - the final link step should bail out. +diff --git a/mpi/Makefile.am b/mpi/Makefile.am +index 7610e27..27d36b8 100644 +--- a/mpi/Makefile.am ++++ b/mpi/Makefile.am +@@ -69,9 +69,14 @@ libmpi_a_LIBADD = $(common_asm_objects) @MPI_EXTRA_ASM_OBJS@ + + # cancel the default rules used by libtool which do not really + # work and add one to cpp .S files ++if USING_GCC ++.S.o: ++ $(COMPILE) $(AM_CCASFLAGS) -c $< ++else + .S.o: + $(CPP) $(INCLUDES) $(DEFS) $< | grep -v '^#' > _$*.s + $(COMPILE) $(AM_CCASFLAGS) -c _$*.s + mv -f _$*.o $*.o ++endif + + .S.lo: +-- +1.7.6.5 + diff --git a/gnupg-1.4.23.tar.bz2 b/gnupg-1.4.23.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..81a7b1b150c6715affa54a9604de00257f4ff33b Binary files /dev/null and b/gnupg-1.4.23.tar.bz2 differ diff --git a/gnupg-1.4.23.tar.bz2.sig b/gnupg-1.4.23.tar.bz2.sig new file mode 100644 index 0000000000000000000000000000000000000000..52e9ca9584cc998591ec0d93b5f2544539c0eda9 Binary files /dev/null and b/gnupg-1.4.23.tar.bz2.sig differ diff --git a/gnupg-shm-coprocessing.expect b/gnupg-shm-coprocessing.expect new file mode 100644 index 0000000000000000000000000000000000000000..e5544207d38b64591188146eb0d1782a589643cb --- /dev/null +++ b/gnupg-shm-coprocessing.expect @@ -0,0 +1,5 @@ +spawn -noecho ./g10/gpg --homedir . --run-as-shm-coprocess 0 +while {1} { expect { + "shared memory coprocessing is not available" {exit 1} + "Go ahead and type your message" {exit 0} +} } diff --git a/gnupg.spec b/gnupg.spec new file mode 100644 index 0000000000000000000000000000000000000000..444502cd2cdc1f9f97c1f7f675c31e5ca768cce2 --- /dev/null +++ b/gnupg.spec @@ -0,0 +1,78 @@ +Summary: A GNU utility for secure communication and data storage +Name: gnupg +Version: 1.4.23 +Release: 1 +License: GPLv3+ with exceptions +URL: http://www.gnupg.org/ +Source0: https://gnupg.org/ftp/gcrypt/gnupg/gnupg-%{version}.tar.bz2 +Source1: https://gnupg.org/ftp/gcrypt/gnupg/gnupg-%{version}.tar.bz2.sig +Source2: gnupg-shm-coprocessing.expect +Patch0000: gnupg-1.4.1-gcc.patch +BuildRequires: gcc autoconf >= 2.60 git automake, bzip2-devel, expect, ncurses-devel +BuildRequires: openldap-devel, readline-devel, zlib-devel, gettext-devel curl-devel +%ifnarch s390 s390x +BuildRequires: libusb-devel +%endif +Provides: gpg = %{version}-%{release} +%description +GnuPG (GNU Privacy Guard) is a GNU utility for encrypting data and +creating digital signatures. GnuPG has advanced key management +capabilities and is compliant with the proposed OpenPGP Internet +standard described in RFC2440. Since GnuPG doesn't use any patented +algorithm, it is not compatible with any version of PGP2 (PGP2.x uses +only IDEA for symmetric-key encryption, which is patented worldwide). + +%prep +%autosetup -S git +iconv -f iso-8859-15 -t utf-8 THANKS > THANKS.utf8 +mv THANKS.utf8 THANKS +git commit -a -m "run iconv" +git tag -a %{name}-%{version} -m "baseline" +autoreconf -vif + +%build +configure_flags= +%ifarch ppc64 sparc64 +configure_flags=--disable-asm +%endif +CFLAGS="$RPM_OPT_FLAGS -fPIE -DPIC" ; export CFLAGS +LDFLAGS="$RPM_OPT_FLAGS -pie -Wl,-z,relro,-z,now" ; export LDFLAGS +%configure \ + --disable-rpath \ + --with-zlib --enable-noexecstack \ + $configure_flags +make %{?_smp_mflags} +env LANG=C expect -f %{SOURCE2} + +%check +make check + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} +install -m644 doc/gnupg1.info %{buildroot}/%{_infodir} +sed 's^\.\./g[0-9\.]*/^^g' tools/lspgpot > lspgpot +install -m755 lspgpot %{buildroot}%{_bindir}/lspgpot +rm -f %{buildroot}/%{_infodir}/dir +%find_lang %name + +%files -f %{name}.lang +%doc AUTHORS BUGS COPYING NEWS PROJECTS README THANKS TODO +%doc doc/DETAILS doc/HACKING doc/OpenPGP doc/samplekeys.asc +%{_bindir}/* +%dir %{_datadir}/%{name} +%dir %{_libexecdir}/gnupg +%{_datadir}/%{name}/FAQ +%{_datadir}/%{name}/options.skel +%{_libexecdir}/gnupg/gpgkeys_curl +%{_libexecdir}/gnupg/gpgkeys_finger +%{_libexecdir}/gnupg/gpgkeys_hkp +%{_libexecdir}/gnupg/gpgkeys_ldap +%{_infodir}/gnupg1.info.gz +%{_mandir}/man1/gpg-zip.1.gz +%{_mandir}/man1/gpg.1.gz +%{_mandir}/man1/gpgv.1.gz + +%changelog +* Wed Jul 29 2020 yanan li - 1.4.23-1 +- Package init diff --git a/gnupg.yaml b/gnupg.yaml new file mode 100644 index 0000000000000000000000000000000000000000..38c5ecc322faf3a282268f1d4917be9679dcc35f --- /dev/null +++ b/gnupg.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA