14
0
forked from pool/python-discid
Files
python-discid/python-discid.spec

79 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-discid
#
# Copyright (c) 2025 SUSE LLC
# 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 https://bugs.opensuse.org/
#
%{?sle15allpythons}
Accepting request 531772 from devel:languages:python:singlespec-staging - Update to version 1.1.1 * workaround :issue:`43` for py2app problems * :issue:`41` improve windows example - Run tests - Fix shebang in examples - Add pkgconfig(libdiscid) (build cross distribution) - Use readlink when searching for package (build cross distribution) - Spec file cleanup - singlespec auto-conversion - Update to current upstream release 1.1.0 - Request libdiscid0 since the code looks for exactly .so.0. - Remove redundant %clean section. - Update to python-discid 1.0.2 * No code changes compared to 1.0.0 release - Update to python-discid 1.0.0 * DEFAULT_DEVICE is now get_default_device() * Disc.submission_url doesn’t point to a redirect now * fix: seconds are now rounded the same as on MB server (0.5->up) - Update to python-discid 0.5.0 * feature: add Disc.mcn and Track.isrc * feature: add LIBDISCID_VERSION_STRING * feature: add Disc.seconds, Track.seconds and aliases Disc.length and Track.sectors * move read and put to module level * changed parameters for put() to include extra `sectors` and add TOCError * rename DiscId to Disc * fix: move track attributes to Track * fix: only have "real" tracks in the list(s) (0 not special) * fix: only read the requested features from disc (sparse) * fix: remove DiscId.webservice_url (deprecated) * fix: detect the version of libdiscid 0.3.0 also in lib64 installations - Update to python-discid 0.4.0 * feature: added FEATURES_IMPLEMENTED, DiscId.track_lengths, DiscId.webservice_url and DiscId.freedb_id * feature: disc access test suite - Update to python-discid 0.3.0 * feature: add FEATURES list * feature: DiscId.put, DiscId.track_offsets, DiscId.sectors, DiscId.first_track_num, DiscId.last_track_num * fix: prefer libdiscid in current directory * fix: find libdiscid in current folder (Linux/Unix) - Add version requirements - Add basic doc files to package (license, changes, example) - Update to python-discid 0.2.1 * fixed Python 3.2 bug in the tests (upstream #9) - Update to python-discid 0.2.0 * API change from DiscId.get_id to DiscId.id * added DEFAULT_DEVICE as a module constant * added DiscId.submission_url - Initial release (0.1.0) OBS-URL: https://build.opensuse.org/request/show/531772 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-discid?expand=0&rev=7
2017-10-05 14:28:31 +00:00
Name: python-discid
Version: 1.3.0
Release: 0
Summary: Python binding of Libdiscid
License: LGPL-3.0-or-later
URL: https://github.com/JonnyJD/python-discid
Accepting request 531772 from devel:languages:python:singlespec-staging - Update to version 1.1.1 * workaround :issue:`43` for py2app problems * :issue:`41` improve windows example - Run tests - Fix shebang in examples - Add pkgconfig(libdiscid) (build cross distribution) - Use readlink when searching for package (build cross distribution) - Spec file cleanup - singlespec auto-conversion - Update to current upstream release 1.1.0 - Request libdiscid0 since the code looks for exactly .so.0. - Remove redundant %clean section. - Update to python-discid 1.0.2 * No code changes compared to 1.0.0 release - Update to python-discid 1.0.0 * DEFAULT_DEVICE is now get_default_device() * Disc.submission_url doesn’t point to a redirect now * fix: seconds are now rounded the same as on MB server (0.5->up) - Update to python-discid 0.5.0 * feature: add Disc.mcn and Track.isrc * feature: add LIBDISCID_VERSION_STRING * feature: add Disc.seconds, Track.seconds and aliases Disc.length and Track.sectors * move read and put to module level * changed parameters for put() to include extra `sectors` and add TOCError * rename DiscId to Disc * fix: move track attributes to Track * fix: only have "real" tracks in the list(s) (0 not special) * fix: only read the requested features from disc (sparse) * fix: remove DiscId.webservice_url (deprecated) * fix: detect the version of libdiscid 0.3.0 also in lib64 installations - Update to python-discid 0.4.0 * feature: added FEATURES_IMPLEMENTED, DiscId.track_lengths, DiscId.webservice_url and DiscId.freedb_id * feature: disc access test suite - Update to python-discid 0.3.0 * feature: add FEATURES list * feature: DiscId.put, DiscId.track_offsets, DiscId.sectors, DiscId.first_track_num, DiscId.last_track_num * fix: prefer libdiscid in current directory * fix: find libdiscid in current folder (Linux/Unix) - Add version requirements - Add basic doc files to package (license, changes, example) - Update to python-discid 0.2.1 * fixed Python 3.2 bug in the tests (upstream #9) - Update to python-discid 0.2.0 * API change from DiscId.get_id to DiscId.id * added DEFAULT_DEVICE as a module constant * added DiscId.submission_url - Initial release (0.1.0) OBS-URL: https://build.opensuse.org/request/show/531772 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-discid?expand=0&rev=7
2017-10-05 14:28:31 +00:00
Source: https://files.pythonhosted.org/packages/source/d/discid/discid-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= 77.0.3}
BuildRequires: %{python_module wheel}
Accepting request 531772 from devel:languages:python:singlespec-staging - Update to version 1.1.1 * workaround :issue:`43` for py2app problems * :issue:`41` improve windows example - Run tests - Fix shebang in examples - Add pkgconfig(libdiscid) (build cross distribution) - Use readlink when searching for package (build cross distribution) - Spec file cleanup - singlespec auto-conversion - Update to current upstream release 1.1.0 - Request libdiscid0 since the code looks for exactly .so.0. - Remove redundant %clean section. - Update to python-discid 1.0.2 * No code changes compared to 1.0.0 release - Update to python-discid 1.0.0 * DEFAULT_DEVICE is now get_default_device() * Disc.submission_url doesn’t point to a redirect now * fix: seconds are now rounded the same as on MB server (0.5->up) - Update to python-discid 0.5.0 * feature: add Disc.mcn and Track.isrc * feature: add LIBDISCID_VERSION_STRING * feature: add Disc.seconds, Track.seconds and aliases Disc.length and Track.sectors * move read and put to module level * changed parameters for put() to include extra `sectors` and add TOCError * rename DiscId to Disc * fix: move track attributes to Track * fix: only have "real" tracks in the list(s) (0 not special) * fix: only read the requested features from disc (sparse) * fix: remove DiscId.webservice_url (deprecated) * fix: detect the version of libdiscid 0.3.0 also in lib64 installations - Update to python-discid 0.4.0 * feature: added FEATURES_IMPLEMENTED, DiscId.track_lengths, DiscId.webservice_url and DiscId.freedb_id * feature: disc access test suite - Update to python-discid 0.3.0 * feature: add FEATURES list * feature: DiscId.put, DiscId.track_offsets, DiscId.sectors, DiscId.first_track_num, DiscId.last_track_num * fix: prefer libdiscid in current directory * fix: find libdiscid in current folder (Linux/Unix) - Add version requirements - Add basic doc files to package (license, changes, example) - Update to python-discid 0.2.1 * fixed Python 3.2 bug in the tests (upstream #9) - Update to python-discid 0.2.0 * API change from DiscId.get_id to DiscId.id * added DEFAULT_DEVICE as a module constant * added DiscId.submission_url - Initial release (0.1.0) OBS-URL: https://build.opensuse.org/request/show/531772 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-discid?expand=0&rev=7
2017-10-05 14:28:31 +00:00
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(libdiscid) >= 0.2.2
# no automatic requires since libdiscid is not linked
# Can't use %_libdir due to noarch
Requires: %(rpm -qf $(readlink -qne /usr/lib*/libdiscid.so) --qf '%%{NAME} >= %%{VERSION}')
BuildArch: noarch
Accepting request 531772 from devel:languages:python:singlespec-staging - Update to version 1.1.1 * workaround :issue:`43` for py2app problems * :issue:`41` improve windows example - Run tests - Fix shebang in examples - Add pkgconfig(libdiscid) (build cross distribution) - Use readlink when searching for package (build cross distribution) - Spec file cleanup - singlespec auto-conversion - Update to current upstream release 1.1.0 - Request libdiscid0 since the code looks for exactly .so.0. - Remove redundant %clean section. - Update to python-discid 1.0.2 * No code changes compared to 1.0.0 release - Update to python-discid 1.0.0 * DEFAULT_DEVICE is now get_default_device() * Disc.submission_url doesn’t point to a redirect now * fix: seconds are now rounded the same as on MB server (0.5->up) - Update to python-discid 0.5.0 * feature: add Disc.mcn and Track.isrc * feature: add LIBDISCID_VERSION_STRING * feature: add Disc.seconds, Track.seconds and aliases Disc.length and Track.sectors * move read and put to module level * changed parameters for put() to include extra `sectors` and add TOCError * rename DiscId to Disc * fix: move track attributes to Track * fix: only have "real" tracks in the list(s) (0 not special) * fix: only read the requested features from disc (sparse) * fix: remove DiscId.webservice_url (deprecated) * fix: detect the version of libdiscid 0.3.0 also in lib64 installations - Update to python-discid 0.4.0 * feature: added FEATURES_IMPLEMENTED, DiscId.track_lengths, DiscId.webservice_url and DiscId.freedb_id * feature: disc access test suite - Update to python-discid 0.3.0 * feature: add FEATURES list * feature: DiscId.put, DiscId.track_offsets, DiscId.sectors, DiscId.first_track_num, DiscId.last_track_num * fix: prefer libdiscid in current directory * fix: find libdiscid in current folder (Linux/Unix) - Add version requirements - Add basic doc files to package (license, changes, example) - Update to python-discid 0.2.1 * fixed Python 3.2 bug in the tests (upstream #9) - Update to python-discid 0.2.0 * API change from DiscId.get_id to DiscId.id * added DEFAULT_DEVICE as a module constant * added DiscId.submission_url - Initial release (0.1.0) OBS-URL: https://build.opensuse.org/request/show/531772 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-discid?expand=0&rev=7
2017-10-05 14:28:31 +00:00
%python_subpackages
%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}
sed -i "s|^#!%{_bindir}/env python$|#!%{_bindir}/python3|" examples.py
%build
%pyproject_wheel
%install
%pyproject_install
Accepting request 531772 from devel:languages:python:singlespec-staging - Update to version 1.1.1 * workaround :issue:`43` for py2app problems * :issue:`41` improve windows example - Run tests - Fix shebang in examples - Add pkgconfig(libdiscid) (build cross distribution) - Use readlink when searching for package (build cross distribution) - Spec file cleanup - singlespec auto-conversion - Update to current upstream release 1.1.0 - Request libdiscid0 since the code looks for exactly .so.0. - Remove redundant %clean section. - Update to python-discid 1.0.2 * No code changes compared to 1.0.0 release - Update to python-discid 1.0.0 * DEFAULT_DEVICE is now get_default_device() * Disc.submission_url doesn’t point to a redirect now * fix: seconds are now rounded the same as on MB server (0.5->up) - Update to python-discid 0.5.0 * feature: add Disc.mcn and Track.isrc * feature: add LIBDISCID_VERSION_STRING * feature: add Disc.seconds, Track.seconds and aliases Disc.length and Track.sectors * move read and put to module level * changed parameters for put() to include extra `sectors` and add TOCError * rename DiscId to Disc * fix: move track attributes to Track * fix: only have "real" tracks in the list(s) (0 not special) * fix: only read the requested features from disc (sparse) * fix: remove DiscId.webservice_url (deprecated) * fix: detect the version of libdiscid 0.3.0 also in lib64 installations - Update to python-discid 0.4.0 * feature: added FEATURES_IMPLEMENTED, DiscId.track_lengths, DiscId.webservice_url and DiscId.freedb_id * feature: disc access test suite - Update to python-discid 0.3.0 * feature: add FEATURES list * feature: DiscId.put, DiscId.track_offsets, DiscId.sectors, DiscId.first_track_num, DiscId.last_track_num * fix: prefer libdiscid in current directory * fix: find libdiscid in current folder (Linux/Unix) - Add version requirements - Add basic doc files to package (license, changes, example) - Update to python-discid 0.2.1 * fixed Python 3.2 bug in the tests (upstream #9) - Update to python-discid 0.2.0 * API change from DiscId.get_id to DiscId.id * added DEFAULT_DEVICE as a module constant * added DiscId.submission_url - Initial release (0.1.0) OBS-URL: https://build.opensuse.org/request/show/531772 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-discid?expand=0&rev=7
2017-10-05 14:28:31 +00:00
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# skip tests that require /dev/sr0
%pytest -k "not (test_read_simple or test_read_put or test_read_features)"
Accepting request 531772 from devel:languages:python:singlespec-staging - Update to version 1.1.1 * workaround :issue:`43` for py2app problems * :issue:`41` improve windows example - Run tests - Fix shebang in examples - Add pkgconfig(libdiscid) (build cross distribution) - Use readlink when searching for package (build cross distribution) - Spec file cleanup - singlespec auto-conversion - Update to current upstream release 1.1.0 - Request libdiscid0 since the code looks for exactly .so.0. - Remove redundant %clean section. - Update to python-discid 1.0.2 * No code changes compared to 1.0.0 release - Update to python-discid 1.0.0 * DEFAULT_DEVICE is now get_default_device() * Disc.submission_url doesn’t point to a redirect now * fix: seconds are now rounded the same as on MB server (0.5->up) - Update to python-discid 0.5.0 * feature: add Disc.mcn and Track.isrc * feature: add LIBDISCID_VERSION_STRING * feature: add Disc.seconds, Track.seconds and aliases Disc.length and Track.sectors * move read and put to module level * changed parameters for put() to include extra `sectors` and add TOCError * rename DiscId to Disc * fix: move track attributes to Track * fix: only have "real" tracks in the list(s) (0 not special) * fix: only read the requested features from disc (sparse) * fix: remove DiscId.webservice_url (deprecated) * fix: detect the version of libdiscid 0.3.0 also in lib64 installations - Update to python-discid 0.4.0 * feature: added FEATURES_IMPLEMENTED, DiscId.track_lengths, DiscId.webservice_url and DiscId.freedb_id * feature: disc access test suite - Update to python-discid 0.3.0 * feature: add FEATURES list * feature: DiscId.put, DiscId.track_offsets, DiscId.sectors, DiscId.first_track_num, DiscId.last_track_num * fix: prefer libdiscid in current directory * fix: find libdiscid in current folder (Linux/Unix) - Add version requirements - Add basic doc files to package (license, changes, example) - Update to python-discid 0.2.1 * fixed Python 3.2 bug in the tests (upstream #9) - Update to python-discid 0.2.0 * API change from DiscId.get_id to DiscId.id * added DEFAULT_DEVICE as a module constant * added DiscId.submission_url - Initial release (0.1.0) OBS-URL: https://build.opensuse.org/request/show/531772 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-discid?expand=0&rev=7
2017-10-05 14:28:31 +00:00
%files %{python_files}
%license COPYING COPYING.LESSER
%doc CHANGES.rst README.rst
%{python_sitelib}/discid
%{python_sitelib}/discid-%{version}.dist-info
%changelog