X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=esound.spec;h=584ddf954e2917b0e6566e9f03a14898d53d103e;hb=8e4c112c743c0504c24262a09762c9f476cf003b;hp=1990c0a4e4c349e135e48ee66040bac7170a6a03;hpb=ce2e40f9b0f5a88e7ba279dfbb7e48cced9f7982;p=packages%2Fesound.git diff --git a/esound.spec b/esound.spec index 1990c0a..584ddf9 100644 --- a/esound.spec +++ b/esound.spec @@ -1,6 +1,5 @@ # # Conditional build: -%bcond_without alsa # don't build ALSA version %bcond_without libwrap # without hosts.{access,deny} support # Summary: The Enlightened Sound Daemon @@ -11,34 +10,30 @@ Summary(pt_BR): O servidor de som do Enlightenment Summary(ru): óÅÒ×ÅÒ, ÐÏÚ×ÏÌÑÀÝÉÊ ÍÉËÛÉÒÏ×ÁÔØ ×Ù×ÏÄ ÎÁ Ú×ÕËÏ×ÏÅ ÕÓÔÒÏÊÓÔ×Ï Summary(uk): óÅÒ×ÅÒ, ÝÏ ÄÏÚ×ÏÌѤ ͦËÛÉÒÕ×ÁÔÉ ×É×¦Ä ÎÁ Ú×ÕËÏ×ÉÊ ÐÒÉÓÔÒ¦Ê Name: esound -Version: 0.2.35 -Release: 2 +Version: 0.2.36 +Release: 5 Epoch: 1 License: GPL Group: Daemons -Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.2/%{name}-%{version}.tar.bz2 -# Source0-md5: 1566344f80a8909b5e6e4d6b6520c2c1 +Source0: http://ftp.gnome.org/pub/GNOME/sources/esound/0.2/%{name}-%{version}.tar.bz2 +# Source0-md5: 3facb5aa0115cc1c31771b9ad454ae76 Patch0: %{name}-am.patch Patch1: %{name}-etc_dir.patch +Patch2: %{name}-auto_spawn.patch URL: http://www.tux.org/~ricdude/EsounD.html -%{?with_alsa:BuildRequires: alsa-lib-devel >= 1.0.0-pre1} +BuildRequires: alsa-lib-devel >= 1.0.0 BuildRequires: audiofile-devel >= 1:0.2.0 BuildRequires: autoconf BuildRequires: automake +BuildRequires: docbook-dtd31-sgml +BuildRequires: docbook-utils BuildRequires: libtool %{?with_libwrap:BuildRequires: libwrap-devel} BuildRequires: pkgconfig -Requires: esound-driver -%ifarch amd64 ia64 ppc64 sparc64 -Provides: libesd.so.0()(64bit) -%else -Provides: libesd.so.0 -%endif -Obsoletes: libesound0 +BuildRequires: rpmbuild(macros) >= 1.213 +Requires: %{name}-libs = %{epoch}:%{version}-%{release} 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. @@ -68,6 +63,20 @@ EsounD ( EsounD (ÄÅÍÏÎ, ÏÂÓÌÕÇÏ×ÕÀÞÉÊ Ú×ÕË, Ú ÐÒÏÅËÔÕ Enlightenment) ÍÏÖŠͦËÛÉÒÕ×ÁÔÉ Ë¦ÌØËÁ Ú×ÕËÏ×ÉÈ ÐÏÔÏË¦× × ÏÄÉÎ ÐÒÉÓÔÒ¦Ê × ÒÅÁÌØÎÏÍÕ ÞÁÓ¦. +%package libs +Summary: EsounD libraries +Summary(pl): Biblioteki EsounD +Group: Libraries +Obsoletes: esound-alsa +Obsoletes: esound-oss +Obsoletes: libesound0 + +%description libs +EsounD libraries. + +%description libs -l pl +Biblioteki EsounD. + %package devel Summary: Header files etc. to develop EsounD applications Summary(es): Archivos de inclusión, etc para desarrollar aplicaciones EsounD @@ -77,8 +86,8 @@ Summary(pt_BR): Arquivos de inclus Summary(ru): âÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔËÉ ÄÌÑ esound Summary(uk): â¦Â̦ÏÔÅËÉ ÒÏÚÒÏÂËÉ ÄÌÑ esound Group: Development/Libraries -Requires: %{name} = %{epoch}:%{version}-%{release} -%{?with_alsa:Requires: alsa-lib-devel >= 1.0.0-pre1} +Requires: %{name}-libs = %{epoch}:%{version}-%{release} +Requires: alsa-lib-devel >= 1.0.0-pre1 Requires: audiofile-devel Obsoletes: libesound0-devel @@ -141,68 +150,25 @@ usem o servidor de som EsounD. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÉËÌÁÄÎÉÈ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ esound. -%package oss -Summary: EsounD OSS driver -Summary(pl): Sterownik OSS dla EsoundD -Group: Libraries -Requires(post): /sbin/ldconfig -Requires(post): fileutils -Requires: %{name} = %{epoch}:%{version}-%{release} -Provides: %{name}-driver -Obsoletes: %{name}-alsa - -%description oss -EsounD OSS driver. - -%description oss -l pl -Sterownik OSS dla EsoundD. - -%package alsa -Summary: EsounD ALSA driver -Summary(pl): Sterownik ALSA dla EsoundD -Group: Libraries -Requires(post): /sbin/ldconfig -Requires(post): fileutils -Requires: %{name} = %{epoch}:%{version}-%{release} -Provides: %{name}-driver -Obsoletes: %{name}-oss - -%description alsa -EsounD ALSA driver. - -%description alsa -l pl -Sterownik ALSA dla EsoundD. - %prep %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p0 %build -rm -f acinclude.m4 %{__libtoolize} -%{__aclocal} +%{__aclocal} -I m4 %{__autoconf} %{__automake} -%if %{with alsa} %configure \ --enable-ipv6 \ --with%{!?with_libwrap:out}-libwrap \ --enable-alsa \ + --enable-oss \ --enable-local-sound %{__make} -cp -f .libs/libesd.so.%{version} libesd-alsa.so.%{version} -%{__make} clean -%endif - -%configure \ - --enable-ipv6 \ - --with%{!?with_libwrap:out}-libwrap \ - --disable-alsa \ - --enable-local-sound -%{__make} -cp -f .libs/libesd.so.%{version} libesd-oss.so.%{version} %install rm -rf $RPM_BUILD_ROOT @@ -212,26 +178,11 @@ rm -rf $RPM_BUILD_ROOT m4datadir=%{_aclocaldir} \ pkgconfigdir=%{_pkgconfigdir} -install libesd-*.so.*.* $RPM_BUILD_ROOT%{_libdir} -> $RPM_BUILD_ROOT%{_libdir}/libesd.so.%{version} - %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig - -%post oss -ln -fs libesd-oss.so.%{version} %{_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 -p /sbin/ldconfig +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig %files %defattr(644,root,root,755) @@ -247,11 +198,13 @@ ln -fs libesd-alsa.so.%{version} %{_libdir}/libesd.so.%{version} %attr(755,root,root) %{_bindir}/esdplay %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* +%files libs +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libesd*.so.*.* + %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/esd-config @@ -265,13 +218,3 @@ ln -fs libesd-alsa.so.%{version} %{_libdir}/libesd.so.%{version} %files static %defattr(644,root,root,755) %{_libdir}/lib*.a - -%files oss -%defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/libesd-oss.so.%{version} - -%if %{with alsa} -%files alsa -%defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/libesd-alsa.so.%{version} -%endif