new upstream

This commit is contained in:
Martin Stransky 2006-07-20 13:15:15 +00:00
parent 4857d0c0f9
commit 536610c90a
3 changed files with 13 additions and 69 deletions

View File

@ -7,3 +7,4 @@ ainit-0.6.tar.gz
alsa-lib-1.0.10.tar.bz2 alsa-lib-1.0.10.tar.bz2
alsa-lib-1.0.11rc2.tar.bz2 alsa-lib-1.0.11rc2.tar.bz2
ainit-0.7.tar.gz ainit-0.7.tar.gz
alsa-lib-1.0.12rc1.tar.bz2

View File

@ -1,18 +1,14 @@
%define prever rc2 %define prever rc1
%define version_main 1.0.11 %define version_main 1.0.12
%define version_ainit 0.7
Summary: The Advanced Linux Sound Architecture (ALSA) library. Summary: The Advanced Linux Sound Architecture (ALSA) library.
Name: alsa-lib Name: alsa-lib
Version: %{version_main} Version: %{version_main}
Release: 6.rc2 Release: 1.rc1
License: LGPL License: LGPL
Group: System Environment/Libraries Group: System Environment/Libraries
Source: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version_main}%{?prever}.tar.bz2 Source: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version_main}%{?prever}.tar.bz2
Source1: ainit-%{version_ainit}.tar.gz Patch: alsa-lib-1.0.12rc1-config.patch
Patch0: alsa-lib-1.0.10-ainit-2.patch
Patch1: alsa-lib-1.0.11-group.patch
Patch2: alsa-lib-1.0.11-ainit-start.patch
URL: http://www.alsa-project.org/ URL: http://www.alsa-project.org/
BuildRoot: %{_tmppath}/%{name}-%{version_main}-root BuildRoot: %{_tmppath}/%{name}-%{version_main}-root
BuildRequires: doxygen BuildRequires: doxygen
@ -39,10 +35,8 @@ This package includes the ALSA development libraries for developing
against the ALSA libraries and interfaces. against the ALSA libraries and interfaces.
%prep %prep
%setup -q -n %{name}-%{version_main}%{?prever} -a 1 %setup -q -n %{name}-%{version_main}%{?prever}
%patch0 -p1 -b .ainit %patch -p1 -b .config
%patch1 -p1 -b .group
%patch2 -p1 -b .start
%build %build
%configure \ %configure \
@ -52,11 +46,6 @@ against the ALSA libraries and interfaces.
make %{?_smp_mflags} make %{?_smp_mflags}
make doc make doc
# Compile ainit
cd ainit
./compile
cd ..
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install
@ -69,73 +58,24 @@ ln -snf ../../%{_lib}/libasound.so.2 %{buildroot}%{_libdir}/libasound.so
mv %{buildroot}/etc/aclocal %{buildroot}%{_datadir} mv %{buildroot}/etc/aclocal %{buildroot}%{_datadir}
# install ainit binaries
install -m 755 ainit/ainit %{buildroot}%{_bindir}
# install ainit config files
install -m 644 ainit/config/ainit.conf %{buildroot}%{_sysconfdir}/alsa/ainit.conf
install -m 644 ainit/config/dmix.template %{buildroot}%{_sysconfdir}/alsa/pcm/dmix.template
install -m 644 ainit/config/dsnoop.template %{buildroot}%{_sysconfdir}/alsa/pcm/dsnoop.template
install -m 644 ainit/config/dmix.conf.lock %{buildroot}%{_sysconfdir}/alsa/pcm/dmix.conf.lock
install -m 644 ainit/config/dsnoop.conf.lock %{buildroot}%{_sysconfdir}/alsa/pcm/dsnoop.conf.lock
cp %{buildroot}%{_sysconfdir}/alsa/pcm/dmix.conf %{buildroot}%{_sysconfdir}/alsa/pcm/dmix.conf.back
cp %{buildroot}%{_sysconfdir}/alsa/pcm/dsnoop.conf %{buildroot}%{_sysconfdir}/alsa/pcm/dsnoop.conf.back
# install ainit man pages
mkdir -p %{buildroot}%{_mandir}/man8
install -m 644 ainit/doc/ainit.8 %{buildroot}%{_mandir}/man8/ainit.8
mkdir -p %{buildroot}%{_mandir}/man5
install -m 644 ainit/doc/ainit.conf.5 %{buildroot}%{_mandir}/man5/ainit.conf.5
install -m 644 ainit/doc/ainit.template.5 %{buildroot}%{_mandir}/man5/ainit.template.5
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%post %post -p /sbin/ldconfig
/sbin/ldconfig
# Upgrade - remove the current buffers
if [ $1 = 2 ] && [ -f /var/run/console/console.lock ]; then
/usr/bin/ainit `cat /var/run/console/console.lock` stop
fi
# Create the new ones
if [ -f /var/run/console/console.lock ]; then
/usr/bin/ainit `cat /var/run/console/console.lock` start
fi
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%preun
# Only if we're removing the package
if [ $1 = 0 ] && [ -f /var/run/console/console.lock ]; then
/usr/bin/ainit `cat /var/run/console/console.lock` stop
fi
%triggerpostun -- alsa-lib < 1.0.6-2 %triggerpostun -- alsa-lib < 1.0.6-2
ln -snf ../../etc/alsa %{_datadir}/alsa ln -snf ../../etc/alsa %{_datadir}/alsa
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%doc COPYING ChangeLog TODO doc/asoundrc.txt %doc COPYING ChangeLog TODO doc/asoundrc.txt
%{_bindir}/alsalisp
%{_bindir}/aserver %{_bindir}/aserver
/%{_lib}/libasound.so.* /%{_lib}/libasound.so.*
%{_libdir}/alsa-lib/smixer/* %{_libdir}/alsa-lib/smixer/*
%{_sysconfdir}/alsa %{_sysconfdir}/alsa
%config %{_sysconfdir}/alsa/alsa.conf %config %{_sysconfdir}/alsa/alsa.conf
%{_bindir}/ainit
%{_mandir}/man?/*
%config %{_sysconfdir}/alsa/pcm/dmix.template
%config %{_sysconfdir}/alsa/pcm/dsnoop.template
%ghost %{_sysconfdir}/alsa/pcm/dmix.conf.lock
%ghost %{_sysconfdir}/alsa/pcm/dsnoop.conf.lock
%config %{_sysconfdir}/alsa/pcm/dmix.conf
%config %{_sysconfdir}/alsa/pcm/dsnoop.conf
%config %{_sysconfdir}/alsa/ainit.conf
%files devel %files devel
%defattr(-, root, root) %defattr(-, root, root)
@ -149,6 +89,10 @@ ln -snf ../../etc/alsa %{_datadir}/alsa
%{_datadir}/aclocal/alsa.m4 %{_datadir}/aclocal/alsa.m4
%changelog %changelog
* Thu Jul 20 2006 Martin Stransky <stransky@redhat.com> 1.0.12-1.rc1
- new upstream
- removed ainit (no longer needed in the new upstream)
* Wed Jul 19 2006 Jesse Keating <jkeating@redhat.com> - 1.0.11-6.rc2 * Wed Jul 19 2006 Jesse Keating <jkeating@redhat.com> - 1.0.11-6.rc2
- fix release for upgrade path - fix release for upgrade path

View File

@ -1,2 +1 @@
4e73229d7f88a6610993470011d39ee6 alsa-lib-1.0.11rc2.tar.bz2 8a3f6d218a9285426556fb3006054725 alsa-lib-1.0.12rc1.tar.bz2
062cf16b02de99ddea47a76884d7fe3d ainit-0.7.tar.gz