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