A new user interface for you! Read more...

File osdlyrics.spec of Package osdlyrics-beta

%global elfname osdlyrics

Name:           osdlyrics-beta
Version:        0.4.2b2
Summary:        Osd-lyrics is a third-party lyrics display program.
Group:          Applications/Multimedia
License:        GPLv3	
URL:            http://code.google.com/p/osd-lyrics/
Source0:        http://osd-lyrics.googlecode.com/files/osdlyrics-0.4.2-beta2.tar.gz
BuildRoot:      %{_tmppath}/osdlyrics-%{version}-build
Release:        1
%if 0%{?suse_version}
%if 0%{?suse_version} < 1140
Patch0:         0.4.2-build.patch
%endif
BuildRequires:  update-desktop-files
BuildRequires:  gtk2-devel, dbus-1-glib-devel, libcurl-devel, libglade2-devel, libnotify-devel,sqlite3-devel, gcc, gcc-c++, glibc-devel 
BuildRequires:  autoconf, automake,gettext-devel, intltool, libtool
Requires:       dbus-1-glib , libglade2, libnotify, sqlite3
Requires:       gtk2 
Requires:       libcurl4 
%endif

%if 0%{?mdkversion}
BuildRequires:  polkit-gnome, polkit-kde-1, gcc-c++, autoconf, automake, gtk2-devel, dbus-glib-devel, libcurl-devel, libglade2-devel, intltool
BuildRequires:  gettext-devel, libnotify-devel, notification-daemon
%ifarch x86_64 
BuildRequires:  lib64sqlite3-devel
Requires:       lib64curl4, lib64glade2.0_0, lib64gtk+2.0_0, lib64dbus-glib-1_2, lib64curl4, lib64sqlite3_0
%else 
BuildRequires:  libsqlite3-devel
Requires:       libcurl4, libglade2.0_0, libgtk+2.0_0, libdbus-glib-1_2, libcurl4, libsqlite3_0
%endif
%endif

%if 0%{?fedora}
Requires:       gtk2, dbus-glib, libglade2, libcurl
BuildRequires:  gcc-c++, autoconf, automake, sqlite-devel
BuildRequires:  gtk2-devel, dbus-glib-devel, libcurl-devel, libglade2-devel, intltool
BuildRequires:  gettext-devel, libnotify-devel, notification-daemon
%endif

%if 0%{?rhel_version}
Requires:       gtk2, dbus-glib, libglade2, libcurl
BuildRequires:  gcc-c++, autoconf, automake, sqlite-devel
BuildRequires:  gtk2-devel, dbus-glib-devel, libcurl-devel, libglade2-devel, intltool
BuildRequires:  gettext-devel, libnotify-devel, notification-daemon
BuildRequires:  docbook-utils docbook-utils-pdf elinks lynx w3m
%endif

Obsoletes:      osd-lyrics  osdlyrics


%description
OSD Lyrics is inspired by lrcdis. With OSD Lyrics, you can enjoy an OSD lyrics show with various media players in Linux.

%prep
%setup -q -n osdlyrics-0.4.2-beta2
%if 0%{?suse_version}
%if 0%{?suse_version} < 1140
%patch0 -p1    
%endif
%endif

%build
%configure --prefix=%{_prefix} \
           --libdir=%{_libdir} \
           --datadir=%{_datadir} \
           --disable-mpd \
           --disable-xmms2
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
%if 0%{?suse_version}
%suse_update_desktop_file -r osdlyrics Player AudioVideo
%endif

%find_lang %{elfname}

%clean
rm -rf $RPM_BUILD_ROOT

%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi

%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

%files -f %{elfname}.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog INSTALL README
%doc COPYING
%{_bindir}/osdlyrics
%{_datadir}/applications/osdlyrics.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/osdlyrics/

%changelog