%define name swfdec %define version 0.2.1 %define major 0 %define libname %mklibname %name %{major} %define mozver 1.3-0.alpha.1mdk Name: %name Version: %version Release: 2mdk Summary: Flash animations rendering library Group: System/Libraries License: LGPL URL: http://swfdec.sourceforge.net/ Source: http://swfdec.sourceforge.net/download/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-root BuildRequires: mozilla-devel >= %mozver BuildRequires: libart_lgpl2-devel BuildRequires: libgtk+2.0-devel BuildRequires: libmad0-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}-%{release} 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. %package mozilla Summary: Mozilla plugin for Flash rendering Group: Networking/WWW Requires: mozilla >= %mozver %description mozilla Mozilla plugin for rendering of Flash animations based on swfdec library. %prep %setup -q %build %configure2_5x --enable-shared %make %install rm -rf $RPM_BUILD_ROOT %makeinstall plugindir=%buildroot/%_libdir/mozilla/plugins # 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%{_libdir}/gtk-2.0/2.2.0/loaders/swf_loader.*a rm -f %buildroot%_sysconfdir/gtk-2.0/gdk-pixbuf.loaders %clean rm -rf $RPM_BUILD_ROOT %post if [ -x %_bindir/gdk-pixbuf-query-loaders ]; then %_bindir/gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders fi %postun if [ -x %_bindir/gdk-pixbuf-query-loaders ]; then %_bindir/gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders fi %post -n %libname -p /sbin/ldconfig %postun -n %libname -p /sbin/ldconfig %files %defattr(-,root,root) %doc AUTHORS README TODO RELEASE %{_bindir}/swf_play %{_libdir}/gtk-2.0/2.2.0/loaders/swf_loader.so %files -n %libname %defattr(-,root,root) %{_libdir}/libswfdec.so.* %files -n %libname-devel %defattr(-,root,root) %{_libdir}/libswfdec.a %{_libdir}/libswfdec.so %{_libdir}/pkgconfig/swfdec.pc %{_includedir}/swfdec/swf.h %{_includedir}/swfdec/swfdec.h %files mozilla %defattr(-,root,root) %doc COPYING %{_libdir}/mozilla/plugins/libmozswfdec.so* %changelog * Thu Feb 6 2003 Götz Waschk <waschk@linux-mandrake.com> 0.2.1-2mdk - replace the conflict with gtk+2.0 package with post scripts * Thu Feb 6 2003 Götz Waschk <waschk@linux-mandrake.com> 0.2.1-1mdk - fix buildrequires - add the gdk_pixbuf loader to the main package - new version * Thu Jan 23 2003 Götz Waschk <waschk@linux-mandrake.com> 0.2.0-1mdk - add missing header - new version * Fri Dec 27 2002 Götz Waschk <waschk@linux-mandrake.com> 0.1.3-3mdk - move plugin to %{_libdir}/mozilla/plugins (fcrozat) * Tue Dec 17 2002 Götz Waschk <waschk@linux-mandrake.com> 0.1.3-2mdk - build against new mozilla * Thu Dec 5 2002 Götz Waschk <waschk@linux-mandrake.com> 0.1.3-1mdk - clean unused static library - fix buildrequires - use the mklibname macro - new mozilla - new version * Wed Nov 6 2002 Götz Waschk <waschk@linux-mandrake.com> 0.1.2-1mdk - initial Mandrake package * Sat Oct 26 2002 Christian F.K. Schaller <Uraeus@linuxrising.org> - First attempt at spec