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