Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37757410
en ru br
ALT Linux repos
S:1.2.5-alt2
D:1.0.16-alt1
5.0: 1.0.18-alt1
4.1: 1.0.15-alt1
4.0: 1.0.14-alt1.1
3.0: 1.0.9-alt1

Other repositories
Upstream:1.0.16rc1

Group :: System/Kernel and hardware
RPM: alsa-tools

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: alsa-tools
Version: 1.0.14
Release: alt1.1

%define beta %nil
%define ver %{version}%beta
%define _unpackaged_files_terminate_build 1

Summary: Advanced Linux Sound Architecture (ALSA) tools
License: GPL
Group: System/Kernel and hardware
Packager: Michael Shigorin <mike at altlinux.org>

Url: http://www.alsa-project.org/
Source: ftp://ftp.alsa-project.org/pub/utils/%name-%ver.tar.bz2

Obsoletes: alsa2-tools < 0.9.4
Provides: alsa2-tools = %version
Requires: libalsa >= %version

# Automatically added by buildreq on Tue Oct 17 2006 (-bi)

BuildRequires: gcc-c++ imake libXext-devel libXft-devel libXt-devel libalsa-devel libfltk-devel libgtk+2-devel xorg-cf-files

# actually needs a better fix...

BuildRequires: kernel-headers-alsa
BuildRequires: libalsa-devel >= %version
BuildRequires: gtk+-devel

# someone remind me how to cheat SourceIfExists clones

Provides: /etc/default/ld10k1

# due to %_bindir/as10k1

Conflicts: emu10k1-tools

Summary(ru_RU.KOI8-R): Инструменты ALSA
Summary(uk_UA.KOI8-U): ╤нструменти ALSA

%description
Advanced Linux Sound Architecture (ALSA) tools. Modularized architecture with
support for a large range of ISA and PCI cards. Fully compatible with OSS/Lite
(kernel sound drivers), but contains many enhanced features.

You may install this package if you really want use this low-level utils with
some audio cards.

%description -l ru_RU.KOI8-R
Пакет содержит инструменты ALSA (современной звуковой подсистемы Linux),
предназначенные для низкоуровневой работы с некоторыми звуковыми картами
(на чипах Envy24, EMU10K1).

%description -l uk_UA.KOI8-U
Пакунок м╕стить ╕нструменти ALSA (сучасно╖ звуково╖ п╕дсистеми Linux), що
застосовуються для низькор╕внево╖ роботи ╕з деякими звуковими картками
(на ч╕пах Envy24, EMU10K1).

%package -n ld10k1
Summary: EMU10K1 patch loader/linker
Group: System/Kernel and hardware

%description -n ld10k1
EMU10K1 patch loader/linker, see also as10k1

%package -n liblo10k1
Summary: lo10k1 library
Group: System/Libraries

%description -n liblo10k1
lo10k1 library

%package -n liblo10k1-devel
Summary: lo10k1 library, development part
Group: Development/C

%description -n liblo10k1-devel
lo10k1 library, development part

%prep
%setup -q -n %name-%ver

# disable this ugly beast until someone finds the heart to fix it

rm qlo10k1/configure

subst 's/-Werror //' `find ac3dec -name 'Makefile*'`
subst 's/echomixer_LDFLAGS/echomixer_LDADD/' echomixer/Makefile*
subst 's/envy24control_LDFLAGS/envy24control_LDADD/' envy24control/Makefile*
subst 's/rmedigicontrol_LDFLAGS/rmedigicontrol_LDADD/' rmedigicontrol/Makefile*
subst 's,/etc/hotplug/usb,\$(sysconfdir)/hotplug/usb,' usx2yloader/Makefile*

find -name 'configure*' | while read path; do
subst 's,/lib/modules/[^/]*/build/include,%_includedir/linux,g' $path
subst 's,LDFLAGS=\(.*\)\$LDFLAGS\(.*\(LIBS\|-l\).*\),LIBS=\1$LIBS\2,' $path
done

%build
# will be needed for qlo10k1
#unset QTDIR || : ; . /etc/profile.d/qt3dir.sh ; PATH=$PATH:$QTDIR/bin
export CFLAGS="$CFLAGS -I%_includedir/linux/include -I%_includedir/sound"
%define confflags --with-soundbase=%_includedir/

find -name configure | sort | while read path; do
pushd `dirname $path`
%configure %confflags
# break package build if compilation fails
%make_build || exit 1
popd
done

make -C as10k1/examples

%install
find -name configure | while read path; do
pushd `dirname $path`
%makeinstall \
PIXMAP_DIR=%buildroot%_datadir/pixmaps \
DESKTOP_DIR=%buildroot%_datadir/applications
popd
done

mkdir -p %buildroot{%_datadir/emu10k1,%_menudir}
cp -f as10k1/examples/*.asm %buildroot%_datadir/emu10k1/

# Prepare documentation

for file in AUTHORS ChangeLog NEWS README TODO; do
find -name "$file" | cut -c3- | while read fpath; do
if [ -s "$fpath" ]; then
mv "$fpath" "$file".`dirname $fpath | tr / .`
fi
done
done

mkdir -p %buildroot%_man1dir/
install -m644 `find -maxdepth 2 -name '*.1'` %buildroot%_man1dir/

cat <<EOF > echomixer.menu
?package(echomixer): needs="X11" section="Configuration/Hardware" \
title="Echoaudio Mixer" longtitle="Mixer controls for Echoaudio" \
command="%_bindir/echomixer" icon="echomixer.png"
EOF

cat <<EOF > envy24control.menu
?package(envy24control): needs="X11" section="Configuration/Hardware" \
title="Envy24 Control" longtitle="GUI for Envy24-based soundcards" \
command="%_bindir/envy24control" icon="envy24control.png"
EOF

cat <<EOF > hdspconf.menu
?package(hdspconf): needs="X11" section="Configuration/Hardware" \
title="HDSP Configuration" longtitle="Hammerfall HDSP Configuration" \
command="%_bindir/hdspconf" icon="hdspconf.png"
EOF

install -p -m644 echomixer.menu %buildroot%_menudir/echomixer
install -p -m644 envy24control.menu %buildroot%_menudir/envy24control
install -p -m644 hdspconf.menu %buildroot%_menudir/hdspconf

%post
%update_menus

%postun
%clean_menus

%files
%_bindir/*
%_man1dir/*
%_datadir/emu10k1/
%_datadir/sounds/opl3/
%_datadir/pixmaps/*.png
%_datadir/applications/*.desktop
%_sysconfdir/hotplug/usb/*
%_menudir/*
%doc AUTHORS* ChangeLog* NEWS* README* TODO*
%exclude %_bindir/lo10k1

%files -n ld10k1
%_bindir/lo10k1
%_sbindir/*
%_datadir/ld10k1/

%files -n liblo10k1
%_libdir/liblo10k1.so.*

%files -n liblo10k1-devel
%_libdir/liblo10k1.so
%_includedir/lo10k1/
%_datadir/aclocal/ld10k1.m4

# FIXME:

# - qlo10k1 build
# - desktop files
# - patch ld10k1/setup/init_live.in, remove fake Provides:
# - ld10k1 initscript? (Debian)

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin