]> git.pld-linux.org Git - packages/alsaplayer.git/blobdiff - alsaplayer.spec
- new
[packages/alsaplayer.git] / alsaplayer.spec
index eae937b019bcc3eaf05d06b61f1ccef4bf835f30..28603dac02dea9cbb49edecdaf75e2729ea43426 100644 (file)
@@ -1,32 +1,38 @@
 # TODO:
-# - fix description
-# ** mpg123 plugin are removed, so alsaplayer play mp3 only via mad plugin
-# ** add info about new subpackages (scopes, interface-gtk and others)
-# - add output-jack plugin (requires jackit.sf.net)
-# - add input-flac plugin (requires flac.sf.net)
-# - think about static libalsaplayer.a (add --enable-static to %%configure and make subpackage)
+# - check descriptions
 # - add/check translations
-Summary:       Alsaplayer - MP2/MP3/WAV/CD player
-Summary(pl):   Alsaplayer - odtwarzacz MP2/MP3/WAV/CD
+Summary:       Alsaplayer - CD/FLAC/MOD/MP3/OGG/WAV player
+Summary(pl):   Alsaplayer - odtwarzacz CD/FLAC/MOD/MP3/OGG/WAV
 Name:          alsaplayer
-Version:       0.99.74
-Release:       1
+Version:       0.99.75
+Release:       0.4
 License:       GPL
 Group:         X11/Applications/Sound
 Source0:       ftp://ftp.alsa-project.org/pub/people/andy/%{name}-%{version}.tar.bz2
-Patch1:                %{name}-docs.patch
-BuildRequires: alsa-lib-devel
-BuildRequires: audiofile-devel
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: esound-devel
-BuildRequires: gtk+-devel
-BuildRequires: libmikmod-devel
-BuildRequires: libtool
-BuildRequires: libvorbis-devel >= 1:1.0
-BuildRequires: mad-devel
-BuildRequires: nas-devel
-BuildRequires: OpenGL-devel
+# Source0-md5: 353b57058e05aa5f0c01f93fc049c650
+Source1:       %{name}.desktop
+Patch0:                %{name}-docs.patch
+Patch1:                %{name}-gcc33.patch
+URL:           http://www.alsaplayer.org/
+BuildRequires:  OpenGL-devel
+BuildRequires:  alsa-lib-devel
+BuildRequires:  audiofile-devel
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  esound-devel
+BuildRequires:  flac-devel
+BuildRequires:  gtk+-devel
+BuildRequires: id3lib-devel
+BuildRequires:  jack-audio-connection-kit-devel >= 0.69.1
+BuildRequires:  libmikmod-devel
+BuildRequires:  libsndfile-devel
+BuildRequires: libstdc++-devel
+BuildRequires:  libtool
+BuildRequires:  libvorbis-devel
+BuildRequires:  mad-devel
+BuildRequires:  nas-devel
+BuildRequires:  xosd-devel
+Requires(post): /sbin/ldconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _noautoreqdep   libGL.so.1 libGLU.so.1
@@ -45,7 +51,8 @@ Input addons:
  - Also plays files mapped by audiofs (CDDA)
  - MAD MPEG audio
  - Module support (mikmod) (subpcakage)
-
+ - FLAC support
 Output addons:
  - ALSA. Best supported of course :) (subpackage)
  - OSS. Kernel native sound drivers
@@ -53,6 +60,7 @@ Output addons:
  - SGI. SGI audio library driver
  - ESD. Enlightened sound daemon support (subpackage)
  - NAS. Network Audio System (subpakcage)
+ - low latency JACK output
  - null :-)
 
 Visual scopes:
@@ -62,7 +70,7 @@ Visual scopes:
  - Spacescope
  - FFTscope
  - FFTscope II
- - More being developed...
+ - Spectrum GL 
 
 General features:
  - Full speed (pitch) control, positive *and* negative! (First Linux
@@ -72,13 +80,12 @@ General features:
  - Multi-threaded design for efficient/skip free playback (RT)
  - GUI Interface based on gtk+
  - NOGUI operation for shell script usage
+ - On-screen-display based on xosd
  - Plug-in core architecture
  - Low latency mode, as low as 5ms when scheduled RT
  - Effects stream
  - Software based volume/pan control
  - Accurate scope/audio syncing using ALSA features
- - Portable (well, we'll see about that :)
- - Open source(tm)
 
 %description -l pl
 AlsaPlayer to nowy rodzaj odtwarzacza PCM. Jest wielow±tkowy i próbuje
@@ -92,6 +99,7 @@ Wej
  - odtwarzanie plików podmapowanych przez audiofs (CDDA)
  - obs³uga MAD - MPEG Audio
  - obs³uga modu³ów (mikmod) (w podpakiecie)
+ - obs³ug bezstratnej kompresji d¼wiêku FLAC
 
 Wyj¶cie:
  - OSS - natywne sterowniki z j±dra
@@ -100,13 +108,15 @@ Wyj
  - SGI - biblioteka sterowników d¼wiêku SGI
  - ESD - obs³uga O¶wieconego demona d¼wiêku (w podpakiecie)
  - NAS - Sieciowego Systemu Audio (w podpakiecie)
+ - JACK - zestaw po³±czeñ d¼wiêku o ma³ych opó¼nieniach (w podpakiecie)
  - null :-)
 
 Wizualizacja:
  - Stereoskop
  - Monoskop
  - Wska¼nik poziomu d¼wiêku
- - inne, wkrótce wiêcej...
+ - Wska¼niki oparte o analizê FFT
+ - analizator spektrum sygna³u w oparciu o OpenGL
 
 Ogólne cechy:
  - Kontrola szybko¶ci (w obie strony)
@@ -115,10 +125,63 @@ Og
  - wielow±tkowo¶æ
  - interfejs graficzny bazuj±cy na gtk+
  - operacje bez GUI na potrzeby skryptów
+ - tryb Informacje-na-ekranie oparty o xosd
  - architektura wtyczek
+ - tryb "czasu rzeczywistego" daj±cy opó¼nienia rzêdu 5ms
  - programowa kontrola g³o¶no¶ci i balansu
  - synchronizacja d¼wiêku i wska¼ników przy u¿yciu mo¿liwo¶ci ALSA
 
+%package daemon
+Summary:       Deamon interface for Alsaplayer
+Summary(pl):   Interfejs demona alsaplayera
+Group:         X11/Applications/Sound
+Requires:      %{name} = %{version}
+
+%description daemon
+Deamon interface for Alsaplayer.
+
+%description daemon -l pl
+Interfejs demona alsaplayera.
+
+%package input-audiofile
+Summary:       Alsaplayer plugin for playing wave audio formats
+Summary(pl):   Wtyczka do alsaplayera do odtwarzania plików audio typu wave
+Group:         X11/Applications/Sound
+Requires:      %{name} = %{version}
+
+%description input-audiofile
+Alsaplayer plugin for playing wave audio formats (like AIFF, AIFC,
+WAVE, ...).
+
+%description input-audiofile -l pl
+Wtyczka do alsaplayera do odtwarzania plików audio typu wave (AIFF,
+AIFC, WAVE, ...)
+
+%package input-flac
+Summary:        Alsaplayer plugin for playing FLAC files
+Summary(pl):    Wtyczka do alsaplayera do odtwarzania plików FLAC
+Group:          X11/Applications/Sound
+Requires:       %{name} = %{version}
+
+%description input-flac
+Alsaplayer plugin for playing FLAC files.
+
+%description input-flac -l pl
+Wtyczka do alsaplayera do odtwarzania plików FLAC.
+
+
+%package input-mad
+Summary:       Alsaplayer plugin for playing MP3 files using MAD
+Summary(pl):   Wtyczka do alsaplayera do odtwarzania plików MP3 przy pomocy MAD
+Group:         X11/Applications/Sound
+Requires:      %{name} = %{version}
+
+%description input-mad
+Alsaplayer plugin for playing MP3 files using MAD.
+
+%description input-mad -l pl
+Wtyczka do alsaplayera do odtwarzania plików MP3 przy pomocy MAD.
+
 %package input-mikmod
 Summary:       Alsaplayer plugin for playing mod files
 Summary(pl):   Wtyczka do alsaplayera do odtwarzania plików mod
@@ -131,6 +194,20 @@ Alsaplayer plugin for playing mod files.
 %description input-mikmod -l pl
 Wtyczka do alsaplayera do odtwarzania plików mod.
 
+%package input-sndfile
+Summary:        Alsaplayer plugin for playing wave audio formats
+Summary(pl):    Wtyczka do alsaplayera do odtwarzania plików audio typu wave
+Group:          X11/Applications/Sound
+Requires:       %{name} = %{version}
+
+%description input-sndfile
+Alsaplayer plugin for playing wave audio formats (like AIFF, AIFC,
+WAVE, ...).
+
+%description input-sndfile -l pl
+Wtyczka do alsaplayera do odtwarzania plików audio typu wave (AIFF,
+AIFC, WAVE, ...)
+
 %package input-vorbis
 Summary:       Alsaplayer plugin for playing ogg/vorbis files
 Summary(pl):   Wtyczka do alsaplayera do odtwarzania plików ogg/vorbis
@@ -143,38 +220,43 @@ Alsaplayer plugin for playing ogg/vorbis files.
 %description input-vorbis -l pl
 Wtyczka do alsaplayera do odtwarzania plików ogg/vorbis.
 
-%package input-audiofile
-Summary:       Alsaplayer plugin for playing wave audio formats
-Summary(pl):   Wtyczka do alsaplayera do odtwarzania plików audio typu wave
+%package interface-gtk
+Summary:       GTK+ interface for Alsaplayer
+Summary(pl):   Interfejs GTK+ alsaplayera
 Group:         X11/Applications/Sound
 Requires:      %{name} = %{version}
 
-%description input-audiofile
-Alsaplayer plugin for playing wave audio formats (like AIFF, AIFC,
-WAVE, ...).
+%description interface-gtk
+GTK+ interface for Alsaplayer.
 
-%description input-audiofile -l pl
-Wtyczka do alsaplayera do odtwarzania plików audio typu wave (AIFF,
-AIFC, WAVE, ...)
+%description interface-gtk -l pl
+Interfejs GTK+ alsaplayera.
 
-%package input-mad
-Summary:       Alsaplayer plugin for playing MP3 files using MAD
-Summary(pl):   Wtyczka do alsaplayera do odtwarzania plików MP3 przy pomocy MAD
+%package interface-text
+Summary:       Text interface for Alsaplayer
+Summary(pl):   Interfejs tekstowy alsaplayera
 Group:         X11/Applications/Sound
 Requires:      %{name} = %{version}
 
-%description input-mad
-Alsaplayer plugin for playing MP3 files using MAD.
+%description interface-text
+Text interface for Alsaplayer.
 
-%description input-mad -l pl
-Wtyczka do alsaplayera do odtwarzania plików MP3 przy pomocy MAD.
+%description interface-text -l pl
+Interfejs tekstowy alsaplayera.
 
-%package output-alsa
-# this plugin come in two versions, for alsa 0.5.x and 0.9.x
-# but this libraries provide different .so number, so the
-# version built will work only with correct alsa-lib version,
-# what we do want :-)
+%package interface-xosd
+Summary:       xosd interface for Alsaplayer
+Summary(pl):   Interfejs xosd alsaplayera
+Group:         X11/Applications/Sound
+Requires:      %{name} = %{version}
+
+%description interface-xosd
+xosd interface for Alsaplayer.
+
+%description interface-xosd -l pl
+Interfejs xosd alsaplayera.
 
+%package output-alsa
 Summary:       Alsaplayer plugin for playing through alsa drivers
 Summary(pl):   Wtyczka do alsaplayera do odtwarzania przez sterowniki alsa
 Group:         X11/Applications/Sound
@@ -204,6 +286,18 @@ Summary(pl):       Wtyczka do alsaplayera do odtwarzania przez demona NAS
 Group:         X11/Applications/Sound
 Requires:      %{name} = %{version}
 
+%package output-jack
+Summary:        Alsaplayer plugin for playing sound through JACK
+Summary(pl):    Wtyczka do alsaplayera do odtwarzania d¼wiêku przez JACK
+Group:          X11/Applications/Sound
+Requires:       %{name} = %{version}
+
+%description output-jack
+Alsaplayer plugin for sound through JACK
+
+%description output-jack -l pl
+Wtyczka do alsaplayera do odtwarzania d¼wiêku przez JACK
+
 %description output-nas
 Alsaplayer plugin for playing sound through NAS (network audio system)
 daemon.
@@ -212,18 +306,6 @@ daemon.
 Wtyczka do alsaplayera do odtwarzania d¼wiêku przez demona NAS
 (network audio system).
 
-#%package reader-curl
-#Summary:      Alsaplayer plugin for reading files from network
-#Summary(pl):  Wtyczka do alsaplayera do odczytu plików z sieci
-#Group:                X11/Applications/Sound
-#Requires:     %{name} = %{version}
-#
-#%description reader-curl
-#Alsaplayer plugin for reading files from network.
-#
-#%description reader-curl -l pl
-#Wtyczka do alsaplayera do odczytu plików z sieci.
-
 %package scopes-gtk
 Summary:       Alsaplayer plugin for visualization
 Summary(pl):   Wtyczka do alsaplayera do wizualizacji
@@ -241,6 +323,7 @@ Summary:    Alsaplayer plugin for visualization using OpenGL
 Summary(pl):   Wtyczka do alsaplayera do wizualizacji z u¿yciem OpenGL
 Group:         X11/Applications/Multimedia
 Requires:      %{name} = %{version}
+Requires:      OpenGL
 
 %description scopes-opengl
 Alsaplayer plugin for visualization using OpenGL.
@@ -248,44 +331,33 @@ Alsaplayer plugin for visualization using OpenGL.
 %description scopes-opengl -l pl
 Wtyczka do alsaplayera do wizualizacji z u¿yciem OpenGL.
 
-%package interface-gtk
-Summary:       GTK+ interface for Alsaplayer
-Summary(pl):   Interfejs GTK+ alsaplayera
+%package devel
+Summary:       Alsaplayer header files
+Summary(pl):   Pliki nag³ówkowe Alsaplayera
 Group:         X11/Applications/Sound
 Requires:      %{name} = %{version}
 
-%description interface-gtk
-GTK+ interface for Alsaplayer.
+%description devel
+Alsaplayer header files.
 
-%description interface-gtk -l pl
-Interfejs GTK+ alsaplayera.
+%description devel
+Alsaplayer - pliki nag³ówkowe.
 
-%package lib
-Summary:       Library for remote control Alsaplayer
-Summary(pl):   Biblioteka do zdalnego sterowania alsaplayerem
+%package static
+Summary:       Alsaplayer static library
+Summary(pl):   Biblioteka statyczna Alsaplayera
 Group:         X11/Applications/Sound
 Requires:      %{name} = %{version}
 
-%description lib
-Library for remote control Alsaplayer.
-
-%description lib -l pl
-Biblioteka do zdalnego sterowania alsaplayerem.
+%description static
+Alsaplayer static library.
 
-%package devel
-Summary:       Library for remote control Alsaplayer - development files
-Summary(pl):   Biblioteka do zdalnego sterowania alsaplayerem - pliki nag³ówkowe
-Group:         X11/Applications/Sound
-Requires:      %{name}-lib = %{version}
-
-%description devel
-Library for remote control Alsaplayer - development files.
-
-%description devel
-Biblioteka do zdalnego sterowania alsaplayerem - pliki nag³ówkowe.
+%description static
+Biblioteka statyczna Alsaplayera.
 
 %prep
 %setup -q
+%patch0 -p1
 %patch1 -p1
 
 %build
@@ -301,12 +373,16 @@ export CPPFLAGS LDFLAGS
        --enable-alsa \
        --enable-audiofile \
        --enable-esd \
+       --enable-flac \
        --enable-gtk \
+       --enable-jack \
        --enable-mikmod \
        --enable-nas \
+       --enable-oggflac \
        --enable-oggvorbis \
        --enable-opengl \
        --enable-oss \
+       --enable-static \
 %ifarch sparc
        --enable-sparc
 %endif
@@ -315,114 +391,118 @@ export CPPFLAGS LDFLAGS
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_desktopdir}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
        pkgconfigdir=%{_pkgconfigdir}
 
+install -c %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+
+rm -f $RPM_BUILD_ROOT%{_pkglibdir}/input/*.{a,la}
+rm -f $RPM_BUILD_ROOT%{_pkglibdir}/interface/*.{a,la}
+rm -f $RPM_BUILD_ROOT%{_pkglibdir}/output/*.{a,la}
+rm -f $RPM_BUILD_ROOT%{_pkglibdir}/reader/*.{a,la}
+rm -f $RPM_BUILD_ROOT%{_pkglibdir}/scopes/*.{a,la}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS README ChangeLog
 %attr(755,root,root) %{_bindir}/alsaplayer
+%attr(755,root,root) %{_libdir}/libalsaplayer.so.0.0.2
 %dir %{_pkglibdir}
 %dir %{_pkglibdir}/input
+%dir %{_pkglibdir}/interface
+%dir %{_pkglibdir}/output
+%dir %{_pkglibdir}/reader
+%dir %{_pkglibdir}/scopes
 %attr(755,root,root) %{_pkglibdir}/input/libcdda.so
-%{_pkglibdir}/input/libcdda.la
 %attr(755,root,root) %{_pkglibdir}/input/libwav.so
-%{_pkglibdir}/input/libwav.la
-%dir %{_pkglibdir}/output
 %attr(755,root,root) %{_pkglibdir}/output/liboss_out.so
-%{_pkglibdir}/output/liboss_out.la
 %attr(755,root,root) %{_pkglibdir}/output/libnull_out.so
-%{_pkglibdir}/output/libnull_out.la
-%ifarch sparc
-%attr(755,root,root) %{_pkglibdir}/output/libsparc_out.so
-%{_pkglibdir}/output/libsparc_out.la
-%endif
-%dir %{_pkglibdir}/interface
-%attr(755,root,root) %{_pkglibdir}/interface/libtext.so
-%{_pkglibdir}/interface/libtext.la
-%attr(755,root,root) %{_pkglibdir}/interface/libdaemon.so
-%{_pkglibdir}/interface/libdaemon.la
-%dir %{_pkglibdir}/scopes
-%dir %{_pkglibdir}/reader
-%{_pkglibdir}/reader/libfile.la
 %attr(755,root,root) %{_pkglibdir}/reader/libfile.so
-%{_pkglibdir}/reader/libhttp.la
 %attr(755,root,root) %{_pkglibdir}/reader/libhttp.so
 %{_mandir}/man*/*
+%{_desktopdir}/%{name}.desktop
 
-%files interface-gtk
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_pkglibdir}/interface/libgtk.so
-%{_pkglibdir}/interface/libgtk.la
+%ifarch sparc
+%attr(755,root,root) %{_pkglibdir}/output/libsparc_out.so
+%endif
 
-%files scopes-gtk
+%files daemon
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_pkglibdir}/scopes/libblurscope.so
-%{_pkglibdir}/scopes/libblurscope.la
-%attr(755,root,root) %{_pkglibdir}/scopes/liblevelmeter.so
-%{_pkglibdir}/scopes/liblevelmeter.la
-%attr(755,root,root) %{_pkglibdir}/scopes/liblogbarfft.so
-%{_pkglibdir}/scopes/liblogbarfft.la
-%attr(755,root,root) %{_pkglibdir}/scopes/libmonoscope.so
-%{_pkglibdir}/scopes/libmonoscope.la
-%attr(755,root,root) %{_pkglibdir}/scopes/libspacescope.so
-%{_pkglibdir}/scopes/libspacescope.la
-%attr(755,root,root) %{_pkglibdir}/scopes/libsynaescope.so
-%{_pkglibdir}/scopes/libsynaescope.la
+%attr(755,root,root) %{_pkglibdir}/interface/libdaemon_interface.so
 
-%files scopes-opengl
+%files interface-gtk
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_pkglibdir}/scopes/liboglspectrum.so
-%{_pkglibdir}/scopes/liboglspectrum.la
+%attr(755,root,root) %{_pkglibdir}/interface/libgtk_interface.so
 
-%files input-mikmod
+%files interface-text
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_pkglibdir}/input/libmod.so
-%{_pkglibdir}/input/libmod.la
+%attr(755,root,root) %{_pkglibdir}/interface/libtext_interface.so
 
-%files input-vorbis
+%files interface-xosd
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
-%{_pkglibdir}/input/libvorbis_in.la
+%attr(755,root,root) %{_pkglibdir}/interface/libxosd_interface.so
 
 %files input-audiofile
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pkglibdir}/input/libaf.so
-%{_pkglibdir}/input/libaf.la
+
+%files input-flac
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/input/libflac_in.so
 
 %files input-mad
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pkglibdir}/input/libmad_in.so
-%{_pkglibdir}/input/libmad_in.la
+
+%files input-mikmod
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/input/libmod.so
+
+%files input-sndfile
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/input/libsndfile_in.so
+
+%files input-vorbis
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/input/libvorbis_in.so
 
 %files output-alsa
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pkglibdir}/output/libalsa_out.so
-%{_pkglibdir}/output/libalsa_out.la
 
 %files output-esound
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pkglibdir}/output/libesound_out.so
-%{_pkglibdir}/output/libesound_out.la
+
+%files output-jack
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/output/libjack_out.so
 
 %files output-nas
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pkglibdir}/output/libnas_out.so
-%{_pkglibdir}/output/libnas_out.la
 
-#%files reader-curl
-#%defattr(644,root,root,755)
-#%%{_pkglibdir}/reader/libcurl.la
-#%attr(755,root,root) %{_pkglibdir}/reader/libcurl.so
+%files scopes-gtk
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_pkglibdir}/scopes/libblurscope.so
+%attr(755,root,root) %{_pkglibdir}/scopes/liblevelmeter.so
+%attr(755,root,root) %{_pkglibdir}/scopes/liblogbarfft.so
+%attr(755,root,root) %{_pkglibdir}/scopes/libmonoscope.so
+%attr(755,root,root) %{_pkglibdir}/scopes/libspacescope.so
+%attr(755,root,root) %{_pkglibdir}/scopes/libsynaescope.so
 
-%files lib
+%files scopes-opengl
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libalsaplayer.so.0.0.2
+%attr(755,root,root) %{_pkglibdir}/scopes/liboglspectrum.so
 
 %files devel
 %defattr(644,root,root,755)
@@ -430,3 +510,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libalsaplayer.la
 %{_libdir}/libalsaplayer.so
 %{_pkgconfigdir}/alsaplayer.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libalsaplayer.a
This page took 0.214037 seconds and 4 git commands to generate.