File xfce4-mixer.spec of Package xfce4-mixer

#
# spec file for package xfce4-mixer
#
# 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/
#


%define panel_version 4.7.0

Name:           xfce4-mixer
Version:        4.8.0
Release:        1
License:        GPLv2+
Summary:        Volume control application for the Xfce desktop environment
Url:            http://www.xfce.org/projects/xfce4-mixer
Group:          Productivity/Multimedia/Sound/Mixers
Source:         xfce4-mixer-%{version}.tar.bz2
Source100:      %{name}-rpmlintrc
BuildRequires:  intltool
BuildRequires:  perl-XML-Parser
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libxfce4panel-1.0)
BuildRequires:  pkgconfig(libxfce4util-1.0)
BuildRequires:  pkgconfig(libxfce4ui-1)
BuildRequires:  pkgconfig(libxfconf-0)
BuildRequires:  pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires:  xfce4-dev-tools
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Suggests:       xfce4-panel-plugin-mixer

%description
xfce4-mixer is a volume control application for the Xfce desktop
environment.

%package -n xfce4-panel-plugin-mixer
License:        GPLv2+
Group:          Productivity/Multimedia/Sound/Mixers
Summary:        Volume control plugin for the Xfce panel
Requires:       %{name} = %{version}
Requires:       xfce4-panel >= %panel_version

%description -n xfce4-panel-plugin-mixer
xfce4-mixer is a volume control application for the Xfce desktop
environment.

This package contains the Xfce panel plugin.

%prep
%setup -q

%build
xdt-autogen
%configure \
    --disable-static
make %{?_smp_mflags}

%install
%make_install
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}
%suse_update_desktop_file -i xfce4-mixer Settings DesktopSettings

%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 NEWS README TODO
%{_bindir}/xfce4-mixer
%{_datadir}/applications/*.desktop
%dir %{_datadir}/xfce4-mixer
%{_datadir}/xfce4-mixer/icons
%{_datadir}/pixmaps/xfce4-mixer/

%files -n xfce4-panel-plugin-mixer
%defattr(-,root,root)
%{_libexecdir}/xfce4/panel-plugins/xfce4-mixer-plugin
%{_datadir}/xfce4/panel-plugins/xfce4-mixer-plugin.desktop

%changelog
openSUSE Build Service is sponsored by