Group :: System/Libraries
RPM: swfdec
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define gtk_ver_major 2.10
%define gtk_binary_ver %gtk_ver_major.0
%def_disable static
Name: swfdec
Version: 0.3.6
Release: alt2
Summary: Flash animations rendering library
Group: System/Libraries
License: LGPL
Url: http://www.schleef.org/swfdec/
%define gst_ver 0.10
Requires: gstreamer >= %gst_ver
Source: http://swfdec.sourceforge.net/download/%name-%version.tar.bz2
Patch0: %name-0.3.6-libs.patch
BuildRequires: fontconfig glibc-devel-static gst-plugins-devel
BuildRequires: imake libmad-devel liboil-devel libxml2-devel
BuildRequires: libXt-devel mozilla-devel xorg-cf-files zlib-devel
BuildRequires: gstreamer-devel >= %gst_ver
BuildRequires: libgtk+2-devel >= %gtk_binary_ver
%description
Libswfdec is a decoder/renderer library for Macromedia Flash animations.
Currently it handles mostFlash 3 animations and some Flash 4.
No interactivity is supported yet.
%package -n lib%name
Summary: swfdec shared library
Group: System/Libraries
%description -n lib%name
Libswfdec is a decoder/renderer library for Macromedia Flash animations.
Currently it handles mostFlash 3 animations and some Flash 4. No
interactivity is supported yet.
%package -n lib%name-devel
Summary: swfdec development files and libraries
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package contains the files needed to build packages that depend on
swfdec.
%package -n lib%name-devel-static
Summary: swfdec static libraries
Group: Development/C
Requires: lib%name-devel = %version-%release
%description -n lib%name-devel-static
This package contains the libraries needed to build applications
statically linked with swfdec.
%package -n %name-gdk-pixbuf-loaders
Summary: GdkPixbuf loader module for SWF files.
Group: System/Libraries
PreReq: libgtk+2 >= %gtk_binary_ver
Requires: lib%name = %version-%release
%description -n %name-gdk-pixbuf-loaders
This package provides GdkPixbuf loader module for SWF files.
%package -n mozilla-plugin-%name
Summary: Mozilla plugin for Flash rendering
Group: Networking/WWW
Requires: mozilla
Obsoletes: swfdec-mozilla
%description -n mozilla-plugin-%name
Mozilla plugin for rendering of Flash animations based on the swfdec library.
%prep
%setup -q
%patch0 -p1
%build
autoreconf -isfv
%configure \
%{subst_enable static} \
--enable-pixbuf-loader
# non-parallel build
%make
%install
%make_install DESTDIR=%buildroot install
#make_install DESTDIR=%buildroot plugindir=%browser_plugins_path install
# remove non-packaged files
%__rm -f %buildroot%_libdir/mozilla/plugins/*.la
%__rm -f %buildroot%_libdir/gtk-2.0/%gtk_binary_ver/loaders/*.la
%__rm -rf %buildroot%_sysconfdir
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%post -n %name-gdk-pixbuf-loaders
%_bindir/gdk-pixbuf-query-loaders > %_sysconfdir/gtk-2.0/gdk-pixbuf.loaders
%files -n lib%name
%_libdir/*.so.*
%doc AUTHORS NEWS README TODO
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%if_enabled static
%files -n lib%name-devel-static
%_libdir/libswfdec.a
%_libdir/mozilla/plugins/libmozswfdec.a
%endif
%files -n %name-gdk-pixbuf-loaders
%_libdir/gtk-2.0/%gtk_binary_ver/*/*.so
%files -n mozilla-plugin-%name
%_bindir/swfdec-mozilla-player
%_libdir/mozilla/plugins/libswfdecmozilla.so
%changelog
…
Full changelog you can see here
%define gtk_binary_ver %gtk_ver_major.0
%def_disable static
Name: swfdec
Version: 0.3.6
Release: alt2
Summary: Flash animations rendering library
Group: System/Libraries
License: LGPL
Url: http://www.schleef.org/swfdec/
%define gst_ver 0.10
Requires: gstreamer >= %gst_ver
Source: http://swfdec.sourceforge.net/download/%name-%version.tar.bz2
Patch0: %name-0.3.6-libs.patch
BuildRequires: fontconfig glibc-devel-static gst-plugins-devel
BuildRequires: imake libmad-devel liboil-devel libxml2-devel
BuildRequires: libXt-devel mozilla-devel xorg-cf-files zlib-devel
BuildRequires: gstreamer-devel >= %gst_ver
BuildRequires: libgtk+2-devel >= %gtk_binary_ver
%description
Libswfdec is a decoder/renderer library for Macromedia Flash animations.
Currently it handles mostFlash 3 animations and some Flash 4.
No interactivity is supported yet.
%package -n lib%name
Summary: swfdec shared library
Group: System/Libraries
%description -n lib%name
Libswfdec is a decoder/renderer library for Macromedia Flash animations.
Currently it handles mostFlash 3 animations and some Flash 4. No
interactivity is supported yet.
%package -n lib%name-devel
Summary: swfdec development files and libraries
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package contains the files needed to build packages that depend on
swfdec.
%package -n lib%name-devel-static
Summary: swfdec static libraries
Group: Development/C
Requires: lib%name-devel = %version-%release
%description -n lib%name-devel-static
This package contains the libraries needed to build applications
statically linked with swfdec.
%package -n %name-gdk-pixbuf-loaders
Summary: GdkPixbuf loader module for SWF files.
Group: System/Libraries
PreReq: libgtk+2 >= %gtk_binary_ver
Requires: lib%name = %version-%release
%description -n %name-gdk-pixbuf-loaders
This package provides GdkPixbuf loader module for SWF files.
%package -n mozilla-plugin-%name
Summary: Mozilla plugin for Flash rendering
Group: Networking/WWW
Requires: mozilla
Obsoletes: swfdec-mozilla
%description -n mozilla-plugin-%name
Mozilla plugin for rendering of Flash animations based on the swfdec library.
%prep
%setup -q
%patch0 -p1
%build
autoreconf -isfv
%configure \
%{subst_enable static} \
--enable-pixbuf-loader
# non-parallel build
%make
%install
%make_install DESTDIR=%buildroot install
#make_install DESTDIR=%buildroot plugindir=%browser_plugins_path install
# remove non-packaged files
%__rm -f %buildroot%_libdir/mozilla/plugins/*.la
%__rm -f %buildroot%_libdir/gtk-2.0/%gtk_binary_ver/loaders/*.la
%__rm -rf %buildroot%_sysconfdir
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%post -n %name-gdk-pixbuf-loaders
%_bindir/gdk-pixbuf-query-loaders > %_sysconfdir/gtk-2.0/gdk-pixbuf.loaders
%files -n lib%name
%_libdir/*.so.*
%doc AUTHORS NEWS README TODO
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%if_enabled static
%files -n lib%name-devel-static
%_libdir/libswfdec.a
%_libdir/mozilla/plugins/libmozswfdec.a
%endif
%files -n %name-gdk-pixbuf-loaders
%_libdir/gtk-2.0/%gtk_binary_ver/*/*.so
%files -n mozilla-plugin-%name
%_bindir/swfdec-mozilla-player
%_libdir/mozilla/plugins/libswfdecmozilla.so
%changelog
…
Full changelog you can see here