Python bindings of Libdiscid Homepage: https://python-discid.readthedocs.org/ Repository and Bug tracker: https://github.com/JonnyJD/python-discid Downloads: https://pypi.python.org/pypi/discid Announcement: http://blog.musicbrainz.org/?p=2038 This works on Python 2 and 3 (I submit a clone to devel:languages:python3) OBS-URL: https://build.opensuse.org/request/show/181197 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-discid?expand=0&rev=1
68 lines
2.2 KiB
RPMSpec
68 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-discid
|
|
#
|
|
# Copyright (c) 2013 Johannes Dewender <novell@JonnyJD.net>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
%define modname discid
|
|
|
|
Name: python-%{modname}
|
|
Version: 1.0.2
|
|
Release: 0
|
|
Summary: Python binding of Libdiscid
|
|
License: LGPL-3.0+
|
|
Group: Development/Libraries/Python
|
|
Url: https://python-discid.readthedocs.org/
|
|
Source: http://pypi.python.org/packages/source/d/%{modname}/%{modname}-%{version}.tar.gz
|
|
# no automatic requires since libdiscid is not linked
|
|
Requires: libdiscid >= 0.2.2
|
|
BuildRequires: libdiscid >= 0.2.2
|
|
BuildRequires: python-devel >= 2.6
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Python-discid implements Python bindings for MusicBrainz Libdiscid.
|
|
|
|
Libdiscid's main purpose is the calculation of an identifier of audio
|
|
discs (disc id) to use for the MusicBrainz database.
|
|
|
|
That identifier is calculated from the TOC of the disc, similar to the
|
|
freeDB CDDB identifier. Libdiscid can calculate MusicBrainz Disc IDs and
|
|
freeDB Disc IDs.
|
|
Additionally the MCN of the disc and ISRCs from the tracks can be extracted.
|
|
|
|
This module is a close binding that offloads all relevant data
|
|
storage and calculation to Libdiscid. On the other hand it gives a
|
|
pythonic API and uses objects and exceptions.
|
|
|
|
%prep
|
|
%setup -q -n discid-%{version}
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
|
chmod a-x examples.py
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f INSTALLED_FILES
|
|
%defattr(-,root,root)
|
|
%dir %{python_sitelib}/*
|
|
%doc COPYING COPYING.LESSER CHANGES.rst examples.py
|
|
|
|
%changelog
|