]> git.pld-linux.org Git - packages/gnupg2.git/blob - gnupg2.spec
7229bac78dba05e31b02b06fffb29ccd11eddb1f
[packages/gnupg2.git] / gnupg2.spec
1 # TODO: ntbtls instead of gnutls (when released)?
2 #
3 # Conditional build:
4 %bcond_without  tests   # testsuite on build
5 %bcond_with     gnutls  # GnuTLS instead of NTBTLS
6 %bcond_with     selinux # "SELinux hacks"
7 #
8 Summary:        GNU Privacy Guard - tool for secure communication and data storage - enhanced version
9 Summary(pl.UTF-8):      GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozszerzona
10 Name:           gnupg2
11 # 2.1.x is development version unfortunately (see gpg2 --version)
12 Version:        2.1.20
13 Release:        0.1
14 License:        GPL v3+
15 Group:          Applications/File
16 Source0:        ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
17 # Source0-md5:  f6bc7e0b82893dfafe09109d86ff6e9b
18 Source1:        gnupg-agent.sh
19 Patch0:         %{name}-info.patch
20
21 Patch2:         %{name}-disable_tests.patch
22 Patch3:         %{name}-pl.po-update.patch
23 URL:            http://www.gnupg.org/
24 BuildRequires:  adns-devel
25 BuildRequires:  autoconf >= 2.61
26 BuildRequires:  automake >= 1:1.14
27 BuildRequires:  bzip2-devel
28 BuildRequires:  curl-devel >= 7.10
29 BuildRequires:  gettext-tools >= 0.17
30 %{?with_gnutls:BuildRequires:   gnutls-devel >= 3.0}
31 BuildRequires:  libassuan-devel >= 1:2.4.3
32 BuildRequires:  libgcrypt-devel >= 1.7.0
33 BuildRequires:  libgpg-error-devel >= 1.24
34 BuildRequires:  libksba-devel >= 1.3.4
35 BuildRequires:  libusb-devel >= 1.0
36 BuildRequires:  npth-devel >= 1.2
37 %{!?with_gnutls:BuildRequires:  ntbtls-devel >= 0.1.0}
38 # only for dirmngr, which is not built here
39 #BuildRequires: openldap-devel
40 BuildRequires:  pkgconfig
41 BuildRequires:  readline-devel
42 BuildRequires:  rpmbuild(macros) >= 1.177
43 BuildRequires:  sqlite3-devel >= 3.7
44 BuildRequires:  texinfo
45 BuildRequires:  zlib-devel
46 Requires:       gnupg2-common = %{version}-%{release}
47 Requires:       sqlite3 >= 3.7
48 Suggests:       gnupg-agent
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %define         _libexecdir     %{_libdir}/gnupg2
52
53 %description
54 GnuPG is GNU's tool for secure communication and data storage. It can
55 be used to encrypt data and to create digital signatures. It includes
56 an advanced key management facility and is compliant with the proposed
57 OpenPGP Internet standard as described in RFC2440.
58
59 This is enhanced version.
60
61 %description -l pl.UTF-8
62 GnuPG (GNU Privacy Guard) jest narzędziem do bezpiecznej komunikacji i
63 bezpiecznego przechowywania danych. Może być używany do szyfrowania
64 oraz podpisywania danych. Umożliwia zaawansowane zarządzanie kluczami
65 i spełnia normy zdefiniowane w standardzie OpenPGP, który jest opisany
66 w RFC2440.
67
68 To jest wersja rozszerzona.
69
70 %package common
71 Summary:        GnuPG - common files
72 Summary(pl.UTF-8):      GnuPG - pliki wspólne
73 Group:          Applications/File
74 Requires:       libassuan >= 1:2.4.3
75 Requires:       libgcrypt >= 1.7.0
76 Requires:       libgpg-error >= 1.24
77 Requires:       libksba >= 1.3.4
78 Requires:       npth >= 1.2
79 Obsoletes:      gnupg2-plugin-keys_curl
80 Obsoletes:      gnupg2-plugin-keys_finger
81 Obsoletes:      gnupg2-plugin-keys_hkp
82 Obsoletes:      gnupg2-plugin-keys_kdns
83 Obsoletes:      gnupg2-plugin-keys_ldap
84 Conflicts:      gnupg < 1.4.18-2
85 Conflicts:      gnupg-agent < 1.9.14-2
86
87 %description common
88 Common files used by tools from GnuPG project.
89
90 %description common -l pl.UTF-8
91 Pliki wspólne używane przez różne narzędzia z projektu GnuPG.
92
93 %package -n gnupg-agent
94 Summary:        GnuPG extension - agent
95 Summary(pl.UTF-8):      Rozszerzenie GnuPG - agent
96 Group:          Applications/File
97 Requires:       %{name}-common = %{version}-%{release}
98 Requires:       pinentry >= 0.7.5-2
99 Obsoletes:      newpg
100
101 %description -n gnupg-agent
102 GnuPG extension - agent.
103
104 %description -n gnupg-agent -l pl.UTF-8
105 Rozszerzenie GnuPG - agent.
106
107 %package -n gnupg-agent-profile_d
108 Summary:        gnupg-agent start script for text mode
109 Summary(pl.UTF-8):      Skrypt startowy gnupg-agenta dla trybu tekstowego
110 Group:          Applications/File
111 Requires:       gnupg-agent = %{version}-%{release}
112
113 %description -n gnupg-agent-profile_d
114 gnupg-agent start script for text mode.
115
116 %description -n gnupg-agent-profile_d -l pl.UTF-8
117 Skrypt startowy gnupg-agenta dla trybu tekstowego.
118
119 %package -n gnupg-agent-xinitrc
120 Summary:        gnupg-agent start script for X-Window mode
121 Summary(pl.UTF-8):      Skrypt startowy gnupg-agenta dla trybu X-Window
122 Group:          Applications/File
123 Requires:       gnupg-agent = %{version}-%{release}
124 Requires:       xinitrc
125
126 %description -n gnupg-agent-xinitrc
127 gnupg-agent start script for X-Window mode.
128
129 %description -n gnupg-agent-xinitrc -l pl.UTF-8
130 Skrypt startowy gnupg-agenta dla trybu X-Window.
131
132 %package -n gnupg-smime
133 Summary:        GnuPG extension - S/MIME support
134 Summary(pl.UTF-8):      Rozszerzenie GnuPG - obsługa S/MIME
135 Group:          Applications/File
136 Requires:       %{name}-common = %{version}-%{release}
137 Conflicts:      gnupg-agent < 1.9.14-2
138
139 %description -n gnupg-smime
140 GnuPG extension - S/MIME support.
141
142 %description -n gnupg-smime -l pl.UTF-8
143 Rozszerzenie GnuPG - obsługa S/MIME.
144
145 %prep
146 %setup -q -n gnupg-%{version}
147 %patch0 -p1
148
149 %{!?with_tests:%patch2 -p1}
150 #%patch3 -p1
151
152 %{__rm} po/stamp-po
153
154 %build
155 %{__gettextize}
156 %{__aclocal} -I m4
157 %{__autoconf}
158 %{__autoheader}
159 %{__automake}
160 %configure \
161         --disable-dirmngr \
162         --enable-g13 \
163         --enable-gpg \
164         %{?with_gnutls:--disable-ntbtls} \
165         %{?with_selinux:--enable-selinux-support} \
166         --enable-symcryptrun \
167         --with-capabilities \
168         --with-pinentry-pgm=%{_bindir}/pinentry \
169         --with-mailprog=/usr/lib/sendmail
170
171 # required for info rebuild
172 %{__make} -C doc defs.inc
173
174 %{__make}
175
176 %install
177 rm -rf $RPM_BUILD_ROOT
178
179 %{__make} install \
180         DESTDIR=$RPM_BUILD_ROOT \
181         pkglibdir=%{_libexecdir}
182
183 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/gnupg-agent.sh
184 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gnupg-agent.sh
185
186 # see dirmngr package
187 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{man1/dirmngr-client.1,man8/dirmngr.8}
188
189 %{__rm} -f $RPM_BUILD_ROOT%{_datadir}/info/dir
190
191 # files useful for users packaged as %doc
192 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/gnupg
193
194 %find_lang gnupg2
195
196 %clean
197 rm -rf $RPM_BUILD_ROOT
198
199 %post   common -p /sbin/postshell
200 -/usr/sbin/fix-info-dir -c %{_infodir}
201
202 %postun common -p /sbin/postshell
203 -/usr/sbin/fix-info-dir -c %{_infodir}
204
205 %triggerpostun -n gnupg-agent -- gnupg-agent < 1.9.16-2
206 %banner gnupg-agent-1.9.16-2 << EOF
207 Scripts for starting gnupg-agent have been moved to separate
208 subpackages: gnupg-agent-profile_d and gnupg-agent-xinitrc.
209 EOF
210
211 %files
212 %defattr(644,root,root,755)
213 %doc g10/options.skel
214 %attr(755,root,root) %{_bindir}/gpg2
215 %attr(755,root,root) %{_bindir}/gpgv2
216 %{_mandir}/man1/gpg2.1*
217 %{_mandir}/man1/gpgv2.1*
218
219 %files common -f gnupg2.lang
220 %defattr(644,root,root,755)
221 %doc AUTHORS ChangeLog ChangeLog-2011 NEWS README THANKS TODO doc/{DETAILS,FAQ,KEYSERVER,OpenPGP} doc/examples
222 %attr(755,root,root) %{_bindir}/g13
223 %attr(755,root,root) %{_bindir}/gpg-connect-agent
224 %attr(755,root,root) %{_bindir}/gpgconf
225 %attr(755,root,root) %{_bindir}/gpgparsemail
226 %attr(755,root,root) %{_bindir}/gpgscm
227 %attr(755,root,root) %{_bindir}/gpgtar
228 %attr(755,root,root) %{_bindir}/kbxutil
229 %attr(755,root,root) %{_bindir}/watchgnupg
230 %attr(755,root,root) %{_sbindir}/addgnupghome
231 %attr(755,root,root) %{_sbindir}/applygnupgdefaults
232 %attr(755,root,root) %{_sbindir}/g13-syshelp
233 %dir %{_libexecdir}
234
235 %{_datadir}/gnupg
236 %{_mandir}/man1/gpg-connect-agent.1*
237 %{_mandir}/man1/gpgconf.1*
238 %{_mandir}/man1/gpgparsemail.1*
239 %{_mandir}/man1/watchgnupg.1*
240 %{_mandir}/man7/gnupg.7*
241 %{_mandir}/man8/addgnupghome.8*
242 %{_mandir}/man8/applygnupgdefaults.8*
243 %{_infodir}/gnupg.info*
244
245 %files -n gnupg-smime
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_bindir}/gpgsm
248 %{_mandir}/man1/gpgsm.1*
249
250 %files -n gnupg-agent
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_bindir}/gpg-agent
253 %attr(755,root,root) %{_bindir}/symcryptrun
254 %attr(755,root,root) %{_libexecdir}/gpg-check-pattern
255 %attr(755,root,root) %{_libexecdir}/gpg-protect-tool
256 %attr(755,root,root) %{_libexecdir}/gpg-preset-passphrase
257 %attr(755,root,root) %{_libexecdir}/gpg-wks-client
258 %attr(755,root,root) %{_libexecdir}/scdaemon
259 %{_mandir}/man1/gpg-agent.1*
260 %{_mandir}/man1/gpg-preset-passphrase.1*
261 %{_mandir}/man1/scdaemon.1*
262 %{_mandir}/man1/symcryptrun.1*
263
264 %files -n gnupg-agent-profile_d
265 %defattr(644,root,root,755)
266 %attr(755,root,root) /etc/profile.d/gnupg-agent.sh
267
268 %files -n gnupg-agent-xinitrc
269 %defattr(644,root,root,755)
270 %attr(755,root,root) /etc/X11/xinit/xinitrc.d/gnupg-agent.sh
This page took 0.031816 seconds and 2 git commands to generate.