gnupg2/gnupg2.spec

193 lines
5.6 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:41:13 -04:00
Name: gnupg2
2023-07-17 10:32:44 +08:00
Version: 2.4.3
2024-09-30 16:26:02 +08:00
Release: 4
2019-09-30 10:41:13 -04:00
Summary: Utility for secure communication and data storage
License: GPLv3+
URL: https://gnupg.org/
Source0: https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-%{version}.tar.bz2
Source1: https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-%{version}.tar.bz2.sig
2020-07-25 18:49:18 +08:00
2022-01-10 09:45:34 +08:00
Patch0: gnupg-2.1.10-secmem.patch
Patch1: gnupg-2.1.1-fips-algo.patch
Patch2: gnupg-2.2.23-large-rsa.patch
Patch4: gnupg-2.2.18-gpg-accept-subkeys-with-a-good-revocation-but-no-self-sig.patch
Patch5: gnupg-2.2.18-gpg-allow-import-of-previously-known-keys-even-without-UI.patch
Patch6: gnupg-2.2.18-tests-add-test-cases-for-import-without-uid.patch
Patch7: gnupg-2.2.20-file-is-digest.patch
Patch8: gnupg-2.2.21-coverity.patch
2023-07-17 10:32:44 +08:00
Patch9: gnupg2-revert-rfc4880bis.patch
Patch10: backport-dirmngr-Enable-the-call-of-ks_ldap_help_variables-wh.patch
Patch11: backport-gpg-Make-no-literal-work-again-for-c-and-store.patch
2024-09-30 16:26:02 +08:00
Patch12: backport-gpg-Fix-minor-memory-leak-during-certain-smartcard-o.patch
2019-09-30 10:41:13 -04:00
2021-05-26 11:25:35 +08:00
BuildRequires: gcc
2021-07-26 15:19:37 +08:00
BuildRequires: zlib-devel, npth-devel, texinfo
2023-07-17 10:32:44 +08:00
BuildRequires: libgpg-error-devel >= 1.46
BuildRequires: libgcrypt-devel >= 1.9.4
2023-07-17 10:32:44 +08:00
BuildRequires: libksba-devel >= 1.6.3
BuildRequires: libassuan-devel >= 2.5.0
2022-01-10 09:45:34 +08:00
# compile dirmngr module, need gnutls
BuildRequires: gnutls-devel
2019-09-30 10:41:13 -04:00
Requires: libgcrypt >= 1.9.4
2023-07-17 10:32:44 +08:00
Requires: libgpg-error >= 1.46
2019-09-30 10:41:13 -04:00
Recommends: pinentry
Recommends: gnupg2-smime
Provides: gpg = %{version}-%{release}
Provides: gnupg = %{version}-%{release}
Provides: dirmngr = %{version}-%{release}
2023-07-17 10:32:44 +08:00
Provides: gnupg2-smime = %{version}-%{release}
2019-09-30 10:41:13 -04:00
Obsoletes: gnupg <= 1.4.24
Obsoletes: dirmngr < 1.2.0-1
2023-07-17 10:32:44 +08:00
Obsoletes: gnupg2-smime < %{version}-%{release}
2019-09-30 10:41:13 -04:00
%description
GnuPG is a complete and free implementation of the OpenPGP standard
as defined by RFC4880 (also known as PGP). GnuPG enables encryption
and signing of data and communication, and features a versatile key
management system as well as access modules for public key
directories.
GnuPG 2.0 adds support for smart cards and S/MIME encryption and
signing to the base GnuPG package.
%package_help
%prep
%autosetup -n gnupg-%{version} -p1
%global pcsclib %(basename $(ls -1 %{_libdir}/libpcsclite.so.? 2>/dev/null ) 2>/dev/null )
sed -i -e 's/"libpcsclite\.so"/"%{pcsclib}"/' scd/scdaemon.c
%build
2022-01-10 09:45:34 +08:00
# add --disable-ccid-driver to solve #2005714
# disable tpm2 module
2019-09-30 10:41:13 -04:00
%configure \
--disable-rpath \
--enable-g13 \
2022-01-10 09:45:34 +08:00
--disable-ccid-driver \
--disable-tpm2d \
2019-09-30 10:41:13 -04:00
--enable-large-secmem
%make_build
%install
%make_install
%find_lang %{name}
mkdir -p %{buildroot}%{_sysconfdir}/gnupg
touch %{buildroot}%{_sysconfdir}/gnupg/gpgconf.conf
2019-11-06 19:08:44 +08:00
ln -sf gpg %{buildroot}%{_bindir}/gpg2
ln -sf gpgv %{buildroot}%{_bindir}/gpgv2
ln -sf gpg.1 %{buildroot}%{_mandir}/man1/gpg2.1
ln -sf gpgv.1 %{buildroot}%{_mandir}/man1/gpgv2.1
ln -sf gnupg.7 %{buildroot}%{_mandir}/man7/gnupg2.7
2019-09-30 10:41:13 -04:00
rm -f %{buildroot}%{_infodir}/dir
%check
make check
%files -f %{name}.lang
%defattr(-,root,root)
%license COPYING
%doc README AUTHORS
%dir %{_sysconfdir}/gnupg
%ghost %config(noreplace) %{_sysconfdir}/gnupg/gpgconf.conf
%{_bindir}/gpg*
%{_bindir}/g13
%{_bindir}/dirmngr*
%{_bindir}/watchgnupg
%{_bindir}/kbxutil
%{_sbindir}/*
%{_libexecdir}/*
%files help
%defattr(-,root,root)
%doc NEWS TODO THANKS
%{_infodir}/*info*.gz
%{_datadir}/gnupg/
%{_datadir}/doc/gnupg/*
%exclude %{_datadir}/gnupg/sks-keyservers.netCA.pem
2019-09-30 10:41:13 -04:00
%{_mandir}/man?/*
%changelog
2024-09-30 16:26:02 +08:00
* Mon Sep 30 2024 yixiangzhike <yixiangzhike007@163.com> - 2.4.3-4
- backport upstream patch to fix minor memory leak
* Wed Sep 25 2024 yixiangzhike <yixiangzhike007@163.com> - 2.4.3-3
- gpg Make --no-literal work again for -c and --store
2024-01-02 20:01:57 +08:00
* Tue Jan 2 2024 yixiangzhike <yixiangzhike007@163.com> - 2.4.3-2
- use gpgtar to replace gpg-zip
2023-07-17 10:32:44 +08:00
* Mon Jul 17 2023 yixiangzhike <yixiangzhike007@163.com> - 2.4.3-1
- update to 2.4.3
2023-06-14 10:24:30 +08:00
* Wed Jun 14 2023 yixiangzhike <yixiangzhike007@163.com> - 2.3.6-4
- backport upstream patch
* Mon Aug 15 2022 yixiangzhike <yixiangzhike007@163.com> - 2.3.6-3
- fix CVE-2022-34903
* Wed Jul 6 2022 yixiangzhike <yixiangzhike007@163.com> - 2.3.6-2
- cleanup unused patch files
* Mon Jun 27 2022 yixiangzhike <yixiangzhike007@163.com> - 2.3.6-1
- update to 2.3.6, need require new version libgpg-error(1.41) and libgcrypt(1.9.4)
- do not provide unused sks-keyserver CA certificate
2022-01-10 09:45:34 +08:00
* Mon Jan 10 2022 yixiangzhike <yixiangzhike007@163.com> - 2.3.4-1
- update to 2.3.4
2021-08-02 10:13:18 +08:00
* Mon Aug 2 2021 yixiangzhike <zhangxingliang3@huawei.com> - 2.2.27-4
- fix the insttools patch
2021-07-26 15:19:37 +08:00
* Mon Jul 26 2021 zoulin <zoulin13@huawei.com> - 2.2.27-3
- remove unnecessary BuildRequires:gdb
2021-05-26 11:25:35 +08:00
* Wed May 26 2021 yixiangzhike <zhangxingliang3@huawei.com> - 2.2.27-2
- add gcc to BuildRequires
2021-01-28 09:15:47 +08:00
* Thu Jan 28 2021 yixiangzhike <zhangxingliang3@huawei.com> - 2.2.27-1
- update to 2.2.27
2020-09-10 09:32:28 +08:00
* Thu Sep 10 2020 zhangxingliang <zhangxingliang3@huawei.com> - 2.2.21-3
- fix AEAD preference list overflow for CVE-2020-25125
2020-08-04 18:38:49 +08:00
* Tue Aug 4 2020 wangchen <wangchen137@huawei.com> - 2.2.21-2
- fix undefined shift in block_filter()
2020-07-25 18:49:18 +08:00
* Sat Jul 25 2020 yang_zhuang_zhuang <yangzhuangzhuang1@huawei.com> - 2.2.21-1
- update version to 2.2.21
2020-06-03 16:29:46 +08:00
* Wed Jun 3 2020 Anakin Zhang <nbztx@126.com> - 2.2.17-7
- fix a memory leak in g10
2020-05-06 14:32:56 +08:00
* Wed Apr 22 2020 Anakin Zhang <nbztx@126.com> - 2.2.17-6
2020-04-22 15:26:34 +08:00
- fix CVE-2019-14855
2020-03-14 18:14:36 +08:00
* Sat Mar 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.2.17-5
- Add build requires of gdb
2020-01-10 14:49:39 +08:00
* Fri Jan 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.2.17-4
- clean code
2019-11-06 19:08:44 +08:00
* Fri Oct 25 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.2.17-3
- add gpg and gpgv
* Thu Oct 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.2.17-2
- add symlinks
2019-09-30 10:41:13 -04:00
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.2.17-1
- Package init