]> git.pld-linux.org Git - packages/avifile.git/blobdiff - avifile.spec
cca76e3c2165b299dcc150d05db1a34b avifile-0.6-20010624.tar.gz
[packages/avifile.git] / avifile.spec
index 071cb1352152ca0ced5e3127302090637c927e11..f0a4a5b3ec84df9a65470c4ed4ebb099a1aeae63 100644 (file)
@@ -1,19 +1,10 @@
-#
-# Conditional build:
-# bcond_off_arts - without arts support
-#
-
-%ifarch        alpha
-%define bcond_off_arts 1
-%endif
-
-%define                snap    20010402
+%define                snap    20010624
 Summary:       Library and sample program for playing AVI files
 Summary(pl):   Biblioteka i przyk³adowy program do odtwarzania plików AVI
 Name:          avifile
 Version:       0.6
-Release:       0.%{snap}
-Epoch:         1
+Release:       0.%{snap}.1
+Epoch:         2
 License:       GPL
 Group:         X11/Applications/Multimedia
 Group(de):     X11/Applikationen/Multimedia
@@ -22,13 +13,13 @@ Source0:    http://divx.euro.ru/%{name}-%{version}-%{snap}.tar.gz
 Patch0:                %{name}-shareware.patch
 Patch1:                %{name}-deplib.patch
 Patch2:                %{name}-ac3.patch
-Patch3:                %{name}-fps.patch
-Patch4:                %{name}-mga.patch
+Patch3:                %{name}-mga.patch
+Patch4:                %{name}-opt.patch
+Patch5:                %{name}-stdio.patch
 BuildRequires: XFree86-devel
 BuildRequires: SDL-devel >= 1.2.0
 BuildRequires: ac3dec-devel >= 0.6.1
 BuildRequires: libjpeg-devel
-%{!?bcond_off_arts:BuildRequires:      arts-devel}
 BuildRequires: unzip
 BuildRequires: qt-devel
 BuildConflicts:        wine-devel
@@ -65,29 +56,40 @@ libaviplay.
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
+# was broken and need fixing; without this xmms and avi plugin is broken
+# %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
+rm -f missing
 libtoolize --copy --force
 aclocal
-rm -f missing
-automake -a -c --foreign
 autoconf
+automake -a -c --foreign
 %configure \
        --with-qt-includes=%{_includedir}/qt \
        --enable-release \
        --with-libac3-path=%{_prefix}
 
 touch lib/dummy.cpp
+gcc -c plugins/libwin32/loader/stubs.s -o plugins/libwin32/loader/stubs.lo
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/usr/lib/win32}
 
+# avoid relinking
+for f in plugins/libwin32/libwin32.la plugins/libaudiodec/libaudiodec.la \
+  plugins/libmp3lame_audioenc/libmp3lame_audioenc.la \
+  plugins/libmpeg_audiodec/libmpeg_audiodec.la ; do
+       sed -e '/^relink_command/d' $f > $f.new
+       mv -f $f.new $f
+done
+       
 %{__make} install \
        DESTDIR="$RPM_BUILD_ROOT"
 
@@ -111,7 +113,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/asf*
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
 %dir %{_libdir}/avifile
-%attr(755,root,root) %{_libdir}/avifile/lib*
+%attr(755,root,root) %{_libdir}/avifile/lib*.so*
+%attr(755,root,root) %{_libdir}/avifile/lib*.la
 %{_datadir}/%{name}
 
 %files devel
This page took 0.040339 seconds and 4 git commands to generate.