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