]>
Commit | Line | Data |
---|---|---|
8b1ee8d6 JW |
1 | Summary: Python module for MusicBrainz 2nd generation |
2 | Summary(pl.UTF-8): Moduł języka Python dla MusicBrainz drugiej generacji | |
3 | Name: python-musicbrainz2 | |
3ebcd99b | 4 | Version: 0.7.2 |
c0a48230 | 5 | Release: 1 |
f5bede4f | 6 | License: BSD |
8b1ee8d6 JW |
7 | Group: Development/Languages/Python |
8 | Source0: http://ftp.musicbrainz.org/pub/musicbrainz/python-musicbrainz2/%{name}-%{version}.tar.gz | |
3ebcd99b | 9 | # Source0-md5: 89fa67121973014dec8629f2cc75b826 |
3a49374b | 10 | URL: http://musicbrainz.org/doc/PythonMusicBrainz2 |
f5bede4f | 11 | BuildRequires: python-devel >= 1:2.5 |
8b1ee8d6 JW |
12 | BuildRequires: rpm-pythonprov |
13 | BuildRequires: rpmbuild(macros) >= 1.219 | |
14 | %pyrequires_eq python-modules | |
8b1ee8d6 JW |
15 | BuildArch: noarch |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | The package python-musicbrainz2 is a client library written in python, | |
20 | which provides easy object oriented access to the MusicBrainz Database | |
21 | using the XMLWebService. It has been written from scratch and uses a | |
af37cd48 | 22 | different model than PythonMusicbrainz, the first generation Python |
8b1ee8d6 JW |
23 | bindings. |
24 | ||
8b1ee8d6 | 25 | %description -l pl.UTF-8 |
3a49374b | 26 | Pakiet python-musicbrainz2 jest biblioteką napisaną w pythonie, która |
27 | dostarcza łatwy obiektowo zorientowany dostęp do bazy MusicBrainz przy | |
28 | użyciu XMLWebService. Został napisany od zera i wykorzystuje inny | |
29 | model niż PythonMusicbrainz - wiązania Pythona pierwszej generacji. | |
8b1ee8d6 JW |
30 | |
31 | %prep | |
32 | %setup -q | |
33 | ||
34 | %build | |
35 | find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";" | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
8b1ee8d6 JW |
39 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
40 | ||
f5bede4f JB |
41 | %{__python} ./setup.py install \ |
42 | --optimize=2 \ | |
43 | --root=$RPM_BUILD_ROOT | |
44 | ||
8b1ee8d6 JW |
45 | install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
46 | %py_postclean | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
f5bede4f JB |
53 | %doc AUTHORS.txt CHANGES.txt COPYING.txt README.txt |
54 | %attr(755,root,root) %{_bindir}/mb-submit-disc | |
8b1ee8d6 | 55 | %{py_sitescriptdir}/musicbrainz2 |
f5bede4f | 56 | %{py_sitescriptdir}/python_musicbrainz2-*.egg-info |
8b1ee8d6 | 57 | %{_examplesdir}/%{name}-%{version} |