File osdlyrics.spec of Package osdlyrics
#
# spec file for package osdlyrics
#
# 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 https://bugs.opensuse.org/
#
%define with_mpd 0
%define date 20170817
Name: osdlyrics
Version: 0.4.3+git%{date}.8661927
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: %{name}-%{version}.tar.xz
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(python)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(xmms2-client)
Requires: gtk2
Requires: python-chardet
Requires: python-curl
Requires: sqlite3
Recommends: %{name}-lang
Recommends: python-%{name}
%if %{with_mpd}
BuildRequires: mpd
%endif
%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 python-%{name}
Summary: Python module for osdlyrics
Group: Productivity/Multimedia/Sound/Visualization
Requires: %{name} = %{version}
%description -n python-osdlyrics
This package contains python module for osdlyrics
%lang_package
%prep
%setup -q -n osdlyrics-%{version}
%build
NOCONFIGURE=1 ./autogen.sh
%configure --enable-appindicator \
%if %{with_mpd}
--enable-mpd \
%else
--disable-mpd \
%endif
--enable-xmms2
make %{?_smp_mflags}
%install
%make_install
install -d %{buildroot}%{_datadir}/appdata
cp %{SOURCE1} %{buildroot}%{_datadir}/appdata/
sed -i 's/$$version/%{version}/g; s/$$date/%{date}/g' \
%{buildroot}%{_datadir}/appdata/%{name}-appdata.xml
%suse_update_desktop_file %{name}
%find_lang %{name}
%fdupes %{buildroot}
%if 0%{?suse_version} < 1330
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_post
%posttrans
%icon_theme_cache_post
%endif
%files
%license COPYING
%doc AUTHORS ChangeLog README
%{_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}/appdata
%{_datadir}/appdata/%{name}-appdata.xml
%files -n python-%{name}
%{python_sitelib}/%{name}
%files lang -f %{name}.lang
%changelog