File xfmpc.spec of Package xfmpc

#
# spec file for package xfmpc
#
# Copyright (c) 2011 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:           xfmpc
Version:        0.2.2
Release:        0
License:        GPLv2+
Summary:        Lightweight MPD client for Xfce
Url:            http://goodies.xfce.org/projects/applications/xfmpc/
Group:          Productivity/Multimedia/Sound/Players
Source:         http://goodies.xfce.org/releases/xfmpc/%{name}-%{version}.tar.bz2
Source1:        xfmpc.png
BuildRequires:  intltool
BuildRequires:  perl-XML-Parser
BuildRequires:  pkgconfig(libmpd)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libxfce4ui-1)
BuildRequires:  pkgconfig(libxfce4util-1.0)
BuildRequires:  update-desktop-files
Suggests:       mpd
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Xfmpc is a lightweight Music Player Daemon (MPD) client application for the
Xfce desktop environment.

%prep
%setup -q
sed -i 's:^Icon=stock_volume$:Icon=xfmpc:' xfmpc.desktop.in

%build
%configure
make %{?_smp_mflags} V=1

%install
%make_install
%suse_update_desktop_file %{name}
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} >= 1140

%post
%desktop_database_post

%postun
%desktop_database_postun
%endif

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog* IDEAS NEWS README THANKS
%{_bindir}/xfmpc
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by