forked from pool/picard
Accepting request 1093875 from home:bnavigator:branches:multimedia:apps
- Remove obsolete python-sip (v4) module from BuildRequires - Remove obsolete distribution switches for suse_version < 1500 - Use PEP517 macros instead of deprecated setup.py - Enable tests - Add picard-requirements.patch, update requirements OBS-URL: https://build.opensuse.org/request/show/1093875 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/picard?expand=0&rev=128
This commit is contained in:
parent
9a860fdb63
commit
d1be523cf0
24
picard-requirements.patch
Normal file
24
picard-requirements.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff -ur picard-release-2.8.5.o/requirements.txt picard-release-2.8.5/requirements.txt
|
||||||
|
--- picard-release-2.8.5.o/requirements.txt 2023-06-20 08:30:49.086031685 +0200
|
||||||
|
+++ picard-release-2.8.5/requirements.txt 2023-06-20 08:31:10.326725906 +0200
|
||||||
|
@@ -1,12 +1,8 @@
|
||||||
|
-python-dateutil~=2.7
|
||||||
|
-discid~=1.0
|
||||||
|
-fasteners~=0.14
|
||||||
|
-markdown~=3.2
|
||||||
|
-mutagen~=1.37
|
||||||
|
-PyJWT~=2.0
|
||||||
|
-pyobjc-core>=6.2, <10; sys_platform == 'darwin'
|
||||||
|
-pyobjc-framework-Cocoa>=6.2, <10; sys_platform == 'darwin'
|
||||||
|
-PyQt5~=5.11
|
||||||
|
-PyQt5-sip<=12.9.1; python_version < '3.7'
|
||||||
|
-pywin32; sys_platform == 'win32'
|
||||||
|
-pyyaml>=5.1, <7
|
||||||
|
+python-dateutil>=2.7
|
||||||
|
+discid>=1.0
|
||||||
|
+fasteners>=0.14
|
||||||
|
+markdown>=3.2
|
||||||
|
+mutagen>=1.37
|
||||||
|
+PyJWT>=2.0
|
||||||
|
+PyQt5>=5.11
|
||||||
|
+pyyaml>=5.1
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 19 18:51:36 UTC 2023 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Remove obsolete python-sip (v4) module from BuildRequires
|
||||||
|
- Remove obsolete distribution switches for suse_version < 1500
|
||||||
|
- Use PEP517 macros instead of deprecated setup.py
|
||||||
|
- Enable tests
|
||||||
|
- Add picard-requirements.patch, update requirements
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 6 13:48:58 UTC 2022 - Paolo Stivanin <info@paolostivanin.com>
|
Tue Dec 6 13:48:58 UTC 2022 - Paolo Stivanin <info@paolostivanin.com>
|
||||||
|
|
||||||
|
56
picard.spec
56
picard.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package picard
|
# spec file for package picard
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -24,26 +24,40 @@ License: GPL-2.0-or-later
|
|||||||
Group: Productivity/Multimedia/Sound/Utilities
|
Group: Productivity/Multimedia/Sound/Utilities
|
||||||
URL: https://picard.musicbrainz.org
|
URL: https://picard.musicbrainz.org
|
||||||
Source0: https://codeload.github.com/metabrainz/picard/tar.gz/release-%{version}#/%{name}-%{version}.tar.gz
|
Source0: https://codeload.github.com/metabrainz/picard/tar.gz/release-%{version}#/%{name}-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-SUSE picard-requirements.patch, code@bnavigator.de -- clean python requirements metadata
|
||||||
|
Patch0: picard-requirements.patch
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: hicolor-icon-theme
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: libofa-devel
|
BuildRequires: libofa-devel
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-fasteners
|
BuildRequires: python3-pip
|
||||||
BuildRequires: python3-mutagen >= 1.37
|
|
||||||
BuildRequires: python3-qt5 >= 5.11
|
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-sip
|
BuildRequires: python3-wheel
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
Requires: python3-Markdown
|
Requires: python3-Markdown >= 3.2
|
||||||
Requires: python3-PyYAML
|
Requires: python3-PyJWT >= 2.0
|
||||||
Requires: python3-dateutil >= 2.7.3
|
Requires: python3-PyQt5 >= 5.11
|
||||||
Requires: python3-fasteners
|
Requires: python3-PyYAML >= 5.1
|
||||||
|
Requires: python3-discid >= 1.0
|
||||||
|
Requires: python3-fasteners >= 0.14
|
||||||
Requires: python3-mutagen >= 1.37
|
Requires: python3-mutagen >= 1.37
|
||||||
Requires: python3-qt5 >= 5.11
|
Requires: python3-python-dateutil >= 2.7
|
||||||
Recommends: chromaprint-fpcalc
|
Recommends: chromaprint-fpcalc
|
||||||
Recommends: python3-discid
|
# SECTION test
|
||||||
|
BuildRequires: python3-python-dateutil >= 2.7
|
||||||
|
BuildRequires: python3-Markdown >= 3.2
|
||||||
|
BuildRequires: python3-PyJWT >= 2.0
|
||||||
|
BuildRequires: python3-PyQt5 >= 5.11
|
||||||
|
BuildRequires: python3-PyYAML >= 5.1
|
||||||
|
BuildRequires: python3-discid >= 1.0
|
||||||
|
BuildRequires: python3-fasteners >= 0.14
|
||||||
|
BuildRequires: python3-mutagen >= 1.37
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
BuildRequires: python3-pytest-xvfb
|
||||||
|
# /SECTION
|
||||||
|
|
||||||
%description
|
%description
|
||||||
MusicBrainz Picard is a MusicBrainz tag editor written in Python.
|
MusicBrainz Picard is a MusicBrainz tag editor written in Python.
|
||||||
@ -53,16 +67,15 @@ track-based tagging.
|
|||||||
%lang_package
|
%lang_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-release-%{version}
|
%autosetup -p1 -n %{name}-release-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
python3 setup.py config
|
%python3_pyproject_wheel
|
||||||
python3 setup.py build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
python3 setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
|
%python3_pyproject_install
|
||||||
|
|
||||||
%suse_update_desktop_file -G "Music Tagger" -N "picard" org.musicbrainz.Picard
|
%suse_update_desktop_file -G "Music Tagger" -N "picard" org.musicbrainz.Picard
|
||||||
|
|
||||||
@ -71,21 +84,18 @@ rm -rfv %{buildroot}%{_datadir}/locale/sco
|
|||||||
%find_lang %{name} %{name}.lang
|
%find_lang %{name} %{name}.lang
|
||||||
%find_lang %{name}-countries %{name}.lang
|
%find_lang %{name}-countries %{name}.lang
|
||||||
%find_lang %{name}-attributes %{name}.lang
|
%find_lang %{name}-attributes %{name}.lang
|
||||||
|
%fdupes %{buildroot}%{python3_sitearch}
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1500
|
%check
|
||||||
%post
|
pytest -v
|
||||||
%icon_theme_cache_post
|
|
||||||
|
|
||||||
%postun
|
|
||||||
%icon_theme_cache_postun
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS.txt NEWS.md
|
%doc AUTHORS.txt NEWS.md
|
||||||
%license COPYING.txt
|
%license COPYING.txt
|
||||||
%{_bindir}/picard
|
%{_bindir}/picard
|
||||||
%{_datadir}/applications/org.musicbrainz.Picard.desktop
|
%{_datadir}/applications/org.musicbrainz.Picard.desktop
|
||||||
%{python3_sitearch}/picard*
|
%{python3_sitearch}/picard
|
||||||
|
%{python3_sitearch}/picard-%{version}.dist-info
|
||||||
%{_datadir}/icons/hicolor/*/apps/org.musicbrainz.Picard.png
|
%{_datadir}/icons/hicolor/*/apps/org.musicbrainz.Picard.png
|
||||||
%{_datadir}/icons/hicolor/*/apps/org.musicbrainz.Picard.svg
|
%{_datadir}/icons/hicolor/*/apps/org.musicbrainz.Picard.svg
|
||||||
%{_datadir}/metainfo/org.musicbrainz.Picard.appdata.xml
|
%{_datadir}/metainfo/org.musicbrainz.Picard.appdata.xml
|
||||||
|
Loading…
Reference in New Issue
Block a user