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