]> git.pld-linux.org Git - packages/esound.git/commitdiff
- postun oss/alsa were evil (removed symlink after upgrade to new release
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 3 Sep 2003 19:17:39 +0000 (19:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  with the same version) - removed, marked libesd.so.%%{version} as %ghost -
  let rpm remove it on esound upgrade/uninstall
- swapped alsa/oss build to make libesd.la without -lasound (so it won't
  be propagated through whole GNOME - shared libesd-alsa.so* is properly
  linked, so no further -lasound is needed)

Changed files:
    esound.spec -> 1.93

esound.spec

index 782e7a81cd3e2fb9664b76e748c28a9ceaf59a3d..18d01e1c51ab491313ddfa1ed9537a665b0d9a4b 100644 (file)
@@ -2,9 +2,7 @@
 # Conditional build:
 %bcond_without alsa            # support OSS, not ALSA
 %bcond_without libwrap                 # without hosts.{access,deny} support
-
-%define _noautoprov libesd.so.0
-
+#
 Summary:       The Enlightened Sound Daemon
 Summary(es):   El servidor de sonido del Enlightenment
 Summary(fr):   Démon audio de Enlightment
@@ -35,6 +33,8 @@ Provides:     libesd.so.0
 Obsoletes:     libesound0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _noautoprov     libesd.so.0
+
 %description
 The Enlightened Sound Daemon is a server process that allows multiple
 applications to share a single sound card.
@@ -142,7 +142,8 @@ usem o servidor de som EsounD.
 Summary:       EsounD OSS driver
 Summary(pl):   Sterownik OSS dla EsoundD
 Group:         Libraries
-Requires(post,postun): /sbin/ldconfig
+Requires(post):        /sbin/ldconfig
+Requires(post):        fileutils
 Requires:      %{name} = %{epoch}:%{version}
 Provides:      esound-driver
 Conflicts:     esound-alsa
@@ -157,7 +158,8 @@ Sterownik OSS dla EsoundD.
 Summary:       EsounD ALSA driver
 Summary(pl):   Sterownik ALSA dla EsoundD
 Group:         Libraries
-Requires(post,postun): /sbin/ldconfig
+Requires(post):        /sbin/ldconfig
+Requires(post):        fileutils
 Requires:      %{name} = %{epoch}:%{version}
 Provides:      esound-driver
 Conflicts:     esound-oss
@@ -179,23 +181,24 @@ rm -f missing acinclude.m4
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure \
-       --enable-ipv6 \
-       --with%{!?with_libwrap:out}-libwrap \
-       --disable-alsa
-%{__make}
-cp -f .libs/libesd.so.%{version} libesd-oss.so.%{version}
 
 %if %{with alsa}
-%{__make} clean
 %configure \
        --enable-ipv6 \
        --with%{!?with_libwrap:out}-libwrap \
        --enable-alsa
 %{__make}
 cp -f .libs/libesd.so.%{version} libesd-alsa.so.%{version}
+%{__make} clean
 %endif
 
+%configure \
+       --enable-ipv6 \
+       --with%{!?with_libwrap:out}-libwrap \
+       --disable-alsa
+%{__make}
+cp -f .libs/libesd.so.%{version} libesd-oss.so.%{version}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -204,8 +207,8 @@ rm -rf $RPM_BUILD_ROOT
        m4datadir=%{_aclocaldir} \
        pkgconfigdir=%{_pkgconfigdir}
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/libesd.so.*.*
 install libesd-*.so.*.* $RPM_BUILD_ROOT%{_libdir}
+> $RPM_BUILD_ROOT%{_libdir}/libesd.so.%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -217,23 +220,17 @@ rm -rf $RPM_BUILD_ROOT
 ln -fs libesd-oss.so.%{version} %{_libdir}/libesd.so.%{version}
 /sbin/ldconfig
 
-%postun oss
-rm -f %{_libdir}/libesd.so.%{version}
-/sbin/ldconfig
+%postun oss -p /sbin/ldconfig
 
 %post alsa
 ln -fs libesd-alsa.so.%{version} %{_libdir}/libesd.so.%{version}
 /sbin/ldconfig
 
-%postun alsa
-rm -f %{_libdir}/libesd.so.%{version}
-/sbin/ldconfig
-
+%postun alsa -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 %doc README TIPS docs/html
-
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esd.conf
 %attr(755,root,root) %{_bindir}/esd
 %attr(755,root,root) %{_bindir}/esdcat
@@ -246,6 +243,7 @@ rm -f %{_libdir}/libesd.so.%{version}
 %attr(755,root,root) %{_bindir}/esdrec
 %attr(755,root,root) %{_bindir}/esdsample
 %attr(755,root,root) %{_libdir}/libesddsp.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libesd.so.%{version}
 %{_mandir}/man1/esd.1*
 %{_mandir}/man1/esd[a-z]*.1*
 
This page took 0.070036 seconds and 4 git commands to generate.