%define name swfdec %define version 0.5.2 %define major 0.5 %define libname %mklibname %name %{major} %define rel 1 Name: %name Version: %version Release: %mkrel %rel Summary: Flash animations rendering library Group: System/Libraries License: LGPL URL: http://swfdec.freedesktop.org/ Source: http://swfdec.freedesktop.org/download/%name/%major/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-root BuildRequires: libxt-devel BuildRequires: libmad-devel BuildRequires: gimp2-devel libalsa-devel BuildRequires: liboil-devel >= 0.3 BuildRequires: autoconf2.5 >= 2.58 BuildRequires: ffmpeg-devel BuildRequires: libgstreamer-devel BuildRequires: gnome-vfs2-devel BuildRequires: libsoup-2.2-devel %description Libswfdec is a library for rendering Flash animations. Currently it handles mostFlash 3 animations and some Flash 4. No interactivity is supported yet. %package -n %libname Summary: Shared library for decoding Flash animations Group: System/Libraries %description -n %libname Libswfdec is a library for rendering Flash animations. Currently it handles mostFlash 3 animations and some Flash 4. No interactivity is supported yet. This package contains the shared library needed to run libswfdec applications. %package -n %libname-devel Summary: Swfdec development files and static libraries Group: Development/C Requires: %{libname} = %{version} Provides: libswfdec-devel = %version-%release Provides: swfdec-devel = %version-%release %description -n %libname-devel This contains the files needed to build packages that depend on swfdec. %prep %setup -q %build export CFLAGS="%optflags -DMOZ_X11" %configure2_5x --enable-shared #gw parallel build does not work make %install rm -rf $RPM_BUILD_ROOT %makeinstall plugindir=%buildroot/%_libdir/mozilla/plugins gimplibdir=%buildroot%_libdir/gimp/2.0 # Clean out files that should not be part of the rpm. # This is the recommended way of dealing with it for RH8 rm -f $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/*a rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -f %buildroot%_sysconfdir/gtk-2.0/gdk-pixbuf.loaders # %clean rm -rf $RPM_BUILD_ROOT %post -n %libname -p /sbin/ldconfig %postun -n %libname -p /sbin/ldconfig %files -n %libname %defattr(-,root,root) %{_libdir}/libswfdec-%major.so.* %{_libdir}/libswfdec-gtk-%major.so.* %files -n %libname-devel %defattr(-,root,root) %{_libdir}/libswfdec-%major.a %{_libdir}/libswfdec-gtk-%major.a %{_libdir}/libswfdec-%major.so %{_libdir}/libswfdec-gtk-%major.so %{_libdir}/pkgconfig/swfdec-%major.pc %{_libdir}/pkgconfig/swfdec-gtk-%major.pc %dir %{_includedir}/swfdec-%major/ %{_includedir}/swfdec-%major/* %_datadir/gtk-doc/html/%name/ %changelog * Fri Aug 24 2007 Michael Scherer <misc@mandriva.org> 0.5.2-1mdv2008.0 + Revision: 70996 - new version * Sat Aug 04 2007 Michael Scherer <misc@mandriva.org> 0.5.1-2mdv2008.0 + Revision: 58763 - bump version of the lib, asked by dev on irc * Sat Aug 04 2007 Michael Scherer <misc@mandriva.org> 0.5.1-1mdv2008.0 + Revision: 58757 - version 0.5.1 * Sat Jul 14 2007 Michael Scherer <misc@mandriva.org> 0.5.0-1mdv2008.0 + Revision: 51907 - 0.5.0 * Sat Jun 09 2007 Michael Scherer <misc@mandriva.org> 0.4.5-1mdv2008.0 + Revision: 37600 - update to 0.4.5 * Mon Apr 30 2007 Michael Scherer <misc@mandriva.org> 0.4.4-1mdv2008.0 + Revision: 19489 - upgrade to version 0.4.4 ( with youtube support \o/ ) * Sat Feb 10 2007 Michael Scherer <misc@mandriva.org> 0.4.2-1mdv2007.0 + Revision: 118671 - fix BuildRequires - update to 0.4.2 * Mon Jan 15 2007 Michael Scherer <misc@mandriva.org> 0.4.1-1mdv2007.1 + Revision: 109109 - update to 0.4.1 ( with initial video support ) * Mon Jan 08 2007 Michael Scherer <misc@mandriva.org> 0.4.0-1mdv2007.1 + Revision: 106087 - remove various macro and no longer needed requires, that caused problem with buildsys - new url - new version 0.4.0 - no more gimp and gdk loader, they were not working - clean the spec - use %%rel for mkrel - mozilla-plugin was splitted from main tarball, now in its own SRPM + Götz Waschk <waschk@mandriva.org> - fix gtk macros - unpack patch - Import swfdec * Sun Jun 04 2006 Götz Waschk <waschk@mandriva.org> 0.3.6-5mdv2007.0 - fix gtk dep - fix buildrequires * Wed May 03 2006 Götz Waschk <waschk@mandriva.org> 0.3.6-4mdk - Rebuild * Fri Apr 07 2006 Götz Waschk <waschk@mandriva.org> 0.3.6-3mdk - rebuild to fix mozilla dep * Thu Jan 19 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.3.6-2mdk - add missing requires to the mozilla plugin * Thu Jan 12 2006 Götz Waschk <waschk@mandriva.org> 0.3.6-1mdk - replace prereq - drop patch 1 - update patch 0 - New release 0.3.6 * Mon Aug 22 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 0.3.4-3mdk - allow build without plugin deps (mozilla, gstreamer-plugins) * Tue Apr 19 2005 Götz Waschk <waschk@mandriva.org> 0.3.4-2mdk - fix buildrequires * Tue Apr 19 2005 Götz Waschk <waschk@linux-mandrake.com> 0.3.4-1mdk - update the patch - requires new oil - new version * Mon Mar 14 2005 Götz Waschk <waschk@linux-mandrake.com> 0.3.2-3mdk - build with firefox * Mon Feb 14 2005 Götz Waschk <waschk@linux-mandrake.com> 0.3.2-2mdk - rebuild for new gimp * Tue Nov 23 2004 Götz Waschk <waschk@linux-mandrake.com> 0.3.2-1mdk - fix file list - source URL - add gimp plugin package - major 0.3 - needs liboil and gimp - drop all patches - new source location - new version * Fri Oct 01 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.2.2-8mdk - libtool fixes * Thu Aug 05 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.2.2-7mdk - biarch support * Sun Jun 13 2004 Götz Waschk <waschk@linux-mandrake.com> 0.2.2-6mdk - fix deps of the mozilla plugin * Tue May 25 2004 Götz Waschk <waschk@linux-mandrake.com> 0.2.2-5mdk - mozilla plugin doesn't require mozilla * Fri May 14 2004 Götz Waschk <waschk@linux-mandrake.com> 0.2.2-4mdk - fix gtk directory - 64-bit fixes