Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > f453e3e5c26fc008977cb43a672203de > files > 5

wmsmixer-0.5.1-2mdk.src.rpm

Summary:  	Dockapp sound mixer
Name:		wmsmixer
Version:	0.5.1
Release:	2mdk
License:	GPL
Group:		Graphical desktop/WindowMaker
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}-icons.tar.bz2
Patch0:		%name.patch.bz2
Patch1:		%name-Imakefile.patch.bz2
URL:		http://www.hibernaculum.net/wmsmixer.html
Requires:	XFree86-libs, xpm
BuildRequires:	XFree86-devel, xpm-devel
BuildRoot:	%{_tmppath}/%{name}-buildroot

%description
 This is a hack to wmmixer which makes some changes to the display and adds a
 few new features, most notably scrollwheel support. The main changes between
 this and wmmixer are:
  o Added scrollwheel support. If your scrollwheel is mapped to buttons 4 and
    5, using it will increase/decrease the volume of the current channel.
  o Removed all the recsrc code.
  o Changed the display arrangement slightly, and replaced the recsrc button
    with a text display. This normally shows the volume of the current channel.
  o Added the setname configuration option, which allows you to give a
    different channel name (4 chars max) to the built in one if you wish.
  o Clicking on the channel icon will briefly display the text name for the
    channel. This is also displayed when you switch channels.
  o Mono channels have one wide bar rather than two thinner ones.
  o Changed some icons, and added a few new ones. Several icons are still to be
  o created. Any submissions are always welcome.

%prep
rm -rf %buildroot

%setup -q -n %{name}-%{version}

%patch0 -p1
%patch1 -p1

%build
xmkmf
CFLAGS="$RPM_OPT_FLAGS" make %name

%install
[ -d %buildroot ] && rm -rf %buildroot

install -m 755 -d %buildroot%{_miconsdir}
install -m 755 -d %buildroot%{_iconsdir}
install -m 755 -d %buildroot%{_liconsdir}
tar xOjf %SOURCE1 %{name}-16x16.png > %buildroot%{_miconsdir}/%{name}.png
tar xOjf %SOURCE1 %{name}-32x32.png > %buildroot%{_iconsdir}/%{name}.png
tar xOjf %SOURCE1 %{name}-48x48.png > %buildroot%{_liconsdir}/%{name}.png

mkdir -p %buildroot%_bindir/
install -m 755 %{name} %buildroot%{_bindir}/

install -m 755 -d %buildroot%{_menudir}
cat << EOF > %buildroot%{_menudir}/%{name}
?package(%{name}):command="%{_bindir}/%{name}" icon="%{name}.png"\\
                 needs="X11" section="Multimedia/Sound" title="WmsMixer"\\
                 longtitle="Dockapp sound mixer"
EOF

%clean
rm -rf %buildroot

%post
%update_menus

%postun
%clean_menus

%files
%defattr (-,root,root)
%doc COPYING README README.wmmixer  home.wmsmixer
%{_bindir}/%{name}
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_menudir}/%{name}

%changelog
* Wed Jun 30 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.5.1-2mdk
- rebuild with new g++

* Mon Apr 14 2003 Han Boetes <han@linux-mandrake.com> 0.5.1-1mdk
- Bump.

* Thu Sep 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.5-3mdk
- rebuild

* Wed Jul 03 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.5-2mdk
- patch0: fix conflicting values in wmsixer.c
- patch1: CCLINK=c++ in Imakefile (solve gxx_personality pb)

* Mon Feb 11 2002 HA Quôc-Viêt <viet@mandrakesoft.com> 0.5-1mdk
- Initial release.