]> git.pld-linux.org Git - packages/gpac.git/blobdiff - gpac.spec
- lets try to fix amd64
[packages/gpac.git] / gpac.spec
index 1a805bab4434f4244d00039319b93ac083c7d70c..203dd736cbec5cf53d75208cead70b45ee4058d8 100644 (file)
--- a/gpac.spec
+++ b/gpac.spec
@@ -27,9 +27,9 @@ Source1:      http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-530.zip
 # Source1-md5: 705f6993fbf890e92eb7a331e7c716d1
 Patch0:                %{name}-install.patch
 Patch1:                %{name}-wxWidgets.patch
+Patch2:                %{name}-amd64.patch
 URL:           http://gpac.sourceforge.net/
-BuildRequires:         SDL-devel
-%{?with_wx:BuildRequires:      wxGTK2-devel >= 2.5.4}
+BuildRequires: SDL-devel
 %{?with_faad:BuildRequires:    faad2-devel}
 %{?with_ffmpeg:BuildRequires:  ffmpeg-devel}
 %{?with_freetype:BuildRequires:        freetype-devel}
@@ -38,6 +38,8 @@ BuildRequires:        SDL-devel
 %{?with_mad:BuildRequires:     libmad-devel}
 %{?with_png:BuildRequires:     libpng-devel}
 BuildRequires: libxml2-devel
+BuildRequires: rpmbuild(macros) >= 1.236
+%{?with_wx:BuildRequires:      wxGTK2-devel >= 2.5.4}
 %{?with_xvid:BuildRequires:    xvid-devel}
 Requires:      SDL
 %{?with_faad:Requires: faad2}
@@ -45,8 +47,8 @@ Requires:     SDL
 %{?with_freetype:Requires:     freetype}
 %{?with_js:Requires:   js}
 %{?with_jpeg:Requires: libjpeg}
-%{?with_png:Requires:  libpng}
 %{?with_mad:Requires:  libmad}
+%{?with_png:Requires:  libpng}
 %{?with_xvid:Requires: xvid}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -103,14 +105,16 @@ Wtyczka GPAC dla przegl
 Obs³ugiwane przegl±darki: %{browsers}.
 
 %prep
-%setup -q -n gpac
-%patch0 -p1 
+%setup -q -n %{name}
+%patch0 -p1
 %{?with_wx:%patch1 -p1}
+%patch2 -p1
 %if %{with amr}
 mkdir -p Plugins/amr_dec/AMR_NB
 cd Plugins/amr_dec/AMR_NB
 unzip -j %{SOURCE1}
 unzip -j 26073-530_ANSI_C_source_code.zip
+cd ../../..
 %endif
 chmod a+x configure
 
@@ -120,18 +124,18 @@ mv applications/osmozilla/nsIOsmozilla.xpt_w32 applications/osmozilla/nsIOsmozil
 
 %build
 %configure \
-       --enable-oss-audio \
-       %{?with_amr: --enable-amr-nb} \
-       %{!?with_faad: --disable-faad} \
-       %{!?with_ffmpeg: --disable-ffmpeg} \
-       %{!?with_freetype: --disable-ft} \
-       %{!?with_jpeg: --disable-jpeg} \
-       %{!?with_js: --disable-js} \
-       %{!?with_mad: --disable-mad} \
-       %{!?with_png: --disable-png} \
        --extra-cflags="-fPIC" \
        --extra-ldflags="-fPIC" \
-       %{!?with_xvid: --disable-xvid}
+       --enable-oss-audio \
+       %{?with_amr:--enable-amr-nb} \
+       %{!?with_faad:--disable-faad} \
+       %{!?with_ffmpeg:--disable-ffmpeg} \
+       %{!?with_freetype:--disable-ft} \
+       %{!?with_jpeg:--disable-jpeg} \
+       %{!?with_js:--disable-js} \
+       %{!?with_mad:--disable-mad} \
+       %{!?with_png:--disable-png} \
+       %{!?with_xvid:--disable-xvid}
 
 %{__make} \
        DESTDIR=$RPM_BUILD_ROOT
@@ -145,7 +149,7 @@ rm -rf $RPM_BUILD_ROOT
        mandir=$RPM_BUILD_ROOT%{_mandir} \
        plugdir=$RPM_BUILD_ROOT%{_libdir}/gpac \
        real_plugdir=%{_libdir}/gpac \
-       prefix=$RPM_BUILD_ROOT/usr \
+       prefix=$RPM_BUILD_ROOT%{_prefix} \
        MOZILLA_DIR=$RPM_BUILD_ROOT%{_plugindir}
 
 %clean
@@ -180,9 +184,6 @@ if [ -d /usr/%{_lib}/mozilla ]; then
        fi
 fi
 
-%triggerpostun -n browser-plugin-%{name} -- mozilla-plugin-%{name}
-%nsplugin_install -f -d %{_libdir}/mozilla/plugins nposmozilla.so nposmozilla.xpt
-
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS BUGS Changelog README TODO
This page took 0.039073 seconds and 4 git commands to generate.