swfdec/swfdec-0.3.2.spec

Name: swfdec
Summary: Flash animations rendering library
Version: 0.3.2
Release: 3
License: LGPL
Group: System Environment/Libraries
URL: http://swfdec.sourceforge.net/
Description: Libswfdec is a library for rendering Flash animations. Currently it handles most Flash 3 animations and some Flash 4. No interactivity is supported yet.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag


%{!?dtag: %define gimp_plugin 1}
%{?el4:   %define gimp_plugin 1}
%{?fc3:   %define gimp_plugin 1}
%{?fc2:   %define gimp_plugin 1}
%{?yd4:   %define gimp_plugin 1}

Summary: Flash animations rendering library
Name: swfdec
Version: 0.3.2
Release: 3%{?dist}
License: LGPL
Group: System Environment/Libraries
URL: http://swfdec.sourceforge.net/
Source: http://www.schleef.org/swfdec/download/swfdec-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: mozilla-devel, libart_lgpl-devel, gtk2-devel >= 2.1.2
BuildRequires: libmad-devel, SDL-devel, gdk-pixbuf-devel, gcc-c++
BuildRequires: liboil-devel <= 0.2.2
%{?gimp_plugin:BuildRequires: gimp-devel >= 2.0}

%description
Libswfdec is a library for rendering Flash animations. Currently it
handles most Flash 3 animations and some Flash 4. No interactivity is
supported yet.


%package devel
Summary: Header files, libraries and development documentation for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.


%package -n mozilla-swfdec
Summary: Mozilla plugin for Flash rendering
Group: Applications/Internet
Requires: %{name} = %{version}

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


%prep
%setup


%build
%configure
%{__make} %{?_smp_mflags}


%install
%{__rm} -rf %{buildroot}
%makeinstall


%clean
%{__rm} -rf %{buildroot}


%post
/sbin/ldconfig 2>/dev/null
/usr/bin/update-gdk-pixbuf-loaders . || :

### Backward compatibility for gtk < 2.4.13-9
[ -x %{_bindir}/gdk-pixbuf-query-loaders ] && \
    %{_bindir}/gdk-pixbuf-query-loaders > \
        %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders || :

%postun
/sbin/ldconfig 2>/dev/null
/usr/bin/update-gdk-pixbuf-loaders . || :

### Backward compatibility for gtk < 2.4.13-9
[ -x %{_bindir}/gdk-pixbuf-query-loaders ] && \
    %{_bindir}/gdk-pixbuf-query-loaders > \
        %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders || :


%files
%defattr(-, root, root, 0755)
%doc AUTHORS COPYING README TODO
%exclude %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
%{_bindir}/swf_play
%{_libdir}/libswfdec*.so.*
%{?gimp_plugin:%{_libdir}/gimp/1.3/plug-ins/swf}
%{_libdir}/gtk-2.0/*/loaders/swf_loader.so

%files devel
%defattr(-, root, root, 0755)
%{_includedir}/swfdec*/
%exclude %{_libdir}/gtk-2.0/*/loaders/swf_loader.a
%exclude %{_libdir}/gtk-2.0/*/loaders/swf_loader.la
%{_libdir}/libswfdec*.a
%exclude %{_libdir}/libswfdec*.la
%{_libdir}/libswfdec*.so
%{_libdir}/pkgconfig/swfdec*.pc

%files -n mozilla-swfdec
%defattr(-, root, root, 0755)
%exclude %{_libdir}/mozilla/plugins/libmozswfdec.a
%exclude %{_libdir}/mozilla/plugins/libmozswfdec.la
%{_libdir}/mozilla/plugins/libmozswfdec.so


%changelog
* Tue Apr 05 2005 Dag Wieers <dag@wieers.com> - 0.3.2-3
- Rebuild against liboil-0.3.1.

* Fri Nov 26 2004 Dag Wieers <dag@wieers.com> - 0.3.2-2
- Added update-gdk-pixbuf-loaders to scriptlets.

* Thu Nov 25 2004 Matthias Saou <http://freshrpms.net/> 0.3.2-2
- Make scriplets never return a failure.

* Wed Nov 24 2004 Matthias Saou <http://freshrpms.net/> 0.3.2-1
- Update to 0.3.2.

* Tue Nov  9 2004 Matthias Saou <http://freshrpms.net/> 0.3.1-1
- Make gimp plugin conditional and build only for FC2, FC3 and YD4 (gimp2).

* Fri Nov 05 2004 Dag Wieers <dag@wieers.com> - 0.3.1-1
- Updated to release 0.3.1.

* Wed Oct 20 2004 Matthias Saou <http://freshrpms.net/> 0.3.0-1
- Update to 0.3.0.
- Added new liboil-devel and gimp2-devel dependencies.
- Added gimp plugin... strange, it goes into 1.3 :-/

* Tue Jan 20 2004 Dag Wieers <dag@wieers.com> - 0.2.2-1
- Added missing swfdec requirement. (Alexandre Oliva)

* Thu Aug 28 2003 Dag Wieers <dag@wieers.com> - 0.2.2-0
- Initial package. (using DAR)