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