File osdlyrics.spec of Package osdlyrics

#
# spec file for package osdlyrics
#
# Copyright (c) 2022 SUSE LLC
#
# 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/
#


Name:           osdlyrics
Version:        0.5.12
Release:        0
Summary:        A third-party lyrics display program
License:        GPL-3.0-or-later
Group:          Productivity/Multimedia/Sound/Visualization
URL:            https://github.com/osdlyrics/osdlyrics
Source0:        https://github.com/osdlyrics/osdlyrics/archive/%{version}/%{name}-%{version}.tar.gz
Source1:        %{name}.appdata.xml
BuildRequires:  fdupes
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  gettext-devel
BuildRequires:  glibc-devel
BuildRequires:  gnome-common
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(appindicator-0.1)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libglade-2.0)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(python3)
BuildRequires:  pkgconfig(sqlite3)
Requires:       gtk2
Requires:       python3-chardet
Requires:       python3-future
Requires:       python3-pycurl
Requires:       sqlite3
Recommends:     %{name}-lang
Recommends:     python3-%{name}

%description
OSD Lyrics is a lyrics show compatible with various media players. It is not a
plugin but a standalone program. OSD Lyrics shows lyrics on your desktop, in the
style similar to KaraOK. It also provides another displaying style, in which
lyrics scroll from bottom to top. OSD Lyrics can download lyrics from the
network automatically.

%package -n python3-%{name}
Summary:        Python module for osdlyrics
Group:          Productivity/Multimedia/Sound/Visualization
Requires:       %{name} = %{version}
Obsoletes:      python-%{name} <= %{version}

%description -n python3-osdlyrics
This package contains python3 module for osdlyrics

%lang_package

%prep
%setup -q -n %{name}-%{version}

%build
NOCONFIGURE=1 ./autogen.sh
%configure  --enable-appindicator \
            PYTHON=/usr/bin/python3

%make_build

%install
%make_install
install -d %{buildroot}%{_datadir}/metainfo
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/metainfo

%suse_update_desktop_file %{name}

%find_lang %{name}
%fdupes %{buildroot}%{_datadir}
%fdupes %{buildroot}%{python3_sitelib}
%fdupes %{buildroot}%{_libdir}

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_bindir}/%{name}-create-lyricsource
%{_bindir}/%{name}-daemon
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/%{name}/
%{_datadir}/dbus-1/services/org.%{name}.*
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/%{name}.appdata.xml

%files -n python3-%{name}
%{python3_sitelib}/%{name}

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by