SPECS: mpg123.spec - added NAS support - rel 0.3

shadzik shadzik at pld-linux.org
Mon Oct 23 15:01:17 CEST 2006


Author: shadzik                      Date: Mon Oct 23 13:01:17 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added NAS support
- rel 0.3

---- Files affected:
SPECS:
   mpg123.spec (1.64 -> 1.65) 

---- Diffs:

================================================================
Index: SPECS/mpg123.spec
diff -u SPECS/mpg123.spec:1.64 SPECS/mpg123.spec:1.65
--- SPECS/mpg123.spec:1.64	Mon Oct 23 04:50:05 2006
+++ SPECS/mpg123.spec	Mon Oct 23 15:01:08 2006
@@ -5,6 +5,7 @@
 %bcond_without	esd	# disable esound supprot
 %bcond_without	alsa	# disable alsa support
 %bcond_without	jack	# disable jack support
+%bcond_without	nas	# diasble nas support
 %bcond_with	sdl	# disable sdl support
 #
 Summary:	MPEG audio player
@@ -15,16 +16,18 @@
 Summary(uk):	đŇĎÇŇÁ×ÁŢ MPEG ÁŐÄŚĎĆÁĘĚŚ×
 Name:		mpg123
 Version:	0.61
-Release:	0.2
+Release:	0.3
 License:	freely distributable for non-commercial use, GPL (mpglib)
 Group:		Applications/Sound
 Source0:	http://dl.sourceforge.net/mpg123/%{name}-%{version}.tar.bz2
 # Source0-md5:	13b505ec04e5afb10399c89f24e99f0e
+Patch0:		%{name}-audio_nas.patch
 URL:		http://www.mpg123.de/
 %{?with_sdl:BuildRequires:	SDL_sound-devel}
 %{?with_alsa:BuildRequires:	alsa-lib-devel}
 %{?with_esd:BuildRequires:	esound-devel}
 %{?with_jack:BuildRequires:	jack-audio-connection-kit-devel}
+%{?with_nas:BuildRequires:	nas-devel}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -139,6 +142,31 @@
 
 Wersja z wyjściem na Jack.
 
+%package nas
+Summary:        mpg123 for NAS
+Summary(pl):    mpg123 dla NAS
+Group:          Applications/Sound
+
+%description nas
+Mpg123 is a fast, free(for non-commercial use) and portable MPEG audio
+player for Unix. It supports MPEG 1.0/2.0 layers 1, 2 and 3 (those
+famous "MP3" files). For full CD quality playback (44 kHz, 16 bit,
+stereo) a Pentium, SPARCstation10, DEC Alpha or similar CPU is
+required. Mono and/or reduced quality playback (22 kHz or 11 kHz) is
+even possible on 486 CPUs.
+
+Version for NAS output.
+
+%description nas -l pl
+Mpg123 jest szybkim, darmowym (do celów niekomercyjnych) oraz
+uniwersalnym dekoderem plików dźwiękowych MPEG dla systemów
+uniksowych. Obsługuje standard MPEG 1.0/2.0 warstwy 1, 2 oraz 3
+(słynne "MP3"). Do uzyskania pełnej jakości CD wymagany jest silny
+procesor (Pentium, SPARCstation10, DEC Alpha lub podobny). Niższą
+jakość (22 lub 11 kHz) można uzyskać już na procesorach 486.
+
+Wersja z wyjściem na NAS.
+
 %package sdl
 Summary:	mpg123 for SDL
 Summary(pl):	mpg123 dla SDL
@@ -166,6 +194,7 @@
 
 %prep
 %setup -q
+%patch0 -p0
 
 %build
 %configure \
@@ -201,6 +230,15 @@
 mv -f src/mpg123 src/mpg123-jack
 %endif
 
+%if %{with nas}
+%{__make} clean
+%configure \
+	%{?with_nas:--with-audio=nas} \
+	%{?with_mmx:--with-cpu=mmx}
+%{__make}
+mv -f src/mpg123 src/mpg123-nas
+%endif
+
 %if %{with sdl}
 %{__make} clean
 %configure \
@@ -228,6 +266,10 @@
 install src/%{name}-jack	$RPM_BUILD_ROOT%{_bindir}/
 %endif
 
+%if %{with nas}
+install src/%{name}-nas		$RPM_BUILD_ROOT%{_bindir}/
+%endif
+
 %if %{with sdl}
 install src/%{name}-sdl		$RPM_BUILD_ROOT%{_bindir}/
 %endif
@@ -264,6 +306,12 @@
 %attr(755,root,root) %{_bindir}/%{name}-jack
 %endif
 
+%if %{with nas}
+%files nas
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}-nas
+%endif
+
 %if %{with sdl}
 %files sdl
 %defattr(644,root,root,755)
@@ -276,6 +324,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.65  2006/10/23 13:01:08  shadzik
+- added NAS support
+- rel 0.3
+
 Revision 1.64  2006/10/23 02:50:05  shadzik
 - fix OSS support
 - rel 0.2
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mpg123.spec?r1=1.64&r2=1.65&f=u



More information about the pld-cvs-commit mailing list