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 libmusicbrainz-download-http "http://ftp.musicbrainz.org/pub/musicbrainz/historical/libmusicbrainz-&libmusicbrainz-version;.tar.gz">
|
---|
8 | <!ENTITY libmusicbrainz-download-ftp "ftp://ftp.musicbrainz.org/pub/musicbrainz/historical/libmusicbrainz-&libmusicbrainz-version;.tar.gz">
|
---|
9 | <!ENTITY libmusicbrainz-md5sum "d5e19bb77edd6ea798ce206bd05ccc5f">
|
---|
10 | <!ENTITY libmusicbrainz-size "524 KB">
|
---|
11 | <!ENTITY libmusicbrainz-buildsize "12 MB">
|
---|
12 | <!ENTITY libmusicbrainz-time "0.4 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="libmusicbrainz" xreflabel="libmusicbrainz-&libmusicbrainz-version;">
|
---|
16 | <?dbhtml filename="libmusicbrainz.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>libmusicbrainz-&libmusicbrainz-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="libmusicbrainz">
|
---|
26 | <primary sortas="a-libmusicbrainz">libmusicbrainz</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to libmusicbrainz</title>
|
---|
31 |
|
---|
32 | <para>The <application>libmusicbrainz</application> package contains a
|
---|
33 | library which allows you to access the data held on the MusicBrainz server.
|
---|
34 | This is useful for adding MusicBrainz lookup capabilities to other
|
---|
35 | applications.</para>
|
---|
36 |
|
---|
37 | <para>MusicBrainz is a community music metadatabase that attempts to create
|
---|
38 | a comprehensive music information site. You can use the MusicBrainz data
|
---|
39 | either by browsing the web site, or you can access the data from a client
|
---|
40 | program — for example, a CD player program can use MusicBrainz to
|
---|
41 | identify CDs and provide information about the CD, about the artist or
|
---|
42 | other related information.</para>
|
---|
43 |
|
---|
44 | &lfs76_checked;
|
---|
45 |
|
---|
46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
47 | <itemizedlist spacing="compact">
|
---|
48 | <listitem>
|
---|
49 | <para>Download (HTTP): <ulink url="&libmusicbrainz-download-http;"/></para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Download (FTP): <ulink url="&libmusicbrainz-download-ftp;"/></para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Download MD5 sum: &libmusicbrainz-md5sum;</para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Download size: &libmusicbrainz-size;</para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>Estimated disk space required: &libmusicbrainz-buildsize;</para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>Estimated build time: &libmusicbrainz-time;</para>
|
---|
65 | </listitem>
|
---|
66 | </itemizedlist>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
69 | <itemizedlist spacing="compact">
|
---|
70 | <listitem>
|
---|
71 | <para>Required patch: <ulink
|
---|
72 | url="&patch-root;/libmusicbrainz-&libmusicbrainz-version;-missing-includes-1.patch"/></para>
|
---|
73 | </listitem>
|
---|
74 | </itemizedlist>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect3">libmusicbrainz Dependencies</bridgehead>
|
---|
77 |
|
---|
78 | <bridgehead renderas="sect4">Optional to Build the Python Bindings</bridgehead>
|
---|
79 | <para role="optional">
|
---|
80 | <xref linkend="python2"/>
|
---|
81 | </para>
|
---|
82 |
|
---|
83 | <para condition="html" role="usernotes">User Notes:
|
---|
84 | <ulink url="&blfs-wiki;/libmusicbrainz"/></para>
|
---|
85 |
|
---|
86 | </sect2>
|
---|
87 |
|
---|
88 | <sect2 role="installation">
|
---|
89 | <title>Installation of libmusicbrainz</title>
|
---|
90 |
|
---|
91 | <para>Install <application>libmusicbrainz</application> by running the
|
---|
92 | following commands:</para>
|
---|
93 |
|
---|
94 | <screen><userinput>patch -Np1 -i ../libmusicbrainz-&libmusicbrainz-version;-missing-includes-1.patch &&
|
---|
95 | ./configure --prefix=/usr --disable-static &&
|
---|
96 | make</userinput></screen>
|
---|
97 |
|
---|
98 | <para>If <application>Python</application> is installed, build the bindings
|
---|
99 | with the following commands:</para>
|
---|
100 |
|
---|
101 | <screen><userinput>(cd python && python setup.py build)</userinput></screen>
|
---|
102 |
|
---|
103 | <para>This package does not come with a stand-alone test suite (to
|
---|
104 | test you must have <application>Python</application> installed and perform
|
---|
105 | the test after the package is installed).</para>
|
---|
106 |
|
---|
107 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
108 |
|
---|
109 | <screen role="root"><userinput>make install &&
|
---|
110 | install -v -m644 -D docs/mb_howto.txt \
|
---|
111 | /usr/share/doc/libmusicbrainz-&libmusicbrainz-version;/mb_howto.txt</userinput></screen>
|
---|
112 |
|
---|
113 | <para>To test the Python bindings, issue the following:
|
---|
114 | <command>(cd python && python setup.py test)</command>.</para>
|
---|
115 |
|
---|
116 | <para>If you built the Python bindings, issue the following commands as
|
---|
117 | the <systemitem class="username">root</systemitem> user to install
|
---|
118 | them:</para>
|
---|
119 |
|
---|
120 | <screen role="root"><userinput>(cd python && python setup.py install)</userinput></screen>
|
---|
121 |
|
---|
122 | </sect2>
|
---|
123 |
|
---|
124 | <sect2 role="commands">
|
---|
125 | <title>Command Explanations</title>
|
---|
126 |
|
---|
127 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
128 | href="../../xincludes/static-libraries.xml"/>
|
---|
129 |
|
---|
130 | </sect2>
|
---|
131 |
|
---|
132 | <sect2 role="content">
|
---|
133 | <title>Contents</title>
|
---|
134 |
|
---|
135 | <segmentedlist>
|
---|
136 | <segtitle>Installed Programs</segtitle>
|
---|
137 | <segtitle>Installed Library</segtitle>
|
---|
138 | <segtitle>Installed Directories</segtitle>
|
---|
139 |
|
---|
140 | <seglistitem>
|
---|
141 | <seg>None</seg>
|
---|
142 | <seg>libmusicbrainz.so</seg>
|
---|
143 | <seg>/usr/include/musicbrainz and
|
---|
144 | /usr/share/doc/libmusicbrainz-&libmusicbrainz-version;</seg>
|
---|
145 | </seglistitem>
|
---|
146 | </segmentedlist>
|
---|
147 |
|
---|
148 | <variablelist>
|
---|
149 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
150 | <?dbfo list-presentation="list"?>
|
---|
151 | <?dbhtml list-presentation="table"?>
|
---|
152 |
|
---|
153 | <varlistentry id="libmusicbrainz-lib">
|
---|
154 | <term><filename class='libraryfile'>libmusicbrainz.so</filename></term>
|
---|
155 | <listitem>
|
---|
156 | <para>contains API functions to access the MusicBrainz database, both
|
---|
157 | for looking up data and also for submitting new data.</para>
|
---|
158 | <indexterm zone="libmusicbrainz libmusicbrainz-lib">
|
---|
159 | <primary sortas="c-libmusicbrainz">libmusicbrainz.so</primary>
|
---|
160 | </indexterm>
|
---|
161 | </listitem>
|
---|
162 | </varlistentry>
|
---|
163 | </variablelist>
|
---|
164 |
|
---|
165 | </sect2>
|
---|
166 |
|
---|
167 | </sect1>
|
---|