]> git.pld-linux.org Git - packages/gnupg2.git/blob - gnupg2.spec
- updated for 2.0.9
[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.8
10 Release:        3
11 License:        GPL v3+
12 Group:          Applications/File
13 Source0:        ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
14 # Source0-md5:  fc4377ca67e1bf687eeaf22e79c0b9d1
15 Source1:        gnupg-agent.sh
16 Patch0:         %{name}-info.patch
17 Patch1:         %{name}-pth.patch
18 Patch2:         %{name}-pl.po-update.patch
19 Patch3:         %{name}-disable_tests.patch
20 URL:            http://www.gnupg.org/
21 BuildRequires:  autoconf >= 2.61
22 BuildRequires:  automake >= 1:1.10
23 BuildRequires:  bzip2-devel
24 BuildRequires:  curl-devel
25 BuildRequires:  gettext-devel >= 0.16.1
26 BuildRequires:  libassuan-devel >= 1:1.0.2
27 BuildRequires:  libgcrypt-devel >= 1.2.2
28 BuildRequires:  libgpg-error-devel >= 1.4
29 BuildRequires:  libksba-devel >= 1.0.2
30 BuildRequires:  libusb-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:1.0.2
65 Requires:       libgcrypt >= 1.2.2
66 Requires:       libgpg-error >= 1.4
67 Requires:       libksba >= 1.0.2
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
82 %description plugin-keys_curl
83 GnuPG 2 plugin for allow talk to a HTTP(S)/FTP(S) keyserver.
84
85 %description plugin-keys_curl -l pl.UTF-8
86 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy
87 HTTP(S)/FTP(S).
88
89 %package plugin-keys_finger
90 Summary:        GnuPG 2 plugin for allow talk to a FINGER keyserver
91 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy FINGER
92 Group:          Applications/File
93 Requires:       %{name}-common = %{version}-%{release}
94
95 %description plugin-keys_finger
96 GnuPG 2 plugin for allow talk to a FINGER keyserver.
97
98 %description plugin-keys_finger -l pl.UTF-8
99 Wtyczka 2 GnuPG pozwalająca komunikować się z serwerem kluczy FINGER.
100
101 %package plugin-keys_hkp
102 Summary:        GnuPG 2 plugin for allow talk to a HKP keyserver
103 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP
104 Group:          Applications/File
105 Requires:       %{name}-common = %{version}-%{release}
106
107 %description plugin-keys_hkp
108 GnuPG 2 plugin for allow talk to a HKP keyserver.
109
110 %description plugin-keys_hkp -l pl.UTF-8
111 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy HKP.
112
113 %package plugin-keys_ldap
114 Summary:        GnuPG 2 plugin for allow talk to a LDAP keyserver
115 Summary(pl.UTF-8):      Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP
116 Group:          Applications/File
117 Requires:       %{name}-common = %{version}-%{release}
118
119 %description plugin-keys_ldap
120 GnuPG 2 plugin for allow talk to a LDAP keyserver.
121
122 %description plugin-keys_ldap -l pl.UTF-8
123 Wtyczka GnuPG 2 pozwalająca komunikować się z serwerem kluczy LDAP.
124
125 %package -n gnupg-agent
126 Summary:        GnuPG extension - agent
127 Summary(pl.UTF-8):      Rozszerzenie GnuPG - agent
128 Group:          Applications/File
129 Requires:       %{name}-common = %{version}-%{release}
130 Requires:       pinentry
131 Obsoletes:      newpg
132
133 %description -n gnupg-agent
134 GnuPG extension - agent.
135
136 %description -n gnupg-agent -l pl.UTF-8
137 Rozszerzenie GnuPG - agent.
138
139 %package -n gnupg-agent-profile_d
140 Summary:        gnupg-agent start script for text mode
141 Summary(pl.UTF-8):      Skrypt startowy gnupg-agenta dla trybu tekstowego
142 Group:          Applications/File
143 Requires:       gnupg-agent = %{version}-%{release}
144
145 %description -n gnupg-agent-profile_d
146 gnupg-agent start script for text mode.
147
148 %description -n gnupg-agent-profile_d -l pl.UTF-8
149 Skrypt startowy gnupg-agenta dla trybu tekstowego.
150
151 %package -n gnupg-agent-xinitrc
152 Summary:        gnupg-agent start script for X-Window mode
153 Summary(pl.UTF-8):      Skrypt startowy gnupg-agenta dla trybu X-Window
154 Group:          Applications/File
155 Requires:       gnupg-agent = %{version}-%{release}
156 Requires:       xinitrc
157
158 %description -n gnupg-agent-xinitrc
159 gnupg-agent start script for X-Window mode.
160
161 %description -n gnupg-agent-xinitrc -l pl.UTF-8
162 Skrypt startowy gnupg-agenta dla trybu X-Window.
163
164 %package -n gnupg-smime
165 Summary:        GnuPG extension - S/MIME support
166 Summary(pl.UTF-8):      Rozszerzenie GnuPG - obsługa S/MIME
167 Group:          Applications/File
168 Requires:       %{name}-common = %{version}-%{release}
169 Conflicts:      gnupg-agent < 1.9.14-2
170
171 %description -n gnupg-smime
172 GnuPG extension - S/MIME support.
173
174 %description -n gnupg-smime -l pl.UTF-8
175 Rozszerzenie GnuPG - obsługa S/MIME.
176
177 %prep
178 %setup -q -n gnupg-%{version}
179 %patch0 -p1
180 %patch1 -p1
181 %patch2 -p1
182 %{!?with_tests:%patch3 -p1}
183
184 rm -f po/stamp-po
185
186 sed -i -e 's#gl_AC_TYPE_LONG_LONG#AC_TYPE_LONG_LONG_INT#g' gl/m4/allocsa.m4
187
188 %build
189 %{__gettextize}
190 %{__aclocal} -I m4 -I gl/m4
191 %{__autoconf}
192 %{__autoheader}
193 %{__automake}
194 %configure \
195         %{!?with_pth:--disable-threads} \
196         --enable-gpg \
197         --enable-symcryptrun \
198         --with-capabilities \
199         --with-pinentry-pgm=%{_bindir}/pinentry-curses \
200         --with-mailprog=/usr/lib/sendmail
201
202 %{__make}
203
204 %install
205 rm -rf $RPM_BUILD_ROOT
206
207 %{__make} install \
208         DESTDIR=$RPM_BUILD_ROOT \
209         pkglibdir=%{_libexecdir}
210
211 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
212 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
213
214 mv ChangeLog main-ChangeLog || :
215 find -name ChangeLog | awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst); print "cp " src " " dst}' | sh
216
217 %find_lang gnupg2
218 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
219
220 %clean
221 rm -rf $RPM_BUILD_ROOT
222
223 %post   -p      /sbin/postshell
224 -/usr/sbin/fix-info-dir -c %{_infodir}
225
226 %postun -p      /sbin/postshell
227 -/usr/sbin/fix-info-dir -c %{_infodir}
228
229 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
230 %banner gnupg-agent-1.9.16-2 << EOF
231 Scripts for starting gnupg-agent have been moved to separate
232 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
233 EOF
234
235 %files
236 %defattr(644,root,root,755)
237 %doc g10-ChangeLog g10/options.skel
238 %attr(755,root,root) %{_bindir}/gpg2
239 %attr(755,root,root) %{_bindir}/gpgv2
240 %{_mandir}/man1/gpg2.1*
241 %{_mandir}/man1/gpgv2.1*
242
243 %files common -f gnupg2.lang
244 %defattr(644,root,root,755)
245 %doc AUTHORS main-ChangeLog NEWS README THANKS TODO
246 %doc jnlib-ChangeLog m4-ChangeLog po-ChangeLog scripts-ChangeLog common-ChangeLog kbx-ChangeLog tools-ChangeLog doc-ChangeLog
247 %attr(755,root,root) %{_bindir}/gpg-connect-agent
248 %attr(755,root,root) %{_bindir}/gpgconf
249 %attr(755,root,root) %{_bindir}/gpgkey2ssh
250 %attr(755,root,root) %{_bindir}/gpgparsemail
251 %attr(755,root,root) %{_bindir}/kbxutil
252 %attr(755,root,root) %{_bindir}/watchgnupg
253 %attr(755,root,root) %{_sbindir}/addgnupghome
254 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
255 %dir %{_libexecdir}
256 %{_datadir}/gnupg
257 %{_mandir}/man1/gpg-connect-agent.1*
258 %{_mandir}/man1/gpgconf.1*
259 %{_mandir}/man1/gpgparsemail.1*
260 %{_mandir}/man1/watchgnupg.1*
261 %{_mandir}/man8/addgnupghome.8*
262 %{_mandir}/man8/applygnupgdefaults.8*
263 %{_infodir}/*.info*
264
265 %files plugin-keys_curl
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{_libexecdir}/gpg2keys_curl
268
269 %files plugin-keys_finger
270 %defattr(644,root,root,755)
271 %attr(755,root,root) %{_libexecdir}/gpg2keys_finger
272
273 %files plugin-keys_hkp
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_libexecdir}/gpg2keys_hkp
276
277 %files plugin-keys_ldap
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_libexecdir}/gpg2keys_ldap
280
281 %files -n gnupg-smime
282 %defattr(644,root,root,755)
283 %doc sm-ChangeLog
284 %attr(755,root,root) %{_bindir}/gpgsm
285 %attr(755,root,root) %{_bindir}/gpgsm-gencert.sh
286 %{_mandir}/man1/gpgsm.1*
287 %{_mandir}/man1/gpgsm-gencert.sh.1*
288
289 %files -n gnupg-agent
290 %defattr(644,root,root,755)
291 %doc agent-ChangeLog scd-ChangeLog
292 %attr(755,root,root) %{_bindir}/gpg-agent
293 %attr(755,root,root) %{_bindir}/scdaemon
294 %attr(755,root,root) %{_bindir}/symcryptrun
295 %attr(755,root,root) %{_libexecdir}/gnupg-pcsc-wrapper
296 %attr(755,root,root) %{_libexecdir}/gpg-check-pattern
297 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
298 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
299 %{_mandir}/man1/gpg-agent.1*
300 %{_mandir}/man1/gpg-preset-passphrase.1*
301 %{_mandir}/man1/scdaemon.1*
302 %{_mandir}/man1/symcryptrun.1*
303
304 %files -n gnupg-agent-profile_d
305 %defattr(644,root,root,755)
306 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
307
308 %files -n gnupg-agent-xinitrc
309 %defattr(644,root,root,755)
310 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
This page took 0.060511 seconds and 3 git commands to generate.