fix in spec file (#159046)
This commit is contained in:
parent
a16842b071
commit
e2eb90a497
@ -5,7 +5,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_app}
|
Version: %{version_main}%{?version_app}
|
||||||
Release: 1
|
Release: 2
|
||||||
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
|
||||||
@ -65,9 +65,6 @@ ln -snf ../../%{_lib}/libasound.so.2 %{buildroot}%{_libdir}/libasound.so
|
|||||||
|
|
||||||
mv %{buildroot}/etc/aclocal %{buildroot}%{_datadir}
|
mv %{buildroot}/etc/aclocal %{buildroot}%{_datadir}
|
||||||
|
|
||||||
rm %{buildroot}%{_sysconfdir}/alsa/pcm/dmix.conf
|
|
||||||
rm %{buildroot}%{_sysconfdir}/alsa/pcm/dsnoop.conf
|
|
||||||
|
|
||||||
# install ainit binaries
|
# install ainit binaries
|
||||||
install -m 755 ainit/ainit %{buildroot}%{_bindir}
|
install -m 755 ainit/ainit %{buildroot}%{_bindir}
|
||||||
|
|
||||||
@ -93,6 +90,12 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
/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
|
if [ -f /var/run/console/console.lock ]; then
|
||||||
/usr/bin/ainit `cat /var/run/console/console.lock` start
|
/usr/bin/ainit `cat /var/run/console/console.lock` start
|
||||||
fi
|
fi
|
||||||
@ -100,7 +103,8 @@ fi
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ -f /var/run/console/console.lock ]; then
|
# 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
|
/usr/bin/ainit `cat /var/run/console/console.lock` stop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -118,12 +122,12 @@ ln -snf ../../etc/alsa %{_datadir}/alsa
|
|||||||
%config %{_sysconfdir}/alsa/alsa.conf
|
%config %{_sysconfdir}/alsa/alsa.conf
|
||||||
%{_bindir}/ainit
|
%{_bindir}/ainit
|
||||||
%{_mandir}/man?/*
|
%{_mandir}/man?/*
|
||||||
#%config(noreplace) %{_sysconfdir}/alsa/pcm/dmix.conf
|
|
||||||
#%config(noreplace) %{_sysconfdir}/alsa/pcm/dsnoop.conf
|
|
||||||
%config %{_sysconfdir}/alsa/pcm/dmix.template
|
%config %{_sysconfdir}/alsa/pcm/dmix.template
|
||||||
%config %{_sysconfdir}/alsa/pcm/dsnoop.template
|
%config %{_sysconfdir}/alsa/pcm/dsnoop.template
|
||||||
%ghost %{_sysconfdir}/alsa/pcm/dmix.conf.lock
|
%ghost %{_sysconfdir}/alsa/pcm/dmix.conf.lock
|
||||||
%ghost %{_sysconfdir}/alsa/pcm/dsnoop.conf.lock
|
%ghost %{_sysconfdir}/alsa/pcm/dsnoop.conf.lock
|
||||||
|
%ghost %{_sysconfdir}/alsa/pcm/dmix.conf
|
||||||
|
%ghost %{_sysconfdir}/alsa/pcm/dsnoop.conf
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
@ -137,6 +141,9 @@ ln -snf ../../etc/alsa %{_datadir}/alsa
|
|||||||
%{_datadir}/aclocal/alsa.m4
|
%{_datadir}/aclocal/alsa.m4
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 2 2005 Martin Stransky <stransky@redhat.com> 1.0.10rf-2
|
||||||
|
- fix in spec file (#159046)
|
||||||
|
|
||||||
* Thu Nov 24 2005 Martin Stransky <stransky@redhat.com> 1.0.10rf-1
|
* Thu Nov 24 2005 Martin Stransky <stransky@redhat.com> 1.0.10rf-1
|
||||||
- new upstream version
|
- new upstream version
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user