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