Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37856215
en ru br
ALT Linux repos
5.0: 0.8.2-alt1
4.1: 0.6.6-alt1
4.0: 0.3.6-alt2
3.0: 0.3.5-alt1

Group :: System/Libraries
RPM: swfdec

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define gtk_ver_major 2.4
%define gtk_binary_ver %gtk_ver_major.0

%def_disable static

Name: swfdec
Version: 0.3.5
Release: alt1

Summary: Flash animations redering library
Group: System/Libraries
License: LGPL
Url: http://swfdec.sourceforge.net
Source: http://swfdec.sourceforge.net/download/%name-%version.tar.gz

# Automatically added by buildreq on Mon Jun 13 2005

BuildRequires: XFree86-devel-static XFree86-libs ORBit2-devel gcc-c++ glib2-devel gstreamer-devel gstreamer-plugins-devel libGConf2-devel libSDL-devel libart_lgpl-devel libatk-devel libgtk+2-devel libmad-devel liboil-devel libpango-devel libpopt-devel libstdc++-devel libxml2-devel mozilla-devel pkgconfig zlib-devel

%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 swfplay
Summary: Simple flash player
Group: Video
Requires: lib%name = %version-%release

%description -n swfplay
Simple player based on swfdec library.

%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
Requires: lib%name = %version-%release

%description -n %name-gdk-pixbuf-loaders
This package provides GdkPixbuf loader module for SWF files.

%package mozilla
Summary: Mozilla plugin for Flash rendering
Group: Networking/WWW
Requires: mozilla

%description mozilla
Mozilla plugin for rendering of Flash animations based on swfdec library.

%prep
%setup -q
%__subst 's,\(liboil-0.\)2,\13,' configure*

%build
%configure \
   %{subst_enable static} \
   --enable-pixbuf-loader \
   --enable-mozilla-plugin

%make_build

%install
%makeinstall

# 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 swfplay
%_bindir/swf_play

%files -n lib%name
%_libdir/*.so.*
%doc AUTHORS 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 mozilla
%_bindir/swfdec-mozilla-player
%_libdir/mozilla/plugins/libswfdecmozilla.so

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin