File mpeg4ip.spec of Package mpeg4ip
#
# spec file for package mpeg4ip
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mpeg4ip
Version: 1.6.1
Release: 0
Summary: Set of linux video stream processing utilities
License: MPL-1.1
Group: Productivity/Multimedia/Other
Url: http://www.mpeg4ip.net
Source: mpeg4ip-%{version}.tar.bz2
Patch0: %{name}-link.patch
Patch1: %{name}-ac.patch
Patch2: %{name}-gcc4.patch
Patch3: %{name}-configure.patch
Patch4: %{name}-audio_l16.cpp-typo.patch
Patch5: %{name}-ffmpeg.patch
Patch6: %{name}-gcc44.patch
Patch7: %{name}-ambiguous.patch.bz2
Patch8: %{name}-gcc46.patch
Patch9: mpeg4ip-gcc6.patch
BuildRequires: a52dec
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: gtk2-devel
BuildRequires: id3lib-devel
BuildRequires: liba52-devel
BuildRequires: libmad-devel
BuildRequires: libmp3lame-devel
BuildRequires: libmpeg2-devel
BuildRequires: libtool
BuildRequires: libvorbis-devel
BuildRequires: libx264-devel
BuildRequires: libxvidcore-devel
BuildRequires: nasm
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
Conflicts: mp4v2
BuildRequires: libSDL-devel
%description
The MPEG4IP project provides a standarts-based system
for encoding, streaming and playing encoded auido and video.
This package contains libraries of the MPEG4IP project.
%package -n libmpeg4ip0
Summary: MPEG4v2 library
Group: System/Libraries
%description -n libmpeg4ip0
The MPEG4IP project provides a standarts-based system
for encoding, streaming and playing encoded auido and video.
This package contains libraries of the MPEG4IP project.
MPEG4v2 library
%package -n libmpeg4ip-devel
Summary: Files needed for development with mpeg4ip
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libmpeg4ip0 = %{version}-%{release}
Requires: xorg-x11-libX11-devel
Requires: xorg-x11-libXext-devel
Conflicts: libmp4v2-devel
%if 0%{?suse_version} > 1110
Requires: libSDL-devel
%else
Requires: SDL-devel
%endif
%description -n libmpeg4ip-devel
The MPEG4IP project provides a standarts-based system
for encoding, streaming and playing encoded auido and video.
This package contains libraries of the MPEG4IP project.
Files needed for development with mpeg4ip
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8
%patch9 -p1
%build
# causes build loops, just overwrite it and always say yes
# rpmbuild takes care of having a sufficiently recent nasm package
echo -e "#!/bin/sh\necho yes\nexit 0" > util/testnasm.sh
chmod 755 util/testnasm.sh
cd lib/SDLAudio
libtoolize
aclocal
autoconf
touch NEWS
touch AUTHORS
touch ChangeLog
automake --add-missing
automake
cd ../..
libtoolize
aclocal
autoconf
autoheader
touch NEWS
touch AUTHORS
touch ChangeLog
automake --add-missing
automake
install -d config
touch bootstrapped
%configure --disable-player --disable-warns-as-err
make \
CCAS="gcc"
%install
cd lib/mp4v2
%make_install
cd ../..
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
find %{buildroot} -type f -name "*.a" -delete -print
%post -n libmpeg4ip0 -p/sbin/ldconfig
%postun -n libmpeg4ip0 -p/sbin/ldconfig
%files
%defattr(-, root, root)
# utilitys
%{_bindir}/mp4creator
%{_bindir}/mp4info
%{_bindir}/mp4dump
%{_bindir}/mp4trackdump
%{_bindir}/mp4tags
%{_bindir}/mp4art
%{_bindir}/mp4videoinfo
# encoding tools
%{_bindir}/lboxcrop
%{_bindir}/rgb2yuv
%{_bindir}/avi2raw
# debugging tools
%{_bindir}/avidump
%{_bindir}/mpeg4vol
%{_bindir}/mpeg2video_parse
%{_bindir}/h264_parse
%{_bindir}/mpeg2t_dump
# unknown
%{_bindir}/mp4extract
%{_bindir}/mpeg_ps_extract
%{_bindir}/mpeg_ps_info
%{_mandir}/man1/*
%files -n libmpeg4ip0
%defattr(-, root, root)
%{_libdir}/*.so.*
%files -n libmpeg4ip-devel
%defattr(-, root, root)
%{_mandir}/man3/*
%{_mandir}/manm
%{_bindir}/mpeg4ip-config
%{_libdir}/*.so
%{_includedir}/*
%changelog