SPECS: python-musicbrainz2.spec (NEW) - initial
jasw
jasw at pld-linux.org
Sat Mar 10 13:15:31 CET 2007
Author: jasw Date: Sat Mar 10 12:15:31 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial
---- Files affected:
SPECS:
python-musicbrainz2.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/python-musicbrainz2.spec
diff -u /dev/null SPECS/python-musicbrainz2.spec:1.1
--- /dev/null Sat Mar 10 13:15:31 2007
+++ SPECS/python-musicbrainz2.spec Sat Mar 10 13:15:25 2007
@@ -0,0 +1,66 @@
+# $Revision$, $Date$
+Summary: Python module for MusicBrainz 2nd generation
+Summary(pl.UTF-8): Moduł języka Python dla MusicBrainz drugiej generacji
+Name: python-musicbrainz2
+Version: 0.4.1
+Release: 1
+License: LGPL
+Group: Development/Languages/Python
+Source0: http://ftp.musicbrainz.org/pub/musicbrainz/python-musicbrainz2/%{name}-%{version}.tar.gz
+# Source0-md5: c61079631f453059b56c8bcab525018c
+URL: http://icepick.info/projects/python-musicbrainz/
+BuildRequires: python-ctypes
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+%pyrequires_eq python-modules
+Requires: python-ctypes
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The package python-musicbrainz2 is a client library written in python,
+which provides easy object oriented access to the MusicBrainz Database
+using the XMLWebService. It has been written from scratch and uses a
+different model than PythonMusicbrainz, the first generation python
+bindings.
+
+
+%description -l pl.UTF-8
+Pakiet python-musicbrainz2 jest biblioteką napisaną w pythonie,
+która dostarcza łatwy obiektowo zorientowany dostęp do Bazy
+MusicBrainz używając XMLWebService.
+
+
+%prep
+%setup -q
+
+%build
+find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%{py_sitescriptdir}/musicbrainz2
+%{_examplesdir}/%{name}-%{version}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+$Log$
+Revision 1.1 2007/03/10 12:15:25 jasw
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list