Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37661485
en ru br
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 

Name: libalsa
Version: 1.0.9
Release: alt7

Summary: Advanced Linux Sound Architecture (ALSA) library
License: LGPL 2.1+
Group: System/Libraries

%define srcname alsa-lib
%define pkgdocdir %_docdir/%name-%version

Url: http://www.alsa-project.org
Source: ftp://ftp.alsa-project.org/pub/lib/%srcname-%version.tar.bz2
Patch0: alsa-lib-0.9.8-alt-fpic.patch
Patch1: alsa-lib-1.0.1-shm-leak.patch
Patch2: libalsa-1.0.9-cvs-name-clash.patch
Patch3: libalsa-1.0.9-cvs-c++compat.patch

Obsoletes: libalsa2 < 0.9.4
Provides: libalsa2 = %version

BuildPreReq: kernel-headers-std

%add_optflags %optflags_shared

# Automatically added by buildreq on Thu Dec 16 2004 (-bi)

BuildRequires: common-licenses doxygen gcc-c++ hostinfo libstdc++-devel python-base python-modules-compiler python-modules-encodings rpm-build-python

%if_disabled static
%define configure_args ""
%else
BuildRequires: glibc-devel-static
%define configure_args --enable-static
%endif

%define modutils_oss /etc/modutils.d/oss
%define modules_conf /etc/modules.conf

Summary(ru_RU.KOI8-R): âÉÂÌÉÏÔÅËÉ ALSA
Summary(uk_UA.KOI8-U): â¦Â̦ÏÔÅËÉ ALSA

%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.KOI8-R
üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÂÉÂÌÉÏÔÅËÉ ALSA (Advanced Linux Sound Architecture,
ÓÏ×ÒÅÍÅÎÎÁÑ Ú×ÕËÏ×ÁÑ ÐÏÄÓÉÓÔÅÍÁ ÄÌÑ Linux)

%description -l uk_UA.KOI8-U
ãÅÊ ÐÁËÕÎÏË Í¦ÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ALSA (Advanced Linux Sound Architecture,
ÓÕÞÁÓÎÁ Ú×ÕËÏ×Á ЦÄÓÉÓÔÅÍÁ ÄÌÑ Linux)

%package -n aserver
Summary: Sound server for alsa
Summary(ru_RU.KOI8-R): ú×ÕËÏ×ÏÊ ÓÅÒ×ÅÒ ÄÌÑ ALSA
Summary(uk_UA.KOI8-U): ú×ÕËÏ×ÉÊ ÓÅÒ×ÅÒ ÄÌÑ ALSA
License: GPL
Group: Sound
Requires: %name = %version-%release

%description -n aserver
Sound server for ALSA

%description -l ru_RU.KOI8-R
ú×ÕËÏ×ÏÊ ÓÅÒ×ÅÒ ÄÌÑ ALSA

%description -l uk_UA.KOI8-U
ú×ÕËÏ×ÉÊ ÓÅÒ×ÅÒ ÄÌÑ ALSA

%package devel
Summary: Development environment for Advanced Linux Sound Architecture (ALSA)
License: GPL
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.

%if_disabled static
%else
%package devel-static
Summary: Static libraries for Advanced Linux Sound Architecture (ALSA)
License: GPL
Group: Development/C
Requires: %name-devel = %version-%release

%description devel-static
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 package contains static library to build statically linked ALSA
applications.
%endif

%package docs
Summary: Documentation for Advanced Linux Sound Architecture (ALSA)
License: GPL
Group: Development/Other
# FIXME: Documentation -- see #7182

%description docs
Advanced Linux Sound Architecture (ALSA) Developer Documentation
(C library reference)

%prep
%setup -q -n %srcname-%version
%patch2 -p1 -b .name-clash
#patch3 -p1 -b .c++compat

%build
#configure %{subst_enable static}
%configure %configure_args
%make_build
%make doc

%install
%makeinstall

%__install -d -m755 %buildroot%pkgdocdir
%__install -p -m644 NOTES MEMORY-LEAK TODO %buildroot%pkgdocdir/
%__cp -a doc/doxygen/html %buildroot%pkgdocdir/

%__mkdir_p %buildroot%sysconfdir/modutils.d/
%__cat << __EOF__ >> %buildroot%sysconfdir/modutils.d/alsa-modindex
#### AC97 software sound chips
## spare index=0 for a real soundcard (if any)
#options snd_intel8x0 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

## 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

#post-install snd-seq-oss sfxload /etc/midi/8mbgmsfx.sf2

## -- or -- install awesfx and uncomment this:

#post-install snd-seq-oss sfxload /etc/midi/gu11-rom.sf2
__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 ||:
} ||:
}
%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
%_libdir/*.so.*
%_datadir/alsa

%files devel
%_libdir/*.so
%_libdir/pkgconfig/alsa.pc
%_includedir/sys/*
%_includedir/alsa
%_datadir/aclocal/*
%_bindir/alsalisp

%if_disabled static
%else
%files devel-static
#_libdir/*.la
%_libdir/*.a
%endif

%files docs
%dir %pkgdocdir
%pkgdocdir/[D-Z]*
%pkgdocdir/html

%files -n aserver
%_bindir/aserver

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009