SPECS: mmsap.spec (NEW) - new
qboosh
qboosh at pld-linux.org
Sun Oct 29 22:25:44 CET 2006
Author: qboosh Date: Sun Oct 29 21:25:44 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
mmsap.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/mmsap.spec
diff -u /dev/null SPECS/mmsap.spec:1.1
--- /dev/null Sun Oct 29 22:25:44 2006
+++ SPECS/mmsap.spec Sun Oct 29 22:25:38 2006
@@ -0,0 +1,131 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without alsa # ALSA sound output
+%bcond_without sdl # SDL sound output
+#
+Summary: Small SAP player for Linux
+Summary(pl): Mały odtwarzacz SAP dla Linuksa
+Name: mmsap
+# NOTE: check homepage and readme.txt before upgrade (1.4 is preview snapshot atm)
+Version: 1.3
+Release: 1
+License: GPL
+Group: X11/Applications/Sound
+#Source0Download: http://www.baktra.wz.cz/english/mmsap.html
+Source0: http://www.baktra.wz.cz/software/packages/%{name}-%{version}.tar.gz
+# Source0-md5: 08fe2ba8991090477671292754d7f92e
+URL: http://www.baktra.wz.cz/english/mmsap.html
+BuildRequires: SDL-devel >= 1.2.10
+BuildRequires: alsa-lib-devel >= 1.0.0
+BuildRequires: gtkmm-devel >= 2.8.0
+BuildRequires: libsap-devel >= 1.54
+BuildRequires: pkgconfig
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Small SAP player for Linux. It has GTKmm user interface and for
+decoding SAP tunes it uses "SAP library v. 1.54 by Adam Bienias".
+
+%description -l pl
+Mały odtwarzacz SAP dla Linuksa. Ma interfejs użytkownika GTKmm, a do
+dekodowania melodii SAP wykorzystuje bibliotekę SAP w wersji 1.54
+autorstwa Adama Bieniasa.
+
+%package SDL
+Summary: Small SAP player for Linux with SDL sound output
+Summary(pl): Mały odtwarzacz SAP dla Linuksa z wyjściem dźwięku SDL
+Group: X11/Applications/Sound
+Requires: libsap >= 1.54
+
+%description SDL
+Small SAP player for Linux. It has GTKmm user interface and for
+decoding SAP tunes it uses "SAP library v. 1.54 by Adam Bienias".
+
+This package contains program with SDL sound output.
+
+%description SDL -l pl
+Mały odtwarzacz SAP dla Linuksa. Ma interfejs użytkownika GTKmm, a do
+dekodowania melodii SAP wykorzystuje bibliotekę SAP w wersji 1.54
+autorstwa Adama Bieniasa.
+
+Ten pakiet zawiera program z wyjściem dźwięku SDL.
+
+%package alsa
+Summary: Small SAP player for Linux with ALSA sound output
+Summary(pl): Mały odtwarzacz SAP dla Linuksa z wyjściem dźwięku ALSA
+Group: X11/Applications/Sound
+Requires: libsap >= 1.54
+
+%description alsa
+Small SAP player for Linux. It has GTKmm user interface and for
+decoding SAP tunes it uses "SAP library v. 1.54 by Adam Bienias".
+
+This package contains program with ALSA sound output.
+
+%description alsa -l pl
+Mały odtwarzacz SAP dla Linuksa. Ma interfejs użytkownika GTKmm, a do
+dekodowania melodii SAP wykorzystuje bibliotekę SAP w wersji 1.54
+autorstwa Adama Bieniasa.
+
+Ten pakiet zawiera program z wyjściem dźwięku ALSA.
+
+%prep
+%setup -q
+
+# kill precompiled objects
+rm -f libsap/* mmsap-als mmsap-sdl
+ln -sf /usr/include/libsap.h libsap/sapLib.h
+
+%build
+%if %{with sdl}
+echo "#define MMSAP_SOUND_SYSTEM_SDL" > mmsap_config.h
+echo '#define MMSAP_VERSION "Version 1.3-SDL"' >> mmsap_config.h
+%{__cxx} %{rpmldflags} %{rpmcxxflags} -o mmsap-sdl mmsap.cpp -lSDL `pkg-config gtkmm-2.4 --libs --cflags` -lsap
+%endif
+
+%if %{with alsa}
+echo "#define MMSAP_SOUND_SYSTEM_ALSA" > mmsap_config.h
+echo '#define MMSAP_VERSION "Version 1.3-ALSA"' >> mmsap_config.h
+%{__cxx} %{rpmldflags} %{rpmcxxflags} -o mmsap-als mmsap.cpp -lasound `pkg-config gtkmm-2.4 --libs --cflags` -lsap
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+%if %{with sdl}
+install mmsap-sdl $RPM_BUILD_ROOT%{_bindir}
+%endif
+
+%if %{with alsa}
+install mmsap-als $RPM_BUILD_ROOT%{_bindir}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with sdl}
+%files SDL
+%defattr(644,root,root,755)
+%doc changelog.txt libsap-license.txt readme.txt
+%lang(cs) %doc readme_cs.txt
+%attr(755,root,root) %{_bindir}/mmsap-sdl
+%endif
+
+%if %{with alsa}
+%files alsa
+%defattr(644,root,root,755)
+%doc changelog.txt libsap-license.txt readme.txt
+%lang(cs) %doc readme_cs.txt
+%attr(755,root,root) %{_bindir}/mmsap-als
+%endif
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/10/29 21:25:38 qboosh
+- new
================================================================
More information about the pld-cvs-commit
mailing list