File bard.spec of Package bard
#
# spec file for package beets
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Name: bard
Version: 0.5.0+git.20210110.dc3954b
Release: 0
Summary: A database to manage your music, find duplicates and fix tags
License: GPL-3.0-only
Group: Productivity/Multimedia/Sound/Players
Url: https://github.com/antlarr/bard/
Source: %{name}-%{version}.tar.xz
Patch1: do-not-use-native-optimizations.patch
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
BuildRequires: libboost_python3-devel
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pyacoustid
BuildRequires: python3-mutagen
BuildRequires: python3-Pillow
BuildRequires: python3-pydub
BuildRequires: python3-numpy
BuildRequires: python3-dbus-python
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
Requires: python3-pyacoustid
Requires: python3-mutagen
Requires: python3-Pillow
Requires: python3-pydub
Requires: python3-numpy
Requires: python3-dbus-python
Requires: python3-SQLAlchemy
Requires: python3-SQLAlchemy-Utils
Requires: python3-alembic
Requires: python3-Werkzeug
Requires: python3-Flask
Requires: python3-Flask-Cors
Requires: python3-Flask-Login
Requires: python3-Jinja2
Requires: python3-bcrypt
Requires: python3-paramiko
%if 0%{?suse_version} < 1550
Requires: python3-importlib_resources
%endif
Requires: essentia-python
Requires: essentia-models
Recommends: mpv
Recommends: mpv-mpris
%description
Bard is a database to manage your music, find audio duplicates and (soon) fix tags
%prep
%setup -q -n bard-%{version}
%autosetup -p1
sed -i '1d' bard/bard.py bard/__init__.py
%build
export CXXFLAGS="%{optflags}"
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
find %{buildroot}%{python3_sitearch} -iname *.cpp -delete
%files
%defattr(-,root,root,-)
%doc README.md docs/*.md
%license LICENSE
%{_bindir}/bard
%{_docdir}/bard
%{python3_sitearch}/bard
%{python3_sitearch}/bard-*-py%{py3_ver}.egg-info
%changelog