Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Error building the RPM package Fedora 20

Help
J-23
2014-08-11
2014-08-11
  • J-23
    J-23
    2014-08-11

    Hello,
    I want to build a package for fedora 20, and I is the spec file:
    %global with_sysvinit 0
    %global with_systemd 0
    %global rhel6 0

    %if 0%{?rhel} > 0 && 0%{?rhel} <= 6
    %global with_sysvinit 1
    %global rhel6 1
    %endif
    %if 0%{?rhel} == 0 || 0%{?rhel} >= 7
    %global with_systemd 1
    %endif

    Version: 0.12.1
    Summary: UPnP AV MediaServer
    Name: mediatomb
    Release: 22%{?dist}
    Summary: MediaTomb - UPnP AV Mediaserver for Linux
    License: GPLv2
    Group: Applications/Multimedia
    URL: http://mediatomb.cc
    Source0: http://downloads.sourceforge.net/mediatomb/%{name}-%{version}.tar.gz
    Source1: mediatomb.service
    # uphill
    Source100: mediatomb.config.xml

    # Adds handler for ogg audio metadata by default. Submitted upstream: http://sourceforge.net/tracker/?func=detail&aid=3064466&group_id=129766&atid=715782
    Patch0: mediatomb-0.12.1.fixogg.patch
    # Fixes issue where video files > 999 minutes in length overrun the minutes buffer.
    Patch1: mediatomb-0.12.1.fixbufferoverrun.patch
    # Fix build issues related to GCC 4.6 (missing definitions.) Submitted upstream
    Patch2: mediatomb-0.12.1.fixbuild.patch
    #Port to js-1.8 (thanks Jan!) Submitted upstream: http://sourceforge.net/tracker/?func=detail&aid=3409482&group_id=129766&atid=715782
    Patch3: mediatomb-0.12.1.tonewjs.patch
    # Fixes to the js/native code to allow custom js parsing. Submitted upstream (with above)
    Patch4: mediatomb-0.12.1-jsparse.patch
    # Allows timeseeking on ps3. http://sourceforge.net/tracker/?func=detail&aid=3309436&group_id=129766&atid=715782
    Patch5: mediatomb-0.12.1.ps3_timeseekrange.patch
    # Enable album art for FLAC based on libflac. http://sourceforge.net/tracker/?func=detail&aid=2960326&group_id=129766&atid=715782
    Patch6: mediatomb-0.12.1.flacart.patch
    Patch7: mediatomb-0.12.1.flacart.config.patch
    # Fix youtube support. RHBZ#747023, upstream bug http://sourceforge.net/tracker/?func=detail&aid=3382320&group_id=129766&atid=715780
    Patch8: mediatomb-0.12.1.fixyoutube.patch
    # Fix for gcc 4.7 build errors
    Patch9: mediatomb-0.12.1.gcc47.patch
    # Add subtitles support: http://sourceforge.net/tracker/?func=detail&aid=3014026&group_id=129766&atid=715782
    Patch10: mediatomb-0.12.1-samsung_video_subtitles.patch
    Patch11: mediatomb-0.12.1-transcode-segfault.patch

    # uphill
    Patch100: mediatomb-urifix.patch
    Patch101: fix_libav_0.7_support.patch

    Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{id_u} -n)
    BuildRequires: automake
    BuildRequires: sqlite-devel, mysql-devel, libexif-devel, id3lib-devel, file-devel, js-devel, zlib-devel, taglib-devel, flac-devel
    BuildRequires: expat-devel, libcurl-devel
    BuildRequires: libmp4v2-devel
    BuildRequires: lastfmlib-devel
    BuildRequires: xulrunner-devel
    Requires: mysql-libs, expat
    Requires(pre): shadow-utils
    %if %{with_sysvinit}
    Requires(post): /sbin/chkconfig
    Requires(preun): /sbin/chkconfig
    Requires(preun): /sbin/service
    %endif
    %if %{with_systemd}
    Requires(post): systemd-units
    Requires(preun): systemd-units
    Requires(postun): systemd-units
    %endif


    %description
    MediaTomb is an open source (GPL) UPnP MediaServer with a nice web user
    interface, it allows you to stream your digital media through your home
    network and listen to/watch it on a variety of UPnP compatible devices.


    MediaTomb implements the UPnP MediaServer V 1.0 specification that can
    be found on http://www.upnp.org/.


    %prep
    %setup -q
    %patch0 -p0
    %patch1 -p0
    %patch2 -p0
    # these two and patch9 fail the build on RHEL6
    %if ! %{rhel6}
    %patch3 -p1
    %patch4 -p1
    %endif
    %patch5 -p0
    %patch6 -p0
    %patch7 -p1
    %patch8 -p3
    %if ! %{rhel6}
    %patch9 -p0
    %endif
    %patch10 -p0
    %patch11 -p0


    # uphill
    # patch for Samsung TV
    %patch100 -p1
    # patch to make it build
    %patch101 -p1
    %build
    # Patches affect configure.ac scripts, need to autoreconf
    autoreconf -if


    %configure --enable-inotify --enable-taglib --enable-libjs --enable-FLAC
    %{
    make} %{?_smp_mflags}

    %install
    %{rm} -rf $RPM_BUILD_ROOT


    %if %{with_sysvinit}
    %{
    install} -p -D -m0755 scripts/mediatomb-service-fedora $RPM_BUILD_ROOT%{_initrddir}/mediatomb
    %endif
    %if %{with_systemd}
    %{install} -p -D -m0755 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/mediatomb.service
    %endif
    %{
    install} -p -D -m0644 config/mediatomb-conf-fedora $RPM_BUILD_ROOT%{_sysconfdir}/mediatomb.conf
    make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"

    %{install} -p -D -m0644 %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/mediatomb/config.xml.sample
    # make all files under %%_sysconfdir/mediatomb are owned by
    # this package
    %{
    mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/mediatomb
    touch $RPM_BUILD_ROOT%{_sysconfdir}/mediatomb/{config.xml,mediatomb.db,mediatomb.html}
    %{mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d


    %{
    cat} > $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/%{name} << 'EOF'
    /var/log/mediatomb {
    create 644 root root
    monthly
    compress
    missingok
    }
    EOF

    %clean
    %{__rm} -rf $RPM_BUILD_ROOT

    %pre
    getent group mediatomb >/dev/null || groupadd -r mediatomb
    getent passwd mediatomb >/dev/null || \ useradd -r -g mediatomb -d %{_sysconfdir}/mediatomb -s /sbin/nologin \ -c "To run Mediatomb" mediatomb
    exit 0

    %post
    %if %{with_sysvinit}
    /sbin/chkconfig --add mediatomb
    %endif
    %if %{with_systemd}
    if [ $1 -eq 1 ] ; then
    # Initial installation
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
    fi
    %endif

    %preun
    %if %{with_sysvinit}
    if [ $1 = 0 ]; then
    /sbin/service mediatomb stop >/dev/null 2>&1
    /sbin/chkconfig --del mediatomb
    fi
    %endif
    %if %{with_systemd}
    if [ $1 -eq 0 ] ; then
    # Package removal, not upgrade
    /bin/systemctl --no-reload disable mediatomb.service > /dev/null 2>&1 || :
    /bin/systemctl stop mediatomb.service > /dev/null 2>&1 || :
    fi
    %endif

    %postun
    %if %{with_systemd}
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
    if [ $1 -ge 1 ] ; then
    # Package upgrade, not uninstall
    /bin/systemctl try-restart mediatomb.service >/dev/null 2>&1 || :
    fi
    %endif

    %if %{with_systemd}

    %triggerun -- mediatomb < 0.1.12-16
    # Save the current service runlevel info
    # User must manually run systemd-sysv-convert --apply httpd
    # to migrate them to systemd targets
    /usr/bin/systemd-sysv-convert --save mediatomb >/dev/null 2>&1 ||:

    # Run these because the SysV package being removed won't do them
    /sbin/chkconfig --del mediatomb >/dev/null 2>&1 || :
    /bin/systemctl try-restart mediatomb.service >/dev/null 2>&1 || :

    %endif

    %triggerun -- mediatomb < 0.1.12-16
    # Save the current service runlevel info
    # User must manually run systemd-sysv-convert --apply httpd
    # to migrate them to systemd targets
    /usr/bin/systemd-sysv-convert --save mediatomb >/dev/null 2>&1 ||:

    # Run these because the SysV package being removed won't do them
    /sbin/chkconfig --del mediatomb >/dev/null 2>&1 || :
    /bin/systemctl try-restart mediatomb.service >/dev/null 2>&1 || :

    %files
    %defattr(-,root,root,-)
    %doc README README.UTF_8 AUTHORS ChangeLog COPYING doc/doxygen.conf
    %doc doc/scripting.txt doc/scripting_utf8.txt
    %attr(-,mediatomb,mediatomb)%config(noreplace) %{_sysconfdir}/mediatomb.conf
    %attr(-,mediatomb,mediatomb)%dir %{_sysconfdir}/%{name}/
    %attr(-,mediatomb,mediatomb)%ghost %{_sysconfdir}/%{name}/
    %config(noreplace) %{_datadir}/%{name}/js/import.js
    %config(noreplace) %{_datadir}/%{name}/js/playlists.js
    %config(noreplace) %{_datadir}/%{name}/js/common.js
    %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
    %config(noreplace) %{_sysconfdir}/%{name}/config.xml.sample
    %{_bindir}/mediatomb
    %{_datadir}/%{name}/
    %{_mandir}/man1/

    %if %{with_sysvinit}
    %{_initrddir}/mediatomb
    %endif
    %if %{with_systemd}
    %{_unitdir}/mediatomb.service
    %endif

    %changelog
    * Wed Feb 13 2013 Thomas Uphill thomas@narrabilis.com - 0.12.1-23
    - Patch to fix Samsung Television
    - patch to make it build

    * Tue Jan 15 2013 Jon Ciesla limburgher@gmail.com - 0.12.1-22
    - Patch to fix crash, BZ 783367.
    - autoconfig fixes.

    * Mon Dec 03 2012 Jon Ciesla limburgher@gmail.com - 0.12.1-21
    - Fix unit file typo.

    * Tue Oct 30 2012 Jon Ciesla limburgher@gmail.com - 0.12.1-20
    - Fix most hardcoding in unit file.

    * Sun Sep 16 2012 David Jaša jasa.david@gmail.com - 0.12.1-19
    - added patch to enable subtitles support
    - Committed by Jon Ciesla limburgher@gmail.com

    * Mon Sep 03 2012 David Jaša djasa@redhat.com - 0.12.1-18
    - cleaned up conditionals handling Fedora <= 13
    - added missing comma before flac-devel in BuildRequires
    - made .spec compatible with RHEL6 + EPEL
    - Committed by Jon Ciesla limburgher@gmail.com

    * Fri Jul 20 2012 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 0.12.1-17
    - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

    * Wed Feb 15 2012 Jon Ciesla limburgher@gmail.com - 0.12.1-16
    - Migrate to systemd, BZ 789767.

    * Fri Jan 13 2012 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 0.12.1-15
    - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

    * Sun Nov 06 2011 Rich Mattes richmattes@gmail.com - 0.12.1-14
    - Added call to autoreconf to enable flac support

    * Tue Oct 18 2011 Rich Mattes richmattes@gmail.com - 0.12.1-13
    - Fix youtube support (RHBZ#747023)
    - Enable FLAC cover art via libFLAC

    * Wed Jun 29 2011 Rich Mattes richmattes@gmail.com - 0.12.1-12
    - Update to fix js printing routine

    * Tue Jun 28 2011 Rich Mattes richmattes@gmail.com - 0.12.1-11
    - Added fix for custom JS parsing failure (#714466)

    * Tue Apr 19 2011 Jan Horak jhorak@redhat.com - 0.12.1-10
    - Added Spidermonkey 1.8 patch

    * Mon Apr 18 2011 Rich Mattes richmattes@gmail.com - 0.12.1-10
    - Rebuild for updated libjs

    * Wed Mar 23 2011 Rich Mattes richmattes@gmail.com - 0.12.1-9
    - More .js files added as configuration

    * Tue Feb 08 2011 Rich Mattes richmattes@gmail.com - 0.12.1-8
    - Fixed build errors for gcc 4.6 upgrade
    - Changed import.js to a configuration file (rhbz #674861)

    * Tue Feb 08 2011 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 0.12.1-7
    - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

    * Tue Jan 11 2011 Rich Mattes richmattes@gmail.com - 0.12.1-6
    - Enable lastfmlib support (rhbz #638573)

    * Mon Dec 27 2010 Rich Mattes richmattes@gmail.com - 0.12.1-5
    - Rebuild for mysql update

    * Mon Nov 22 2010 Rich Mattes richmattes@gmail.com - 0.12.1-4
    - rhbz651414: patch added to fix buffer overruns on unusually long files

    * Fri Nov 12 2010 Rich Mattes richmattes@gmail.com - 0.12.1-3
    - Add patch to enable ogg metadata by default

    * Sun Jun 20 2010 Rich Mattes richmattes@gmail.com - 0.12.1-2
    - Fixed specfile dependancies so configure only runs once
    - Removed dependency on xulrunner, use system jsapi.h

    * Sat Jun 12 2010 Rich Mattes richmattes@gmail.com - 0.12.1-1
    - Update to version 12.1
    - Remove some patches, now included upstream
    - Fix rawhide FTBFS errors

    * Fri Aug 21 2009 Tomas Mraz tmraz@redhat.com - 0.11.0-11
    - rebuilt with new openssl

    * Sat Jul 25 2009 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 0.11.0-10
    - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

    * Sun Jun 28 2009 Marc Wiriadisastra marc@mwiriadi.id.au - 0.11.0-9
    - Change requires from mysql to mysql-libs closes bz#483635
    - Change priority of system-init scripts closes bz#487877

    * Sun Jun 28 2009 Marc Wiriadisastra marc@mwiriadi.id.au - 0.11.0-8
    - Added upstream patch which fixes compile time errors and a couple of segfaults

    * Wed Feb 25 2009 Fedora Release Engineering rel-eng@lists.fedoraproject.org - 0.11.0-7
    - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

    * Mon Feb 16 2009 Caolán McNamara caolanm@redhat.com 0.11.0-6
    - needs to point to xulrunner/js 1.9.1 now
    - include my_sys.h for my_init
    - fix some char -> const char

    * Sat Jan 24 2009 Marc Wiriadisastra marc@mwiriadi.id.au 0.11.0-5
    - Rebuild for mysql dependancy

    * Mon Dec 1 2008 Michael Schwendt mschwendt@fedoraproject.org 0.11.0-4
    - Include /usr/share/mediatomb directory.

    * Tue Oct 7 2008 Marc Wiriadisastra marc@mwiriadi.id.au 0.11.0-3
    - Added the line change for xulrunner

    * Tue Oct 7 2008 Marc Wiriadisastra marc@mwiriadi.id.au 0.11.0-2
    - Added patch from upstream for Curl

    * Thu Aug 28 2008 Michael Schwendt mschwendt@fedoraproject.org 0.11.0-2
    - Include /usr/share/mediatomb directory.

    * Sun Mar 2 2008 Marc Wiriadisastra marc@mwiriadi.id.au 0.11.0-1
    - New release version 0.11.0
    - Upstream has asked me to remove libextractor
    - added inotify which works
    - Removed patches due to upstream inclusion
    - Added expat-devel
    - Build with xulrunner
    - Added patch to remove automatic service up and chkconfig up

    * Wed Feb 13 2008 Marc Wiriadisastra marc@mwiriadi.id.au 0.10.0-9
    - Rebuild for gcc4.3

    * Sat Jan 5 2008 Marc Wiriadisastra marc@mwiriadi.id.au 0.10.0-8
    - Added patch from upstream fixes the following issues (no bugs #)
    - fixes 64bit issues in libupnp
    - adds correct handling of chunked encoded data in libupnp
    - fixes regarding id3lib and taglib metadata extraction
    - fix where sqlite database file was checked in configuration even if mysql driver was selected

    * Thu Jan 3 2008 Marc Wiriadisastra marc@mwiriadi.id.au 0.10.0-7
    - Added mysql-devel to build requires

    * Thu Jan 3 2008 Marc Wiriadisastra marc@mwiriadi.id.au 0.10.0-6
    - Cleaned up spec file

    * Wed Jan 2 2008 Marc Wiriadisastra marc@mwiriadi.id.au 0.10.0-5
    - Added mysql-libs for build requires instead of mysql-devel

    * Wed Jan 2 2008 Marc Wiriadisastra marc@mwiriadi.id.au 0.10.0-4
    - Actually added the patches to the file.
    - Added the ownership changes (Mamoru Tasaka)
    - Libextractor enabled

    * Wed Jan 2 2008 Marc Wiriadisastra marc@mwiriadi.id.au 0.10.0-3
    - Added patchs to patch ownership of /etc/mediatomb.conf and /etc/mediatomb
    - Adjusted pre and post scripts and add user and group mediatomb
    - Changed attributes so files are owned by mediatomb
    - Cleaned Requires and added two files for build-requires

    * Sun Dec 23 2007 Marc Wiriadisastra marc@mwiriadi.id.au 0.10.0-2
    - Altered spec file for inclusion into Fedora
    * Wed Jul 11 2007 Sergey Bostandzhyan jin@mediatomb.cc 0.10.0-1
    - Version is now filled in by the configure script.
    * Sun May 27 2007 Sergey Bostandzhyan jin@mediatomb.cc 0.9.1-1
    - updated the init script
    * Sun Mar 25 2007 Sergey Bostandzhyan jin@mediatomb.cc 0.9.0-1
    - Synced with the new script naming and adjusted for the release,
    added man page.
    * Mon Feb 26 2007 Sergey Bostandzhyan jin@mediatomb.cc
    - Removed some files that were no longer needed.
    * Wed Sep 7 2005 Sergey Bostandzhyan jin@mediatomb.cc
    - Removed some buildrequires, our configure script should handle different
    scenarios itself.
    * Wed Jun 15 2005 Sergey Bostandzhyan jin@mediatomb.cc
    - Added init.d script + chkconfig
    * Thu Apr 14 2005 Sergey Bostandzhyan jin@mediatomb.cc
    - Initial release
    When you try to build a package I get this error:
    -size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o libmediatomb_a-extractor_handler.o test -f '../src/metadata/extractor_handler.cc' || echo './'../src/metadata/extractor_handler.cc
    g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I/usr/include/ffmpeg -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -I/usr/include/js -I/usr/include/taglib -pthread -I/usr/include/ffmpeg -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o libmediatomb_a-ffmpeg_handler.o test -f '../src/metadata/ffmpeg_handler.cc' || echo './'../src/metadata/ffmpeg_handler.cc
    g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I/usr/include/ffmpeg -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -I/usr/include/js -I/usr/include/taglib -pthread -I/usr/include/ffmpeg -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c -o libmediatomb_a-metadata_handler.o test -f '../src/metadata_handler.cc' || echo './'../src/metadata_handler.cc
    ../src/metadata/ffmpeg_handler.cc: In function 'void addFfmpegMetadataFields(zmm::Ref<CdsItem>, AVFormatContext)':
    ../src/metadata/ffmpeg_handler.cc:110:3: error: 'AVMetadataTag' was not declared in this scope
    AVMetadataTag
    tag = NULL;
    ^
    ../src/metadata/ffmpeg_handler.cc:110:18: error: 'tag' was not declared in this scope
    AVMetadataTag tag = NULL;
    ^
    ../src/metadata/ffmpeg_handler.cc:112:4: error: 'AV_METADATA_DONT_STRDUP_KEY' was not declared in this scope
    AV_METADATA_DONT_STRDUP_KEY | AV_METADATA_DONT_STRDUP_VAL);
    ^
    ../src/metadata/ffmpeg_handler.cc:112:34: error: 'AV_METADATA_DONT_STRDUP_VAL' was not declared in this scope
    AV_METADATA_DONT_STRDUP_KEY | AV_METADATA_DONT_STRDUP_VAL);
    ^
    ../src/metadata/ffmpeg_handler.cc:112:61: error: 'av_metadata_get' was not declared in this scope
    AV_METADATA_DONT_STRDUP_KEY | AV_METADATA_DONT_STRDUP_VAL);
    ^
    ../src/metadata/ffmpeg_handler.cc: In member function 'virtual void FfmpegHandler::fillMetadata(zmm::Ref<CdsItem>)':
    ../src/metadata/ffmpeg_handler.cc:294:69: error: 'av_open_input_file' was not declared in this scope
    item->getLocation().c_str(), NULL, 0, NULL) != 0)
    ^
    ../src/metadata/ffmpeg_handler.cc:298:9: warning: 'int av_find_stream_info(AVFormatContext
    )' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1616) [-Wdeprecated-declarations]
    if (av_find_stream_info(pFormatCtx) < 0)
    ^
    ../src/metadata/ffmpeg_handler.cc:298:39: warning: 'int av_find_stream_info(AVFormatContext)' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1616) [-Wdeprecated-declarations]
    if (av_find_stream_info(pFormatCtx) < 0)
    ^
    ../src/metadata/ffmpeg_handler.cc:300:9: warning: 'void av_close_input_file(AVFormatContext
    )' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1793) [-Wdeprecated-declarations]
    av_close_input_file(pFormatCtx);
    ^
    ../src/metadata/ffmpeg_handler.cc:300:39: warning: 'void av_close_input_file(AVFormatContext)' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1793) [-Wdeprecated-declarations]
    av_close_input_file(pFormatCtx);
    ^
    ../src/metadata/ffmpeg_handler.cc:309:5: warning: 'void av_close_input_file(AVFormatContext
    )' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1793) [-Wdeprecated-declarations]
    av_close_input_file(pFormatCtx);
    ^
    ../src/metadata/ffmpeg_handler.cc:309:35: warning: 'void av_close_input_file(AVFormatContext)' is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1793) [-Wdeprecated-declarations]
    av_close_input_file(pFormatCtx);
    ^
    make[2]:
    [libmediatomb_a-ffmpeg_handler.o] Error 1
    make[2]:
    Waiting for unfinished jobs....
    make[2]: Leaving directory /home/lbaczek/rpmbuild/BUILD/mediatomb-0.12.1/build' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/lbaczek/rpmbuild/BUILD/mediatomb-0.12.1'
    make: ** [all] Error 2
    błąd: Błędny stan wyjścia z /var/tmp/rpm-tmp.je3otI (%build)
    Which patches are missing me yet?