libsmpeg/libsmpeg.spec

128 lines
4.0 KiB
RPMSpec

Name: libsmpeg
Version: 0.4.5
Release: 7mamba
Summary: SMPEG is a free MPEG1 video player library with sound support
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://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: libGLU-devel
BuildRequires: libSDL-devel
BuildRequires: libdirectfb-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libstdc++6-devel
BuildRequires: libts-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
%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 needed for development.
%package tools
Group: Applications/Multimedia
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{version}-%{release}
%description tools
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 the tools provided with %{name}.
%debug_package
%prep
%setup -q -n smpeg-%{version}
#%patch -p1
#./autogen.sh
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
%build
%configure \
--disable-gtk-player \
--disable-gtktest \
CFLAGS="%{optflags} -Wno-error=narrowing"
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libsmpeg-0.4.so.*
%doc COPYING
%files devel
%defattr(-,root,root)
%{_bindir}/smpeg-config
%dir %{_includedir}/smpeg/
%{_includedir}/smpeg/*.h
%{_libdir}/libsmpeg.a
%{_libdir}/libsmpeg.la
%{_libdir}/libsmpeg.so
%{_datadir}/aclocal/smpeg.m4
%doc CHANGES README README.SDL_mixer TODO
%files tools
%defattr(-,root,root)
%{_bindir}/glmovie
%{_bindir}/plaympeg
%{_mandir}/man1/gtv.1*
%{_mandir}/man1/plaympeg.1*
%changelog
* Tue Feb 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.5-7mamba
- rebuilt with debug package, tools subpackage and without gtk1 demo player
* Sun Aug 22 2010 Automatic Build System <autodist@mambasoft.it> 0.4.5-6mamba
- automatic rebuild by autodist
* Mon Jun 29 2009 Automatic Build System <autodist@mambasoft.it> 0.4.5-5mamba
- automatic rebuild by autodist
* Fri May 29 2009 Automatic Build System <autodist@mambasoft.it> 0.4.5-4mamba
- automatic rebuild by autodist
* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.5-3mamba
- automatic rebuild by autodist
* Wed Jun 07 2006 Davide Madrisan <davide.madrisan@qilinux.it> 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 <davide.madrisan@qilinux.it> 0.4.5-1qilnx
- package creation