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