ALT Linux repositórios
S: | 1.2.8-alt1 |
D: | 1.0.16-alt1 |
5.0: | 1.0.18-alt2 |
4.1: | 1.0.15-alt1 |
4.0: | 1.0.14a-alt2.1 |
+updates: | 1.0.14a-alt2.1 |
3.0: | 1.0.9-alt7 |
Group :: Sistema/Bibliotecas
RPM: libalsa
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define srcname alsa-lib
%define pkgdocdir %_docdir/%name-%version
%define modutils_oss /etc/modutils.d/oss
%define modules_conf /etc/modules.conf
Name: libalsa
Version: 1.0.18
Release: alt2
Summary: Advanced Linux Sound Architecture (ALSA) library
Summary(ru_RU.UTF-8): Библиотеки ALSA
Summary(uk_UA.UTF-8): Бібліотеки ALSA
License: LGPL 2.1+
Group: System/Libraries
Url: http://www.alsa-project.org
Obsoletes: libalsa2 < 0.9.4
Provides: libalsa2 = %version
Source: %name-%version.tar
Patch: %name-%version-%release.patch
# Automatically added by buildreq on Sun Jan 27 2008
BuildRequires: doxygen gcc-c++
%description
Advanced Linux Sound Architecture (ALSA) libs. 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.
%description -l ru_RU.UTF-8
Этот пакет содержит библиотеки ALSA (Advanced Linux Sound Architecture,
современная звуковая подсистема для Linux)
%description -l uk_UA.UTF-8
Цей пакунок містить бібліотеки ALSA (Advanced Linux Sound Architecture,
сучасна звукова підсистема для Linux)
%package -n aserver
Summary: Sound server for alsa
Summary(ru_RU.UTF-8): Звуковой сервер для ALSA
Summary(uk_UA.UTF-8): Звуковий сервер для ALSA
Group: Sound
Requires: %name = %version-%release
%description -n aserver
Sound server for ALSA
%description -n aserver -l ru_RU.UTF-8
Звуковой сервер для ALSA
%description -n aserver -l uk_UA.UTF-8
Звуковий сервер для ALSA
%package devel
Summary: Development environment for Advanced Linux Sound Architecture (ALSA)
Group: Development/C
Requires: %name = %version-%release
Provides: libalsa2-devel = %version
Obsoletes: libalsa2-devel
%description devel
Advanced Linux Sound Architecture (ALSA) libs. 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.
This is the development environment to compile ALSA applications.
%package docs
Summary: Documentation for Advanced Linux Sound Architecture (ALSA)
Group: Development/Documentation
BuildArch: noarch
%description docs
Advanced Linux Sound Architecture (ALSA) Developer Documentation
(C library reference)
%prep
%setup -q
%patch -p1
%build
%autoreconf
%configure \
--with-configdir=%_datadir/alsa \
--disable-static
%make_build
%make doc
%install
%make DESTDIR=%buildroot install
find %buildroot%_libdir/alsa-lib -name \*.la -delete
install -pD -pm644 asound.conf.sonicvibes_2 %buildroot%_datadir/alsa/cards/SonicVibes.conf
mkdir -p %buildroot%pkgdocdir
install -p -m644 NOTES MEMORY-LEAK TODO %buildroot%pkgdocdir/
cp -a doc/doxygen/html %buildroot%pkgdocdir/
mkdir -p %buildroot%_sysconfdir/modprobe.d
cat << __EOF__ >> %buildroot%_sysconfdir/modprobe.d/alsa-modindex
#### AC97 software sound chips
## spare index=0 for a real soundcard (if any)
#options snd_intel8x0 index=2
#options snd_hda_intel index=2
#options snd_via82xx index=2
#options snd-bt87x index=3
#options snd_intel8x0m index=4
#options snd-atiixp-modem index=4
#options snd-via82xx-modem index=4
options snd_pcsp index=10
## if you experience noisy sound with VIA AC97 audio,
## try to uncomment this and play with 4/2/1:
#options snd-via82xx dxs_support=4
#### MIDI
#alias midi snd-seq-oss
## bank autoload; get from driver CD and uncomment these lines
#install snd-seq-oss /sbin/modprobe --ignore-install snd-seq-oss && { /bin/sfxload /etc/midi/8mbgmsfx.sf2 > /dev/null 2>&1 || :; }
## -- or -- install awesfx and uncomment this:
#install snd-seq-oss /sbin/modprobe --ignore-install snd-seq-oss && { /bin/sfxload /etc/midi/gu11-rom.sf2 > /dev/null 2>&1 || :; }
__EOF__
%pre
[ ! -f %modutils_oss ] || {
grep -q "^above snd-" %modules_conf && {
echo '*** %modutils_oss found:'
echo '*** commenting out "above/below snd-*-oss" lines in %modules_conf'
subst 's/^above snd-.* snd-.*-oss$/#&/' %modules_conf ||:
} ||:
}
%files
%_libdir/*.so.*
%dir %_libdir/alsa-lib
%_libdir/alsa-lib/smixer
%config(noreplace) %_sysconfdir/modprobe.d/alsa-modindex
%_datadir/alsa
%files devel
%_includedir/sys/*
%_includedir/alsa
%_libdir/*.so
%_libdir/pkgconfig/alsa.pc
%_datadir/aclocal/*
%files docs
%dir %pkgdocdir
%pkgdocdir/[D-Z]*
%pkgdocdir/html
%files -n aserver
%_bindir/aserver
%changelog
…
Todas as alterações você pod ver aqui
%define pkgdocdir %_docdir/%name-%version
%define modutils_oss /etc/modutils.d/oss
%define modules_conf /etc/modules.conf
Name: libalsa
Version: 1.0.18
Release: alt2
Summary: Advanced Linux Sound Architecture (ALSA) library
Summary(ru_RU.UTF-8): Библиотеки ALSA
Summary(uk_UA.UTF-8): Бібліотеки ALSA
License: LGPL 2.1+
Group: System/Libraries
Url: http://www.alsa-project.org
Obsoletes: libalsa2 < 0.9.4
Provides: libalsa2 = %version
Source: %name-%version.tar
Patch: %name-%version-%release.patch
# Automatically added by buildreq on Sun Jan 27 2008
BuildRequires: doxygen gcc-c++
%description
Advanced Linux Sound Architecture (ALSA) libs. 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.
%description -l ru_RU.UTF-8
Этот пакет содержит библиотеки ALSA (Advanced Linux Sound Architecture,
современная звуковая подсистема для Linux)
%description -l uk_UA.UTF-8
Цей пакунок містить бібліотеки ALSA (Advanced Linux Sound Architecture,
сучасна звукова підсистема для Linux)
%package -n aserver
Summary: Sound server for alsa
Summary(ru_RU.UTF-8): Звуковой сервер для ALSA
Summary(uk_UA.UTF-8): Звуковий сервер для ALSA
Group: Sound
Requires: %name = %version-%release
%description -n aserver
Sound server for ALSA
%description -n aserver -l ru_RU.UTF-8
Звуковой сервер для ALSA
%description -n aserver -l uk_UA.UTF-8
Звуковий сервер для ALSA
%package devel
Summary: Development environment for Advanced Linux Sound Architecture (ALSA)
Group: Development/C
Requires: %name = %version-%release
Provides: libalsa2-devel = %version
Obsoletes: libalsa2-devel
%description devel
Advanced Linux Sound Architecture (ALSA) libs. 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.
This is the development environment to compile ALSA applications.
%package docs
Summary: Documentation for Advanced Linux Sound Architecture (ALSA)
Group: Development/Documentation
BuildArch: noarch
%description docs
Advanced Linux Sound Architecture (ALSA) Developer Documentation
(C library reference)
%prep
%setup -q
%patch -p1
%build
%autoreconf
%configure \
--with-configdir=%_datadir/alsa \
--disable-static
%make_build
%make doc
%install
%make DESTDIR=%buildroot install
find %buildroot%_libdir/alsa-lib -name \*.la -delete
install -pD -pm644 asound.conf.sonicvibes_2 %buildroot%_datadir/alsa/cards/SonicVibes.conf
mkdir -p %buildroot%pkgdocdir
install -p -m644 NOTES MEMORY-LEAK TODO %buildroot%pkgdocdir/
cp -a doc/doxygen/html %buildroot%pkgdocdir/
mkdir -p %buildroot%_sysconfdir/modprobe.d
cat << __EOF__ >> %buildroot%_sysconfdir/modprobe.d/alsa-modindex
#### AC97 software sound chips
## spare index=0 for a real soundcard (if any)
#options snd_intel8x0 index=2
#options snd_hda_intel index=2
#options snd_via82xx index=2
#options snd-bt87x index=3
#options snd_intel8x0m index=4
#options snd-atiixp-modem index=4
#options snd-via82xx-modem index=4
options snd_pcsp index=10
## if you experience noisy sound with VIA AC97 audio,
## try to uncomment this and play with 4/2/1:
#options snd-via82xx dxs_support=4
#### MIDI
#alias midi snd-seq-oss
## bank autoload; get from driver CD and uncomment these lines
#install snd-seq-oss /sbin/modprobe --ignore-install snd-seq-oss && { /bin/sfxload /etc/midi/8mbgmsfx.sf2 > /dev/null 2>&1 || :; }
## -- or -- install awesfx and uncomment this:
#install snd-seq-oss /sbin/modprobe --ignore-install snd-seq-oss && { /bin/sfxload /etc/midi/gu11-rom.sf2 > /dev/null 2>&1 || :; }
__EOF__
%pre
[ ! -f %modutils_oss ] || {
grep -q "^above snd-" %modules_conf && {
echo '*** %modutils_oss found:'
echo '*** commenting out "above/below snd-*-oss" lines in %modules_conf'
subst 's/^above snd-.* snd-.*-oss$/#&/' %modules_conf ||:
} ||:
}
%files
%_libdir/*.so.*
%dir %_libdir/alsa-lib
%_libdir/alsa-lib/smixer
%config(noreplace) %_sysconfdir/modprobe.d/alsa-modindex
%_datadir/alsa
%files devel
%_includedir/sys/*
%_includedir/alsa
%_libdir/*.so
%_libdir/pkgconfig/alsa.pc
%_datadir/aclocal/*
%files docs
%dir %pkgdocdir
%pkgdocdir/[D-Z]*
%pkgdocdir/html
%files -n aserver
%_bindir/aserver
%changelog
…
Todas as alterações você pod ver aqui