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