Initial revision

This commit is contained in:
Jaroslav Kysela 1998-08-13 15:42:56 +00:00
commit 5abac67626
47 changed files with 7915 additions and 0 deletions

10
utils/Makefile Normal file
View file

@ -0,0 +1,10 @@
#
# Makefile for ALSA library
# Copyright (c) 1994-98 by Jaroslav Kysela <perex@jcu.cz>
#
include ../Makefile.conf
clean:
rm -f core .depend *.o *.orig *~

77
utils/alsa-lib.spec Normal file
View file

@ -0,0 +1,77 @@
%define ver 0.0.9
%define rel 1
%define prefix /
Summary: Advanced Linux Sound Architecture (ALSA) - Library
Name: alsa-lib
Version: %ver
Release: %rel
Copyright: GPL
Group: System/Libraries
Source: ftp://alsa.jcu.cz/pub/lib/alsa-lib-%{ver}.tar.gz
BuildRoot: /tmp/alsa-lib-%{ver}
Packager: Helge Jensen <slog@slog.dk>
URL: http://alsa.jcu.cz
Docdir: %{prefix}/usr/doc
%description
Advanced Linux Sound Architecture (ALSA) - Library
Features
========
* general
- modularized architecture with support for 2.0 and latest 2.1 kernels
- support for versioned and exported symbols
- full proc filesystem support - /proc/sound
* ISA soundcards
- support for 128k ISA DMA buffer
* mixer
- new enhanced API for applications
- support for unlimited number of channels
- volume can be set in three ways (percentual (0-100), exact and decibel)
- support for mute (and hardware mute if hardware supports it)
- support for mixer events
- this allows two or more applications to be synchronized
* digital audio (PCM)
- new enhanced API for applications
- full real duplex support
- full duplex support for SoundBlaster 16/AWE soundcards
- digital audio data for playback and record should be read back using
proc filesystem
* OSS/Lite compatibility
- full mixer compatibity
- full PCM (/dev/dsp) compatibility
%changelog
* Mon May 28 1998 Helge Jensen <slog@slog.dk>
- Made SPEC file
%prep
%setup -n alsa-lib
%build
./configure --prefix=/usr
make
%install
mkdir -p $RPM_BUILD_ROOT/usr/include/sys
mkdir -p $RPM_BUILD_ROOT/usr/lib
make prefix="$RPM_BUILD_ROOT/usr" install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc doc/*.html
%doc doc/*.sgml
%doc doc/*.txt
%{prefix}/usr/include/sys/soundlib.h
%{prefix}/usr/lib/lib*

78
utils/alsa-lib.spec.in Normal file
View file

@ -0,0 +1,78 @@
%define ver @SND_LIB_VERSION@
%define rel 1
%define prefix /
Summary: Advanced Linux Sound Architecture (ALSA) - Library
Name: alsa-lib
Version: %ver
Release: %rel
Copyright: GPL
Group: System/Libraries
Source: ftp://alsa.jcu.cz/pub/lib/alsa-lib-%{ver}.tar.gz
BuildRoot: /tmp/alsa-lib-%{ver}
Packager: Helge Jensen <slog@slog.dk>
URL: http://alsa.jcu.cz
Docdir: %{prefix}/usr/doc
Requires: alsa-driver
%description
Advanced Linux Sound Architecture (ALSA) - Library
Features
========
* general
- modularized architecture with support for 2.0 and latest 2.1 kernels
- support for versioned and exported symbols
- full proc filesystem support - /proc/sound
* ISA soundcards
- support for 128k ISA DMA buffer
* mixer
- new enhanced API for applications
- support for unlimited number of channels
- volume can be set in three ways (percentual (0-100), exact and decibel)
- support for mute (and hardware mute if hardware supports it)
- support for mixer events
- this allows two or more applications to be synchronized
* digital audio (PCM)
- new enhanced API for applications
- full real duplex support
- full duplex support for SoundBlaster 16/AWE soundcards
- digital audio data for playback and record should be read back using
proc filesystem
* OSS/Lite compatibility
- full mixer compatibity
- full PCM (/dev/dsp) compatibility
%changelog
* Mon May 28 1998 Helge Jensen <slog@slog.dk>
- Made SPEC file
%prep
%setup -n alsa-lib
%build
./configure --prefix=/usr
make
%install
mkdir -p $RPM_BUILD_ROOT/usr/include/sys
mkdir -p $RPM_BUILD_ROOT/usr/lib
make prefix="$RPM_BUILD_ROOT/usr" install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc doc/*.html
%doc doc/*.sgml
%doc doc/*.txt
%{prefix}/usr/include/sys/soundlib.h
%{prefix}/usr/lib/lib*

35
utils/buildrpm Normal file
View file

@ -0,0 +1,35 @@
#!/bin/bash
source=.
version=`cat $source/../version`
package=$source/../../alsa-lib-$version.tar.gz
if [ ! -r $package ]; then
echo "Error: wrong package: $package"
exit 1
fi
make -C .. pack
cp -fv $package /usr/src/redhat/SOURCES
if [ ! -r $source/buildrpm ]; then
echo "Error: invalid directory: $source"
exit 1
fi
if [ ! -d /usr/src/redhat ]; then
echo "Error: /usr/src/redhat directory not found"
exit 1
fi
if [ ! -r $source/alsa-lib.spec ]; then
cd $source/..
./configure
cd utils
fi
cp -fv $source/alsa-lib.spec /usr/src/redhat/SPECS
cd /usr/src/redhat/SPECS
rpm -ba alsa-lib.spec
cd /usr/src/redhat