]> git.pld-linux.org Git - packages/gnupg2.git/blob - gnupg2.spec
- updated to 2.1.23 (last 2.1 release)
[packages/gnupg2.git] / gnupg2.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # testsuite on build
4 %bcond_with     default_gpg     # install as gpg/gpgv instead of gpg2/gpgv2
5 %bcond_with     gnutls          # GnuTLS instead of NTBTLS
6 %bcond_with     selinux         # "SELinux hacks"
7 #
8 Summary:        GNU Privacy Guard - tool for secure communication and data storage - enhanced version
9 Summary(pl.UTF-8):      GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozszerzona
10 Name:           gnupg2
11 # 2.1.x is development version unfortunately (see gpg2 --version)
12 Version:        2.1.23
13 Release:        0.1
14 License:        GPL v3+
15 Group:          Applications/File
16 Source0:        ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
17 # Source0-md5:  86c2304ead54b74a422e76c3f1bc7a91
18 Source1:        gnupg-agent.sh
19 Patch0:         %{name}-info.patch
20 Patch1:         %{name}-pth.patch
21 Patch2:         %{name}-disable_tests.patch
22 Patch3:         %{name}-pl.po-update.patch
23 Patch4:         %{name}-am.patch
24 URL:            http://www.gnupg.org/
25 BuildRequires:  adns-devel
26 BuildRequires:  autoconf >= 2.61
27 BuildRequires:  automake >= 1:1.14
28 BuildRequires:  bzip2-devel
29 BuildRequires:  curl-devel >= 7.10
30 BuildRequires:  gettext-tools >= 0.17
31 %{?with_gnutls:BuildRequires:   gnutls-devel >= 3.0}
32 BuildRequires:  libassuan-devel >= 1:2.4.3
33 BuildRequires:  libgcrypt-devel >= 1.7.0
34 BuildRequires:  libgpg-error-devel >= 1.24
35 BuildRequires:  libksba-devel >= 1.3.4
36 BuildRequires:  libusb-devel >= 1.0
37 BuildRequires:  npth-devel >= 1.2
38 %{!?with_gnutls:BuildRequires:  ntbtls-devel >= 0.1.0}
39 # only for dirmngr, which is not built here
40 #BuildRequires: openldap-devel
41 BuildRequires:  pkgconfig
42 BuildRequires:  readline-devel
43 BuildRequires:  rpmbuild(macros) >= 1.177
44 BuildRequires:  texinfo
45 BuildRequires:  zlib-devel
46 Requires:       gnupg2-common = %{version}-%{release}
47 Requires:       sqlite3 >= 3.7
48 %{?with_default_gpg:Obsoletes:  gnupg < 2}
49 Suggests:       gnupg-agent
50 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52 %define         pkglibexecdir   %{_libexecdir}/gnupg2
53
54 %description
55 GnuPG is GNU's tool for secure communication and data storage. It can
56 be used to encrypt data and to create digital signatures. It includes
57 an advanced key management facility and is compliant with the proposed
58 OpenPGP Internet standard as described in RFC2440.
59
60 This is enhanced version.
61
62 %description -l pl.UTF-8
63 GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i
64 bezpiecznego przechowywania danych. Może być używany do szyfrowania
65 oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami
66 i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany
67 w RFC2440.
68
69 To jest wersja rozszerzona.
70
71 %package common
72 Summary:        GnuPG - common files
73 Summary(pl.UTF-8):      GnuPG - pliki wspólne
74 Group:          Applications/File
75 Requires:       libassuan >= 1:2.0.0
76 Requires:       libgcrypt >= 1.5.0
77 Requires:       libgpg-error >= 1.11
78 Requires:       libksba >= 1.0.7
79 Conflicts:      gnupg-agent < 1.9.14-2
80
81 %description common
82 Common files used by tools from GnuPG project.
83
84 %description common -l pl.UTF-8
85 Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
86
87 %package plugin-keys_curl
88 Summary:        GnuPG 2 plugin for allow talk to a HTTP/FTP keyserver
89 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HTTP/FTP
90 Group:          Applications/File
91 Requires:       %{name}-common = %{version}-%{release}
92 Requires:       curl-libs >= 7.10
93
94 %description plugin-keys_curl
95 GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver.
96
97 %description plugin-keys_curl -l pl.UTF-8
98 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy
99 HTTP(S)/FTP(S).
100
101 %package plugin-keys_finger
102 Summary:        GnuPG 2 plugin for allow talk to a FINGER keyserver
103 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER
104 Group:          Applications/File
105 Requires:       %{name}-common = %{version}-%{release}
106
107 %description plugin-keys_finger
108 GnuPG 2 plugin for allow talk to a FINGER keyserver.
109
110 %description plugin-keys_finger -l pl.UTF-8
111 Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER.
112
113 %package plugin-keys_hkp
114 Summary:        GnuPG 2 plugin for allow talk to a HKP keyserver
115 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP
116 Group:          Applications/File
117 Requires:       %{name}-common = %{version}-%{release}
118
119 %description plugin-keys_hkp
120 GnuPG 2 plugin for allow talk to a HKP keyserver.
121
122 %description plugin-keys_hkp -l pl.UTF-8
123 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP.
124
125 %package plugin-keys_kdns
126 Summary:        GnuPG 2 plugin for allow talk to a KDNS keyserver
127 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS
128 Group:          Applications/File
129 Requires:       %{name}-common = %{version}-%{release}
130
131 %description plugin-keys_kdns
132 GnuPG 2 plugin for allow talk to a KDNS keyserver.
133
134 %description plugin-keys_kdns -l pl.UTF-8
135 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy KDNS.
136
137 %package plugin-keys_ldap
138 Summary:        GnuPG 2 plugin for allow talk to a LDAP keyserver
139 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP
140 Group:          Applications/File
141 Requires:       %{name}-common = %{version}-%{release}
142
143 %description plugin-keys_ldap
144 GnuPG 2 plugin for allow talk to a LDAP keyserver.
145
146 %description plugin-keys_ldap -l pl.UTF-8
147 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP.
148
149 %package -n gnupg-agent
150 Summary:        GnuPG extension - agent
151 Summary(pl.UTF-8):      Rozszerzenie GnuPG - agent
152 Group:          Applications/File
153 Requires:       %{name}-common = %{version}-%{release}
154 Requires:       pinentry >= 0.7.5-2
155 Obsoletes:      newpg
156
157 %description -n gnupg-agent
158 GnuPG extension - agent.
159
160 %description -n gnupg-agent -l pl.UTF-8
161 Rozszerzenie GnuPG - agent.
162
163 %package -n gnupg-agent-profile_d
164 Summary:        gnupg-agent start script for text mode
165 Summary(pl.UTF-8):      Skrypt startowy gnupg-agenta dla trybu tekstowego
166 Group:          Applications/File
167 Requires:       gnupg-agent = %{version}-%{release}
168
169 %description -n gnupg-agent-profile_d
170 gnupg-agent start script for text mode.
171
172 %description -n gnupg-agent-profile_d -l pl.UTF-8
173 Skrypt startowy gnupg-agenta dla trybu tekstowego.
174
175 %package -n gnupg-agent-xinitrc
176 Summary:        gnupg-agent start script for X-Window mode
177 Summary(pl.UTF-8):      Skrypt startowy gnupg-agenta dla trybu X-Window
178 Group:          Applications/File
179 Requires:       gnupg-agent = %{version}-%{release}
180 Requires:       xinitrc
181
182 %description -n gnupg-agent-xinitrc
183 gnupg-agent start script for X-Window mode.
184
185 %description -n gnupg-agent-xinitrc -l pl.UTF-8
186 Skrypt startowy gnupg-agenta dla trybu X-Window.
187
188 %package -n gnupg-smime
189 Summary:        GnuPG extension - S/MIME support
190 Summary(pl.UTF-8):      Rozszerzenie GnuPG - obsługa S/MIME
191 Group:          Applications/File
192 Requires:       %{name}-common = %{version}-%{release}
193 Conflicts:      gnupg-agent < 1.9.14-2
194
195 %description -n gnupg-smime
196 GnuPG extension - S/MIME support.
197
198 %description -n gnupg-smime -l pl.UTF-8
199 Rozszerzenie GnuPG - obsługa S/MIME.
200
201 %prep
202 %setup -q -n gnupg-%{version}
203 %patch0 -p1
204 %patch1 -p1
205 %{!?with_tests:%patch2 -p1}
206 %patch3 -p1
207 %patch4 -p1
208
209 %{__rm} po/stamp-po
210
211 %build
212 %{__gettextize}
213 %{__aclocal} -I m4 -I gl/m4
214 %{__autoconf}
215 %{__autoheader}
216 %{__automake}
217 %configure \
218         --libexecdir=%{pkglibexecdir} \
219         --disable-dirmngr \
220         --enable-g13 \
221         %{!?with_default_gpg:--enable-gpg-is-gpg2} \
222         %{?with_gnutls:--disable-ntbtls} \
223         %{?with_selinux:--enable-selinux-support} \
224         --enable-symcryptrun \
225         --enable-wks-tools \
226         --with-capabilities \
227         --with-pinentry-pgm=%{_bindir}/pinentry \
228         --with-mailprog=/usr/lib/sendmail
229
230 %{__make}
231
232 %install
233 rm -rf $RPM_BUILD_ROOT
234
235 %{__make} install \
236         DESTDIR=$RPM_BUILD_ROOT \
237         pkglibdir=%{_libexecdir}
238
239 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
240 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
241
242 %find_lang gnupg2
243 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
244
245 %clean
246 rm -rf $RPM_BUILD_ROOT
247
248 %post   -p /sbin/postshell
249 -/usr/sbin/fix-info-dir -c %{_infodir}
250
251 %postun -p /sbin/postshell
252 -/usr/sbin/fix-info-dir -c %{_infodir}
253
254 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
255 %banner gnupg-agent-1.9.16-2 << EOF
256 Scripts for starting gnupg-agent have been moved to separate
257 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
258 EOF
259
260 %files
261 %defattr(644,root,root,755)
262 %if %{with default_gpg}
263 %attr(755,root,root) %{_bindir}/gpg
264 %attr(755,root,root) %{_bindir}/gpgv
265 %{_mandir}/man1/gpg.1*
266 %{_mandir}/man1/gpgv.1*
267 %else
268 %attr(755,root,root) %{_bindir}/gpg2
269 %attr(755,root,root) %{_bindir}/gpgv2
270 %{_mandir}/man1/gpg2.1*
271 %{_mandir}/man1/gpgv2.1*
272 %endif
273
274 %files common -f gnupg2.lang
275 %defattr(644,root,root,755)
276 %doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO
277 %attr(755,root,root) %{_bindir}/gpg-connect-agent
278 %attr(755,root,root) %{_bindir}/gpgconf
279 %attr(755,root,root) %{_bindir}/gpgkey2ssh
280 %attr(755,root,root) %{_bindir}/gpgparsemail
281 %attr(755,root,root) %{_bindir}/kbxutil
282 %attr(755,root,root) %{_bindir}/watchgnupg
283 %attr(755,root,root) %{_sbindir}/addgnupghome
284 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
285 %attr(755,root,root) %{_sbindir}/g13-syshelp
286 %dir %{pkglibexecdir}
287
288 %{_datadir}/gnupg
289 %{_mandir}/man1/gpg-connect-agent.1*
290 %{_mandir}/man1/gpgconf.1*
291 %{_mandir}/man1/gpgparsemail.1*
292 %{_mandir}/man1/watchgnupg.1*
293 %{_mandir}/man8/addgnupghome.8*
294 %{_mandir}/man8/applygnupgdefaults.8*
295 %{_infodir}/gnupg.info*
296
297 %files plugin-keys_curl
298 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_libexecdir}/gpg2keys_curl
300
301 %files plugin-keys_finger
302 %defattr(644,root,root,755)
303 %attr(755,root,root) %{_libexecdir}/gpg2keys_finger
304
305 %files plugin-keys_hkp
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
308
309 %files plugin-keys_kdns
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libexecdir}/gpg2keys_kdns
312
313 %files plugin-keys_ldap
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
316
317 %files -n gnupg-smime
318 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_bindir}/gpgsm
320 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
321 %{_mandir}/man1/gpgsm.1*
322 %{_mandir}/man1/gpgsm-gencert.sh.1*
323
324 %files -n gnupg-agent
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_bindir}/gpg-agent
327 %attr(755,root,root) %{_bindir}/gpg-wks-server
328 %attr(755,root,root) %{_bindir}/symcryptrun
329 %attr(755,root,root) %{pkglibexecdir}/gpg-check-pattern
330 %attr(755,root,root) %{pkglibexecdir}/gpg-protect-tool
331 %attr(755,root,root) %{pkglibexecdir}/gpg-preset-passphrase
332 %attr(755,root,root) %{pkglibexecdir}/gpg-wks-client
333 %attr(755,root,root) %{pkglibexecdir}/scdaemon
334 %{_mandir}/man1/gpg-agent.1*
335 %{_mandir}/man1/gpg-preset-passphrase.1*
336 %{_mandir}/man1/gpg-wks-client.1*
337 %{_mandir}/man1/gpg-wks-server.1*
338 %{_mandir}/man1/scdaemon.1*
339 %{_mandir}/man1/symcryptrun.1*
340
341 %files -n gnupg-agent-profile_d
342 %defattr(644,root,root,755)
343 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
344
345 %files -n gnupg-agent-xinitrc
346 %defattr(644,root,root,755)
347 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
This page took 0.094957 seconds and 4 git commands to generate.