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