1 |
%define pkgname gnupg |
2 |
|
3 |
Summary: GNU privacy guard - a free PGP replacement |
4 |
Name: gnupg2 |
5 |
Version: 2.0.18 |
6 |
%define subrel 2 |
7 |
Release: %mkrel 1 |
8 |
License: GPLv3 |
9 |
Group: File tools |
10 |
URL: http://www.gnupg.org |
11 |
Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/%{pkgname}-%{version}.tar.bz2 |
12 |
Source1: %{SOURCE0}.sig |
13 |
Source2: gpg-agent.sh |
14 |
Source3: gpg-agent-xinit.sh |
15 |
Source4: sysconfig-gnupg2 |
16 |
Patch0: gnupg-1.9.3-use-ImageMagick-for-photo.patch |
17 |
Patch1: gnupg-2.0.14-tests-s2kcount.patch |
18 |
Patch2: gnupg-2.0.18-CVE-2012-6085.diff |
19 |
BuildRequires: openldap-devel |
20 |
BuildRequires: sendmail-command |
21 |
BuildRequires: libgpg-error-devel >= 1.4 |
22 |
BuildRequires: libgcrypt-devel >= 1.2.0 |
23 |
BuildRequires: libassuan-devel >= 1.0.2 |
24 |
BuildRequires: libksba-devel >= 1.0.2 |
25 |
BuildRequires: zlib-devel |
26 |
BuildRequires: pth-devel >= 2.0.0 |
27 |
BuildRequires: docbook-utils |
28 |
BuildRequires: libreadline-devel |
29 |
BuildRequires: libtermcap-devel |
30 |
BuildRequires: libcurl-devel |
31 |
BuildRequires: libusb-devel |
32 |
BuildRequires: bzip2-devel |
33 |
BuildRequires: libassuan-devel |
34 |
Requires(post): info-install |
35 |
Requires(preun): info-install |
36 |
Requires: info-install |
37 |
Obsoletes: newpg |
38 |
Provides: newpg = %{version}-%{release} |
39 |
Requires: dirmngr |
40 |
Requires: pinentry |
41 |
Requires: gnupg |
42 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
43 |
|
44 |
%description |
45 |
GnuPG is GNU's tool for secure communication and data storage. |
46 |
It can be used to encrypt data and to create digital signatures. |
47 |
It includes an advanced key management facility and is compliant |
48 |
with the proposed OpenPGP Internet standard as described in RFC2440. |
49 |
|
50 |
%prep |
51 |
%setup -q -n %{pkgname}-%{version} |
52 |
%patch0 -p1 -b .ImageMagick |
53 |
%patch1 -p1 |
54 |
%patch2 -p0 -b .CVE-2012-6085 |
55 |
|
56 |
%build |
57 |
%serverbuild |
58 |
|
59 |
./autogen.sh |
60 |
|
61 |
%configure2_5x \ |
62 |
--libexecdir=%{_libdir}/gnupg2 \ |
63 |
--enable-symcryptrun \ |
64 |
--disable-rpath \ |
65 |
--without-capabilities \ |
66 |
--with-adns=no \ |
67 |
--with-pkits-tests |
68 |
|
69 |
# no parallel make (v2.0.5 at least) |
70 |
%make |
71 |
|
72 |
# all tests must pass on i586 and x86_64 |
73 |
%check |
74 |
[[ -n "$GPG_AGENT_INFO" ]] || eval `./agent/gpg-agent --use-standard-socket --daemon --write-env-file gpg-agent-info` |
75 |
make check |
76 |
[[ -a gpg-agent-info ]] && kill -0 `cut -d: -f 2 gpg-agent-info` |
77 |
rm -f gpg-agent-info |
78 |
|
79 |
%install |
80 |
rm -rf %{buildroot} |
81 |
|
82 |
%makeinstall_std |
83 |
#Remove: #60298 |
84 |
install -d %{buildroot}/%{_sysconfdir}/profile.d |
85 |
install %{SOURCE2} %{buildroot}/%{_sysconfdir}/profile.d/gpg-agent.sh |
86 |
install -d %{buildroot}/%{_sysconfdir}/X11/xinit.d |
87 |
install %{SOURCE3} %{buildroot}/%{_sysconfdir}/X11/xinit.d/gpg-agent |
88 |
install -d %{buildroot}/%{_sysconfdir}/sysconfig |
89 |
install %{SOURCE4} %{buildroot}/%{_sysconfdir}/sysconfig/%{name} |
90 |
|
91 |
# remove this from package because the content of options.skel is the |
92 |
# identical for both gnupg 1/2, except for comment |
93 |
rm -rf %{buildroot}%{_datadir}/gnupg |
94 |
|
95 |
rm -rf %{buildroot}%{_docdir}/gnupg |
96 |
|
97 |
# fix file conflict with 'gnupg' package |
98 |
rm %{buildroot}%{_mandir}/man1/gpg-zip.1 |
99 |
|
100 |
%find_lang %{name} |
101 |
|
102 |
%post |
103 |
%_install_info gnupg.info |
104 |
|
105 |
%preun |
106 |
%_remove_install_info gnupg.info |
107 |
|
108 |
%clean |
109 |
rm -rf %{buildroot} |
110 |
|
111 |
%files -f %{name}.lang |
112 |
%defattr(-,root,root) |
113 |
%doc README NEWS THANKS TODO ChangeLog |
114 |
%doc doc/FAQ doc/HACKING doc/KEYSERVER doc/OpenPGP doc/TRANSLATE doc/DETAILS |
115 |
%doc doc/examples |
116 |
%attr(0755,root,root) %{_sysconfdir}/profile.d/gpg-agent.sh |
117 |
%attr(0755,root,root) %{_sysconfdir}/X11/xinit.d/gpg-agent |
118 |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name} |
119 |
%attr(4755,root,root) %{_bindir}/gpgsm |
120 |
%{_bindir}/gpg-agent |
121 |
%{_bindir}/gpgconf |
122 |
%{_bindir}/kbxutil |
123 |
%{_bindir}/sc* |
124 |
%{_bindir}/watchgnupg |
125 |
%{_bindir}/gpgsm-gencert.sh |
126 |
%{_bindir}/gpgkey2ssh |
127 |
%{_bindir}/gpg-connect-agent |
128 |
%{_bindir}/gpgparsemail |
129 |
%{_bindir}/gpg2 |
130 |
%{_bindir}/gpgv2 |
131 |
%{_bindir}/symcryptrun |
132 |
%{_sbindir}/addgnupghome |
133 |
%{_sbindir}/applygnupgdefaults |
134 |
%dir %{_libdir}/gnupg2 |
135 |
%{_libdir}/gnupg2/gpg-check-pattern |
136 |
%{_libdir}/gnupg2/gpg-preset-passphrase |
137 |
%{_libdir}/gnupg2/gpg-protect-tool |
138 |
%{_libdir}/gnupg2/gnupg-pcsc-wrapper |
139 |
%{_libdir}/gnupg2/gpg2keys_curl |
140 |
%{_libdir}/gnupg2/gpg2keys_finger |
141 |
%{_libdir}/gnupg2/gpg2keys_hkp |
142 |
%{_libdir}/gnupg2/gpg2keys_ldap |
143 |
%{_infodir}/gnupg.info* |
144 |
%{_mandir}/man1/gpg-agent.1* |
145 |
%{_mandir}/man1/gpg-connect-agent.1* |
146 |
%{_mandir}/man1/gpg-preset-passphrase.1* |
147 |
%{_mandir}/man1/gpg2.1* |
148 |
%{_mandir}/man1/gpgconf.1* |
149 |
%{_mandir}/man1/gpgparsemail.1* |
150 |
%{_mandir}/man1/gpgsm-gencert.sh.1* |
151 |
%{_mandir}/man1/gpgsm.1* |
152 |
%{_mandir}/man1/gpgv2.1* |
153 |
%{_mandir}/man1/scdaemon.1* |
154 |
%{_mandir}/man1/symcryptrun.1* |
155 |
%{_mandir}/man1/watchgnupg.1* |
156 |
%{_mandir}/man8/addgnupghome.8* |
157 |
%{_mandir}/man8/applygnupgdefaults.8* |
158 |
|
159 |
|