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