File lxmusic.spec of Package lxmusic
#
# spec file for package lxmusic
#
# Copyright (c) 2012 SUSE LINUX Products 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: lxmusic
Version: 0.4.5
Release: 0
Summary: Lightweight Audio Player
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Players
Url: http://www.lxde.org/
Source0: %name-%version.tar.gz
Patch2: %name-0.4.4-libnotify0.7.0.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: docbook-utils
BuildRequires: fdupes
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libnotify-devel
BuildRequires: pkg-config
BuildRequires: update-desktop-files
BuildRequires: xmms2-devel >= 0.7
Requires: xmms2
Recommends: %name-lang
%description
LXMusic is just a lightweight audio player,
that uses xmms2 as back-end.
%lang_package
%prep
%setup -q
%if %suse_version > 1140
%patch2 -p1
%endif
%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
%configure
%__make %{?jobs:-j%jobs}
%install
%makeinstall
# remove not available languages
%__rm -rf %{buildroot}/%{_datadir}/locale/{frp,es_VE,ur_PK}
%find_lang %{name}
%suse_update_desktop_file %name
%fdupes -s %{buildroot}
%clean
%__rm -rf $RPM_BUILD_ROOT
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root,0755)
%doc COPYING
%_bindir/%name
%_datadir/applications/%name.desktop
%dir %_datadir/lxmusic
%_datadir/lxmusic/*.ui.glade
%_datadir/pixmaps/lxmusic.png
%files lang -f %name.lang
%changelog