]>
Commit | Line | Data |
---|---|---|
79f30f85 JB |
1 | # TODO: ntbtls instead of gnutls (when released)? |
2 | # | |
03076a38 | 3 | # Conditional build: |
fe2f6c68 | 4 | %bcond_without tests # testsuite on build |
79f30f85 | 5 | %bcond_with selinux # "SELinux hacks" |
d54c94db | 6 | # |
f56b1d35 JB |
7 | Summary: GNU Privacy Guard - tool for secure communication and data storage - enhanced version |
8 | Summary(pl.UTF-8): GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozszerzona | |
c85d209c | 9 | Name: gnupg2 |
bfc582b2 | 10 | # 2.1.x is development version unfortunately (see gpg2 --version) |
8e57d606 | 11 | Version: 2.1.0 |
bfc582b2 | 12 | Release: 1.1 |
71099ee5 | 13 | License: GPL v3+ |
b626fce0 | 14 | Group: Applications/File |
d47c18c2 | 15 | Source0: ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2 |
8e57d606 | 16 | # Source0-md5: 43a809789a1d897f4386680be0b09d02 |
b626fce0 | 17 | Source1: gnupg-agent.sh |
c85d209c | 18 | Patch0: %{name}-info.patch |
8e57d606 | 19 | |
ea6e9952 | 20 | Patch2: %{name}-disable_tests.patch |
6f582fc9 | 21 | Patch3: %{name}-pl.po-update.patch |
eb43eafb | 22 | Patch4: %{name}-am.patch |
b626fce0 | 23 | URL: http://www.gnupg.org/ |
7eecd7af | 24 | BuildRequires: adns-devel |
71099ee5 JB |
25 | BuildRequires: autoconf >= 2.61 |
26 | BuildRequires: automake >= 1:1.10 | |
b636b9b9 | 27 | BuildRequires: bzip2-devel |
da0f8718 | 28 | BuildRequires: curl-devel >= 7.10 |
e5ce2357 | 29 | BuildRequires: gettext-tools >= 0.17 |
79f30f85 | 30 | BuildRequires: gnutls-devel >= 3.0 |
da0f8718 | 31 | BuildRequires: libassuan-devel >= 1:2.0.0 |
79f30f85 JB |
32 | BuildRequires: libgcrypt-devel >= 1.6.0 |
33 | BuildRequires: libgpg-error-devel >= 1.15 | |
34 | BuildRequires: libksba-devel >= 1.2.0 | |
35 | BuildRequires: libusb-compat-devel >= 0.1 | |
8e57d606 | 36 | BuildRequires: npth-devel >= 1.1 |
79f30f85 JB |
37 | # only for dirmngr, which is not built here |
38 | #BuildRequires: openldap-devel | |
39 | BuildRequires: pkgconfig | |
8e57d606 | 40 | BuildRequires: readline-devel |
f197b41f | 41 | BuildRequires: rpmbuild(macros) >= 1.177 |
b626fce0 AM |
42 | BuildRequires: texinfo |
43 | BuildRequires: zlib-devel | |
c85d209c | 44 | Requires: gnupg2-common = %{version}-%{release} |
150f8795 | 45 | Suggests: gnupg-agent |
b626fce0 AM |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
c85d209c | 48 | %define _libexecdir %{_libdir}/gnupg2 |
b626fce0 AM |
49 | |
50 | %description | |
c85d209c AF |
51 | GnuPG is GNU's tool for secure communication and data storage. It can |
52 | be used to encrypt data and to create digital signatures. It includes | |
53 | an advanced key management facility and is compliant with the proposed | |
54 | OpenPGP Internet standard as described in RFC2440. | |
55 | ||
f56b1d35 | 56 | This is enhanced version. |
b626fce0 | 57 | |
0998c692 JR |
58 | %description -l pl.UTF-8 |
59 | GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i | |
60 | bezpiecznego przechowywania danych. Może być używany do szyfrowania | |
61 | oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami | |
62 | i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany | |
c85d209c AF |
63 | w RFC2440. |
64 | ||
f56b1d35 | 65 | To jest wersja rozszerzona. |
c85d209c AF |
66 | |
67 | %package common | |
68 | Summary: GnuPG - common files | |
4049c7b1 | 69 | Summary(pl.UTF-8): GnuPG - pliki wspólne |
c85d209c | 70 | Group: Applications/File |
da0f8718 | 71 | Requires: libassuan >= 1:2.0.0 |
79f30f85 JB |
72 | Requires: libgcrypt >= 1.6.0 |
73 | Requires: libgpg-error >= 1.15 | |
74 | Requires: libksba >= 1.2.0 | |
75 | Requires: npth >= 1.1 | |
76 | Obsoletes: gnupg2-plugin-keys_curl | |
77 | Obsoletes: gnupg2-plugin-keys_finger | |
78 | Obsoletes: gnupg2-plugin-keys_hkp | |
79 | Obsoletes: gnupg2-plugin-keys_kdns | |
80 | Obsoletes: gnupg2-plugin-keys_ldap | |
81 | Conflicts: gnupg < 1.4.18-2 | |
c85d209c AF |
82 | Conflicts: gnupg-agent < 1.9.14-2 |
83 | ||
84 | %description common | |
85 | Common files used by tools from GnuPG project. | |
86 | ||
0998c692 JR |
87 | %description common -l pl.UTF-8 |
88 | Pliki wspólne używane przez różne narzędzia z projektu GnuPG. | |
c85d209c AF |
89 | |
90 | %package -n gnupg-agent | |
91 | Summary: GnuPG extension - agent | |
4049c7b1 | 92 | Summary(pl.UTF-8): Rozszerzenie GnuPG - agent |
c85d209c | 93 | Group: Applications/File |
7b3cd4e7 | 94 | Requires: %{name}-common = %{version}-%{release} |
1dbb261a | 95 | Requires: pinentry >= 0.7.5-2 |
c85d209c AF |
96 | Obsoletes: newpg |
97 | ||
98 | %description -n gnupg-agent | |
99 | GnuPG extension - agent. | |
100 | ||
0998c692 | 101 | %description -n gnupg-agent -l pl.UTF-8 |
b626fce0 AM |
102 | Rozszerzenie GnuPG - agent. |
103 | ||
f197b41f | 104 | %package -n gnupg-agent-profile_d |
105 | Summary: gnupg-agent start script for text mode | |
4049c7b1 | 106 | Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu tekstowego |
f197b41f | 107 | Group: Applications/File |
108 | Requires: gnupg-agent = %{version}-%{release} | |
109 | ||
110 | %description -n gnupg-agent-profile_d | |
111 | gnupg-agent start script for text mode. | |
112 | ||
0998c692 | 113 | %description -n gnupg-agent-profile_d -l pl.UTF-8 |
f197b41f | 114 | Skrypt startowy gnupg-agenta dla trybu tekstowego. |
115 | ||
116 | %package -n gnupg-agent-xinitrc | |
117 | Summary: gnupg-agent start script for X-Window mode | |
4049c7b1 | 118 | Summary(pl.UTF-8): Skrypt startowy gnupg-agenta dla trybu X-Window |
f197b41f | 119 | Group: Applications/File |
120 | Requires: gnupg-agent = %{version}-%{release} | |
121 | Requires: xinitrc | |
122 | ||
123 | %description -n gnupg-agent-xinitrc | |
124 | gnupg-agent start script for X-Window mode. | |
125 | ||
0998c692 | 126 | %description -n gnupg-agent-xinitrc -l pl.UTF-8 |
f197b41f | 127 | Skrypt startowy gnupg-agenta dla trybu X-Window. |
128 | ||
c85d209c AF |
129 | %package -n gnupg-smime |
130 | Summary: GnuPG extension - S/MIME support | |
4049c7b1 | 131 | Summary(pl.UTF-8): Rozszerzenie GnuPG - obsługa S/MIME |
c85d209c | 132 | Group: Applications/File |
7b3cd4e7 | 133 | Requires: %{name}-common = %{version}-%{release} |
c85d209c AF |
134 | Conflicts: gnupg-agent < 1.9.14-2 |
135 | ||
136 | %description -n gnupg-smime | |
137 | GnuPG extension - S/MIME support. | |
138 | ||
0998c692 JR |
139 | %description -n gnupg-smime -l pl.UTF-8 |
140 | Rozszerzenie GnuPG - obsługa S/MIME. | |
c85d209c | 141 | |
b626fce0 AM |
142 | %prep |
143 | %setup -q -n gnupg-%{version} | |
c85d209c | 144 | %patch0 -p1 |
8e57d606 | 145 | |
ea6e9952 | 146 | %{!?with_tests:%patch2 -p1} |
8e57d606 | 147 | #%patch3 -p1 |
eb43eafb | 148 | %patch4 -p1 |
6f582fc9 JB |
149 | |
150 | %{__rm} po/stamp-po | |
b626fce0 AM |
151 | |
152 | %build | |
3d3dbf69 JB |
153 | %{__gettextize} |
154 | %{__aclocal} -I m4 -I gl/m4 | |
155 | %{__autoconf} | |
156 | %{__autoheader} | |
155bb60b | 157 | %{__automake} |
b626fce0 | 158 | %configure \ |
8e57d606 | 159 | --disable-dirmngr \ |
df2f3764 | 160 | --enable-gpg \ |
79f30f85 | 161 | %{?with_selinux:--enable-selinux-support} \ |
d47c18c2 JB |
162 | --enable-symcryptrun \ |
163 | --with-capabilities \ | |
1dbb261a | 164 | --with-pinentry-pgm=%{_bindir}/pinentry \ |
b626fce0 AM |
165 | --with-mailprog=/usr/lib/sendmail |
166 | ||
62f46a6b | 167 | %{__make} |
b626fce0 AM |
168 | |
169 | %install | |
170 | rm -rf $RPM_BUILD_ROOT | |
b626fce0 AM |
171 | |
172 | %{__make} install \ | |
c85d209c AF |
173 | DESTDIR=$RPM_BUILD_ROOT \ |
174 | pkglibdir=%{_libexecdir} | |
b626fce0 | 175 | |
f197b41f | 176 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh |
177 | install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh | |
c85d209c | 178 | |
79f30f85 JB |
179 | # non-existing program |
180 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/gpg-zip.1 | |
181 | # see dirmngr package | |
182 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/{man1/dirmngr-client.1,man8/dirmngr.8} | |
183 | ||
184 | %{__rm} -f $RPM_BUILD_ROOT%{_datadir}/info/dir | |
185 | ||
f1d02fc8 | 186 | %find_lang gnupg2 |
b626fce0 AM |
187 | |
188 | %clean | |
189 | rm -rf $RPM_BUILD_ROOT | |
190 | ||
da0f8718 | 191 | %post -p /sbin/postshell |
4be7d664 | 192 | -/usr/sbin/fix-info-dir -c %{_infodir} |
b626fce0 | 193 | |
da0f8718 | 194 | %postun -p /sbin/postshell |
4be7d664 | 195 | -/usr/sbin/fix-info-dir -c %{_infodir} |
b626fce0 | 196 | |
f197b41f | 197 | %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2 |
198 | %banner gnupg-agent-1.9.16-2 << EOF | |
199 | Scripts for starting gnupg-agent have been moved to separate | |
200 | subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc. | |
84ab814f | 201 | EOF |
f197b41f | 202 | |
84ab814f | 203 | %files |
b626fce0 | 204 | %defattr(644,root,root,755) |
6462d2ce | 205 | %doc g10/options.skel |
c85d209c AF |
206 | %attr(755,root,root) %{_bindir}/gpg2 |
207 | %attr(755,root,root) %{_bindir}/gpgv2 | |
579ff0a0 JB |
208 | %{_mandir}/man1/gpg2.1* |
209 | %{_mandir}/man1/gpgv2.1* | |
c85d209c AF |
210 | |
211 | %files common -f gnupg2.lang | |
212 | %defattr(644,root,root,755) | |
79f30f85 | 213 | %doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO doc/{DETAILS,FAQ,KEYSERVER,OpenPGP} |
8e57d606 | 214 | %attr(755,root,root) %{_bindir}/g13 |
df2f3764 | 215 | %attr(755,root,root) %{_bindir}/gpg-connect-agent |
a83b3e7b | 216 | %attr(755,root,root) %{_bindir}/gpgconf |
3ea00a0c | 217 | %attr(755,root,root) %{_bindir}/gpgkey2ssh |
da4fafa6 | 218 | %attr(755,root,root) %{_bindir}/gpgparsemail |
8e57d606 | 219 | %attr(755,root,root) %{_bindir}/gpgtar |
579ff0a0 | 220 | %attr(755,root,root) %{_bindir}/kbxutil |
c85d209c AF |
221 | %attr(755,root,root) %{_bindir}/watchgnupg |
222 | %attr(755,root,root) %{_sbindir}/addgnupghome | |
21eea941 | 223 | %attr(755,root,root) %{_sbindir}/applygnupgdefaults |
579ff0a0 | 224 | %dir %{_libexecdir} |
8e57d606 | 225 | |
c85d209c | 226 | %{_datadir}/gnupg |
579ff0a0 JB |
227 | %{_mandir}/man1/gpg-connect-agent.1* |
228 | %{_mandir}/man1/gpgconf.1* | |
229 | %{_mandir}/man1/gpgparsemail.1* | |
230 | %{_mandir}/man1/watchgnupg.1* | |
8e57d606 | 231 | %{_mandir}/man7/gnupg.7* |
579ff0a0 | 232 | %{_mandir}/man8/addgnupghome.8* |
21eea941 | 233 | %{_mandir}/man8/applygnupgdefaults.8* |
00461e0e | 234 | %{_infodir}/gnupg.info* |
c85d209c AF |
235 | |
236 | %files -n gnupg-smime | |
237 | %defattr(644,root,root,755) | |
b626fce0 | 238 | %attr(755,root,root) %{_bindir}/gpgsm |
5fbfe0df | 239 | %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh |
579ff0a0 JB |
240 | %{_mandir}/man1/gpgsm.1* |
241 | %{_mandir}/man1/gpgsm-gencert.sh.1* | |
c85d209c AF |
242 | |
243 | %files -n gnupg-agent | |
244 | %defattr(644,root,root,755) | |
c85d209c | 245 | %attr(755,root,root) %{_bindir}/gpg-agent |
d47c18c2 | 246 | %attr(755,root,root) %{_bindir}/symcryptrun |
a38280f6 | 247 | %attr(755,root,root) %{_libexecdir}/gpg-check-pattern |
c85d209c AF |
248 | %attr(755,root,root) %{_libexecdir}/gpg-protect-tool |
249 | %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase | |
eb43eafb | 250 | %attr(755,root,root) %{_libexecdir}/scdaemon |
579ff0a0 JB |
251 | %{_mandir}/man1/gpg-agent.1* |
252 | %{_mandir}/man1/gpg-preset-passphrase.1* | |
253 | %{_mandir}/man1/scdaemon.1* | |
d47c18c2 | 254 | %{_mandir}/man1/symcryptrun.1* |
f197b41f | 255 | |
256 | %files -n gnupg-agent-profile_d | |
257 | %defattr(644,root,root,755) | |
c85d209c | 258 | %attr(755,root,root) /etc/profile.d/gnupg-agent.sh |
f197b41f | 259 | |
260 | %files -n gnupg-agent-xinitrc | |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh |