File xfce4-mixer.spec of Package xfce4-mixer

#
# spec file for package xfce4-mixer (Version 4.4.3)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           xfce4-mixer
%define xfce_version 4.3
BuildRequires:  dbus-1-devel gtk2-devel libxml2-devel perl-XML-Parser
BuildRequires:  xfce4-panel-devel  >= %xfce_version
BuildRequires:  libxfce4mcs-devel >= %xfce_version
BuildRequires:  xfce-mcs-manager-devel >= %xfce_version
BuildRequires:  alsa-devel
BuildRequires:  intltool update-desktop-files
Summary:        A volume control application for the Xfce Desktop Environment
Version:        4.4.3
Release:        1
License:        GPL v2 or later
Url:            http://www.xfce.org/projects/xfce4-mixer
Source:         xfce4-mixer-%{version}.tar.bz2
Source1:        rpmlintrc
Group:          System/GUI/XFCE
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description 
This is xfce4-mixer, a volume control application for the Xfce Desktop
Environment. This software package contains both a volume control
plugin for the Xfce Panel and a standalone mixer application.



%package devel
License:        GPL v2 or later
Requires:       xfce4-mixer = %{version}
Requires:       libxfce4util-devel >= 4.3
Requires:       libpng-devel xorg-x11-devel zlib-devel libexpat-devel freetype2-devel fontconfig-devel cairo-devel pango-devel atk-devel gtk2-devel alsa-devel
Summary:        A volume control application for the Xfce Desktop Environment
Group:          System/GUI/XFCE
AutoReqProv:    on
PreReq:         %install_info_prereq

%description devel
This is xfce4-mixer, a volume control application for the Xfce Desktop
Environment. This software package contains both a volume control
plugin for the Xfce Panel and a standalone mixer application.



%prep
%setup -q 

%build
%configure \
    --with-sound=alsa \
    --disable-static
# do not use parallel make, causes trouble
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %name
%suse_update_desktop_file -i xfce-mixer-settings Settings DesktopSettings
export LIBEXECDIR=%{_libexecdir}
sed -i "s#/usr/local/libexec#$LIBEXECDIR#g" \
        $RPM_BUILD_ROOT/%{_datadir}/xfce4/panel-plugins/xfce4-mixer.desktop

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc README ChangeLog AUTHORS NEWS NOTES TODO
%{_bindir}/xfce4-mixer
%{_libdir}/xfce4/modules/*.so.*
%{_libdir}/xfce4/mcs-plugins/sound_settings.so
%{_libexecdir}/xfce4/panel-plugins/xfce4-mixer-plugin
%dir %{_libdir}/xfce4/modules
%{_datadir}/applications/xfce-mixer-settings.desktop
%{_datadir}/icons/hicolor/48x48/apps/xfce4-mixer.png
%{_datadir}/xfce4/panel-plugins/xfce4-mixer.desktop

%files devel
%defattr(-,root,root)
%{_libdir}/xfce4/*/*.*a
%{_libdir}/xfce4/modules/*.so

%changelog
* Wed Nov 05 2008 prusnak@suse.cz
- updated to 4.4.3
  * translations polish
* Mon Dec 03 2007 bwalle@suse.de
- update to 4.4.2
  o Fix parallel build of xfce4-mixer (Bug #2892).
  o Updated and new translations
* Sun Oct 21 2007 bwalle@suse.de
- replaced group 'System/GUI/Other' by 'System/GUI/XFCE'
* Wed Jun 20 2007 prusnak@suse.cz
- added alsa-devel to Requires of -devel subpackage
- use %%find_lang
* Wed May 02 2007 prusnak@suse.cz
- changed expat to libexpat-devel in Requires
* Wed Apr 25 2007 prusnak@suse.cz
- do not use parallel make, causes trouble
* Tue Apr 17 2007 prusnak@suse.cz
- disabled build of static libraries
* Tue Apr 10 2007 bwalle@suse.de
- update to 4.4.1
  o Follow the HIG specifications on the buttons.
  o Add test_vc to Makefile.am.
  o Many translation updates.
* Mon Jan 29 2007 pnemec@suse.cz
- package merged from BuildService
* Sun Jan 21 2007 bwalle@suse.de
- upgraded to 4.4.0
openSUSE Build Service is sponsored by