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