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