File plasmoid-alsa-volume.spec of Package plasmoid-alsa-volume

#
# spec file for package plasmoid-alsa-volume
#
# Copyright (c) 2014 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: 		plasmoid-alsa-volume
Version: 	0.51.2
Release: 	0
Summary: 	ALSA Volume Control plasmoid
License: 	GPL-2.0+
Url: 		https://github.com/F1ash/kde-plasma-alsa-volume
Source0: 	%{name}-%{version}.tar.bz2
Patch0: 	%{name}.patch
BuildArch: 	noarch

BuildRequires: kdebase4-workspace-devel

Requires: kdebase4-workspace
Requires: python-pyalsaaudio
Requires: update-desktop-files


%description
%{name}
ALSA Volume Control plasmoid.
This plasmoid is very convenient, because it allows to each device
be reflected on the panel (or workspace) for control.
It can to detect the multiple audiodevices (audiocards) in system.

%prep
%setup -q
%patch0 -p1

%build
if [ -x %{_bindir}/plasma-dataengine-depextractor ] ; then
  plasma-dataengine-depextractor .
fi
make %{?_smp_mflags}

%install
%{make_install}
%suse_update_desktop_file -n $RPM_BUILD_ROOT/usr/share/kde4/services/plasma-applet-alsa-volume.desktop
#%%kde_post_install
#%%find_lang plasma_applet_events


%files
%defattr(644,root,root,755)
%doc README COPYING Changelog
%{_kde4_datadir}/kde4/services/plasma-applet-alsa-volume.desktop
%{_kde4_appsdir}/plasma/plasmoids
%{_kde4_appsdir}/plasma/plasmoids/plasma-applet-alsa-volume


%changelog
openSUSE Build Service is sponsored by