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