source: postlfs/security/gpgme.xml@ 5f8447c

12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 5f8447c was 44b3f440, checked in by Xi Ruoyao <xry111@…>, 10 months ago

treewide: Really remove commented out references to Python 2

It helps using grep for finding packages depending on Python 2.

  • Property mode set to 100644
File size: 9.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY gpgme-download-http "&gnupg-http;/gpgme/gpgme-&gpgme-version;.tar.bz2">
8 <!ENTITY gpgme-download-ftp "&gnupg-ftp;/gpgme/gpgme-&gpgme-version;.tar.bz2">
9 <!ENTITY gpgme-download-ftp " ">
10 <!ENTITY gpgme-md5sum "828b8a1f9992826d7ad43741b349db01">
11 <!ENTITY gpgme-size "1.6 MB">
12 <!ENTITY gpgme-buildsize "307 MB (with tests)">
13 <!ENTITY gpgme-time "1.6 SBU (with all bindings and tests; with parallelism=4)">
14]>
15
16<sect1 id="gpgme" xreflabel="GPGME-&gpgme-version;">
17 <?dbhtml filename="gpgme.html"?>
18
19
20 <title>GPGME-&gpgme-version;</title>
21
22 <indexterm zone="gpgme">
23 <primary sortas="a-GPGME">GPGME</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to GPGME</title>
28
29 <para>
30 The <application>GPGME</application> package is a C library
31 that allows cryptography support to be added to a
32 program. It is designed to make access to public key crypto
33 engines like <application>GnuPG</application> or GpgSM easier
34 for applications. <application>GPGME</application> provides
35 a high-level crypto API for encryption, decryption, signing,
36 signature verification and key management.
37 </para>
38
39 &lfs120_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&gpgme-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&gpgme-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &gpgme-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &gpgme-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &gpgme-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &gpgme-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74<!--
75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
78 <para>
79 Recommended patch (required if SWIG is installed):
80 <ulink url="&patch-root;/gpgme-&gpgme-version;-gpg_error_1_46-1.patch"/>
81 </para>
82 </listitem>
83 </itemizedlist>
84-->
85 <bridgehead renderas="sect3">GPGME Dependencies</bridgehead>
86
87 <bridgehead renderas="sect4">Required</bridgehead>
88 <para role="required">
89 <xref linkend="libassuan"/>
90 </para>
91
92 <bridgehead renderas="sect4">Optional</bridgehead>
93 <para role="optional">
94 <xref linkend="doxygen"/> and
95 <xref linkend="graphviz"/> (for API documentation),
96 <xref linkend="gnupg2"/> (required if Qt or SWIG are installed;
97 used during the test suite),
98 <xref linkend="clisp"/>,
99 &qt5-deps;, and
100 <xref linkend="swig"/> (for language bindings)
101 </para>
102
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of GPGME</title>
107
108 <para>
109 Install <application>GPGME</application> by running the following
110 commands:
111 </para>
112<!--gpgme 1.22 FTBFS when building in tree. Upstream thinks building
113 should be done out of tree, but this is not in the doc yet
114 https://github.com/gpg/gpgme/commit/24a8c279da98fe7e586a9fc3cd91175c9e60ffef
115 -->
116<screen><userinput>mkdir build &amp;&amp;
117cd build &amp;&amp;
118
119../configure --prefix=/usr --disable-gpg-test &amp;&amp;
120make PYTHONS=</userinput></screen>
121
122 <para>
123 If <xref linkend='swig'/> is installed, build the Python 3 binding as
124 a wheel:
125 </para>
126
127<screen><userinput>if swig -version > /dev/null; then
128 srcdir=$PWD/../lang/python \
129 top_builddir=$PWD \
130 &build-wheel-cmd; $PWD/lang/python
131fi</userinput></screen>
132
133 <para>
134 To test the results, you should have <xref linkend="gnupg2"/> installed
135 and remove the <option>--disable-gpg-test</option> above. If
136 <xref linkend='swig'/> is installed, it's necessary to adapt the
137 test suite to use the Python 3 binding just built as a wheel as well.
138 Issue:
139 </para>
140
141<screen remap='test'><userinput>if swig -version > /dev/null; then
142 python3 -m venv testenv &amp;&amp;
143 testenv/bin/pip3 install --no-index --find-links=dist --no-cache-dir \
144 gpg &amp;&amp;
145 sed '/PYTHON/s#run-tests.py#&amp; --python-libdir=/dev/null#' \
146 -i lang/python/tests/Makefile
147fi &amp;&amp;
148
149make -k check PYTHONS= PYTHON=$PWD/testenv/bin/python3</userinput></screen>
150
151 <para>
152 Now, as the <systemitem class="username">root</systemitem> user:
153 </para>
154
155<screen role="root"><userinput>make install PYTHONS=</userinput></screen>
156
157 <para>
158 If <xref linkend='swig'/> is installed, still as the &root; user,
159 install the Python 3 binding:
160 </para>
161
162<screen role="root"><userinput>if swig -version > /dev/null; then
163 &install-wheel; gpg
164fi</userinput></screen>
165
166 </sect2>
167
168 <sect2 role="commands">
169 <title>Command Explanations</title>
170
171 <para>
172 <parameter>--disable-gpg-test</parameter>: if this parameter is not
173 passed to configure, the test programs are built during
174 <command>make</command> stage, which requires <xref linkend="gnupg2"/>.
175 This parameter is not needed if <xref linkend="gnupg2"/> is installed.
176 </para>
177
178 <para>
179 <parameter>PYTHONS=</parameter>: Disable building Python binding
180 using the deprecated <command>python3 setup.py build</command>
181 command. The explicit instruction to build the Python 3 binding with
182 the <command>pip3 wheel</command> command is provided.
183 </para>
184
185 </sect2>
186
187 <sect2 role="content">
188 <title>Contents</title>
189
190 <segmentedlist>
191 <segtitle>Installed Program</segtitle>
192 <segtitle>Installed Libraries</segtitle>
193 <segtitle>Installed Directory</segtitle>
194
195 <seglistitem>
196 <seg>
197 gpgme-json, and gpgme-tool
198 </seg>
199 <seg>
200 libgpgme.so, libgpgmepp.so, and libqgpgme.so
201 </seg>
202 <seg>
203 /usr/include/{gpgme++,qgpgme,QGpgME},
204 /usr/lib/cmake/{Gpgmepp,QGpgme}.
205 /usr/lib/python&python3-majorver;/site-packages/gpg{,-&gpgme-version;.dist-info}, and
206 /usr/share/common-lisp/source/gpgme
207 </seg>
208 </seglistitem>
209 </segmentedlist>
210
211 <variablelist>
212 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
213 <?dbfo list-presentation="list"?>
214 <?dbhtml list-presentation="table"?>
215
216 <varlistentry id="gpgme-json">
217 <term><command>gpgme-json</command></term>
218 <listitem>
219 <para>
220 outputs <application>GPGME</application> commands in JSON format
221 </para>
222 <indexterm zone="gpgme gpgme-json">
223 <primary sortas="b-gpgme-json">gpgme-json</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="gpgme-tool">
229 <term><command>gpgme-tool</command></term>
230 <listitem>
231 <para>
232 is an assuan server exposing <application>GPGME</application>
233 operations, such as printing fingerprints and keyids with
234 keyservers
235 </para>
236 <indexterm zone="gpgme gpgme-tool">
237 <primary sortas="b-gpgme-tool">gpgme-tool</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 <!-- As of 1.13.1, this library isn't present anymore.
243 <varlistentry id="libgpgme-pthread">
244 <term><filename class="libraryfile">libgpgme-pthread.so</filename></term>
245 <listitem>
246 <para>
247 contains the <application>GPGME</application> API functions for
248 applications using pthread.
249 </para>
250 <indexterm zone="gpgme libgpgme-pthread">
251 <primary sortas="c-libgpgme-pthread">libgpgme-pthread.so</primary>
252 </indexterm>
253 </listitem>
254 </varlistentry>
255 -->
256
257 <varlistentry id="libgpgme">
258 <term><filename class="libraryfile">libgpgme.so</filename></term>
259 <listitem>
260 <para>
261 contains the <application>GPGME</application> API functions
262 </para>
263 <indexterm zone="gpgme libgpgme">
264 <primary sortas="c-libgpgme">libgpgme.so</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="libgpgmepp">
270 <term><filename class="libraryfile">libgpgmepp.so</filename></term>
271 <listitem>
272 <para>
273 contains the C++ <application>GPGME</application> API functions
274 </para>
275 <indexterm zone="gpgme libgpgmepp">
276 <primary sortas="c-libgpgmepp">libgpgmepp.so</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="libqgpgme">
282 <term><filename class="libraryfile">libqgpgme.so</filename></term>
283 <listitem>
284 <para>
285 contains API functions for handling GPG operations in
286 <application>Qt</application> applications
287 </para>
288 <indexterm zone="gpgme libqgpgme">
289 <primary sortas="c-libqgpgme">libqgpgme.so</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 </variablelist>
295
296 </sect2>
297
298</sect1>
Note: See TracBrowser for help on using the repository browser.