diff --git a/README.md b/README.md index 345fc89..b7b783a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # libsmpeg +SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library with sound support. +Video playback is based on the ubiquitous Berkeley MPEG player, mpeg_play. +Audio is played through a slightly modified mpegsound library, part of splay. +SMPEG supports MPEG audio (MP3), MPEG-1 video, and MPEG system streams. + diff --git a/libsmpeg-0.4.5-m4_underquoted_warning.patch b/libsmpeg-0.4.5-m4_underquoted_warning.patch new file mode 100644 index 0000000..7422e76 --- /dev/null +++ b/libsmpeg-0.4.5-m4_underquoted_warning.patch @@ -0,0 +1,11 @@ +--- smpeg-0.4.5/smpeg.m4 2003-08-26 09:58:15.000000000 +0200 ++++ smpeg-0.4.5/smpeg.m4.fix 2006-06-07 11:15:12.000000000 +0200 +@@ -10,7 +10,7 @@ + ACTION-IF-NOT-FOUND]]]) + dnl Test for SMPEG, and define SMPEG_CFLAGS and SMPEG_LIBS + dnl +-AC_DEFUN(AM_PATH_SMPEG, ++AC_DEFUN([AM_PATH_SMPEG], + [dnl + dnl Get the cflags and libraries from the smpeg-config script + dnl diff --git a/libsmpeg.spec b/libsmpeg.spec new file mode 100644 index 0000000..e69f680 --- /dev/null +++ b/libsmpeg.spec @@ -0,0 +1,116 @@ +Name: libsmpeg +Version: 0.4.5 +Release: 6mamba +Summary: SMPEG is a free MPEG1 video player library with sound support +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://icculus.org/smpeg/ +# Source got from cvs with: +# svn co svn://svn.icculus.org/smpeg/trunk smpeg +Source: smpeg-%{version}.tar.gz +Patch: %{name}-0.4.5-m4_underquoted_warning.patch +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libaudio-devel +BuildRequires: libdirectfb-devel +BuildRequires: libgcc +BuildRequires: libGL-devel +BuildRequires: libglib1-devel +BuildRequires: libGLU-devel +BuildRequires: libgtk1-devel +BuildRequires: libICE-devel +BuildRequires: libSDL-devel +BuildRequires: libSM-devel +BuildRequires: libstdc++6-devel +BuildRequires: libX11-devel +BuildRequires: libXau-devel +BuildRequires: libxcb-devel +BuildRequires: libXdmcp-devel +BuildRequires: libXext-devel +BuildRequires: libXt-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: libvorbis >= 1.0.1 +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library with sound support. +Video playback is based on the ubiquitous Berkeley MPEG player, mpeg_play. +Audio is played through a slightly modified mpegsound library, part of splay. +SMPEG supports MPEG audio (MP3), MPEG-1 video, and MPEG system streams. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{version}-%{release} + +%description devel +SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library with sound support. +Video playback is based on the ubiquitous Berkeley MPEG player, mpeg_play. +Audio is played through a slightly modified mpegsound library, part of splay. +SMPEG supports MPEG audio (MP3), MPEG-1 video, and MPEG system streams. + +This package contains static libraries and header files need for development. + +%prep +%setup -q -n smpeg-%{version} +#%patch -p1 + +%build +# note: the source code is take from CVS +#./autogen.sh +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/gtv +%{_bindir}/smpeg-config +%{_bindir}/glmovie +%{_bindir}/plaympeg +%{_libdir}/*.so.* +%{_mandir}/man1/* +%doc CHANGES COPYING README README.SDL_mixer TODO + +%files devel +%defattr(-,root,root) +%{_bindir}/smpeg-config +%{_datadir}/aclocal/smpeg.m4 +%dir %{_includedir}/smpeg/ +%{_includedir}/smpeg/*.h +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/*.so + +%changelog +* Sun Aug 22 2010 Automatic Build System 0.4.5-6mamba +- automatic rebuild by autodist + +* Mon Jun 29 2009 Automatic Build System 0.4.5-5mamba +- automatic rebuild by autodist + +* Fri May 29 2009 Automatic Build System 0.4.5-4mamba +- automatic rebuild by autodist + +* Thu Nov 06 2008 Silvan Calarco 0.4.5-3mamba +- automatic rebuild by autodist + +* Wed Jun 07 2006 Davide Madrisan 0.4.5-2qilnx +- compile the pacjage using the default CFLAGS settings for QiLinux +- fixed underquoted definition of AM_PATH_SMPEG + +* Fri Aug 06 2004 Davide Madrisan 0.4.5-1qilnx +- package creation