]> git.pld-linux.org Git - packages/gpac.git/commitdiff
- disable browser plugin on x32 auto/th/gpac-0.5.0-15.20141007.1
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 22 Apr 2015 06:59:26 +0000 (08:59 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 22 Apr 2015 06:59:26 +0000 (08:59 +0200)
- fix building with current ffmpeg
- rel 15

gpac.spec

index a03bbdd5b1dd14772c5d6eaeb7898d5ecb68b858..5ac4b0bfa9bd1c66fa9a2bab0b82bd0619858bcb 100644 (file)
--- a/gpac.spec
+++ b/gpac.spec
 %bcond_without png             # PNG support
 %bcond_without xvid            # xvid support
 %bcond_without wx              # wxWidgets support
+%bcond_without plugin          # don't build xulrunner/firefox/iceweasel plugin
 #
 %define        snap    20141007
 #
+%ifarch x32
+%undefine      with_plugin
+%endif
 Summary:       GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1)
 Summary(pl.UTF-8):     GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1)
 Name:          gpac
 Version:       0.5.0
-Release:       14.%{snap}.1
+Release:       15.%{snap}.1
 License:       LGPL v2+
 Group:         Applications/Multimedia
 # Source0:     http://downloads.sourceforge.net/gpac/%{name}-%{version}.tar.gz
@@ -69,7 +73,7 @@ BuildRequires:        unzip
 BuildRequires: xmlrpc-c-server-devel
 BuildRequires: xorg-lib-libXext-devel
 BuildRequires: xorg-lib-libXv-devel
-BuildRequires: xulrunner-devel >= 2:9.0.0
+%{?with_plugin:BuildRequires:  xulrunner-devel >= 2:9.0.0}
 %{?with_xvid:BuildRequires:    xvid-devel}
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -180,11 +184,11 @@ chmod a+x configure
        --disable-opt \
        %{!?with_wx:--disable-wx} \
        %{?with_amr:--enable-amr} \
-       --enable-joystick \
        --enable-pic \
-       --extra-cflags="%{rpmcflags}" \
+       --extra-cflags="%{rpmcflags} -DFF_API_CLOSE_INPUT_FILE" \
        --extra-ldflags="%{rpmldflags}" \
-       --mozdir=%{_browserpluginsdir} \
+       %{?with_plugin:--mozdir=%{_browserpluginsdir}} \
+       %{?with_plugin:--xulsdk-path="/usr/include/xulrunner -I/usr/include/nspr"} \
        %{!?with_faad:--use-faad=no} \
        %{!?with_ffmpeg:--use-ffmpeg=no} \
        %{!?with_freetype:--use-ft=no} \
@@ -193,7 +197,7 @@ chmod a+x configure
        %{!?with_mad:--use-mad=no} \
        %{!?with_png:--use-png=no} \
        %{!?with_xvid:--use-xvid=no} \
-       --xulsdk-path="/usr/include/xulrunner -I/usr/include/nspr"
+       --enable-joystick
 
 %{!?with_directfb: sed -i 's/CONFIG_DIRECTFB.*/CONFIG_DIRECTFB=no/' config.mak}
 
@@ -255,7 +259,9 @@ fi
 %attr(755,root,root) %{_bindir}/Osmo4
 %endif
 
+%if %{with plugin}
 %files -n browser-plugin-%{name}
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_browserpluginsdir}/nposmozilla.so
 %{_browserpluginsdir}/nposmozilla.xpt
+%endif
This page took 0.039286 seconds and 4 git commands to generate.