%define major_version 0.4
%define liboil_version 0.3.1.1
%define gtk2_version 2.8.0
Name: swfdec
Version: %{major_version}.4
Release: 1%{?dist}
Summary: Flash animation rendering library
Group: System Environment/Libraries
License: LGPL
URL: http://swfdec.freedesktop.org/
Source0: http://swfdec.freedesktop.org/download/%{name}/%{major_version}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: liboil-devel >= %{liboil_version}
BuildRequires: libmad-devel
BuildRequires: gtk2-devel >= %{gtk2_version}
BuildRequires: pango-devel
BuildRequires: ffmpeg-devel
BuildRequires: alsa-lib-devel
BuildRequires: js-devel
BuildRequires: gstreamer-devel >= 0.10.11
BuildRequires: gnome-vfs2-devel
Requires(pre): /sbin/ldconfig
Requires(post): /sbin/ldconfig
%description
swfdec is a library for rendering Adobe Flash animations. Currently it handles
most Flash 3, 4 and many Flash 7 videos.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: liboil-devel >= %{liboil_version}
Requires: pkgconfig
%description devel
%{name}-devel contains the files needed to build packages that depend on
swfdec.
%package gtk
Summary: A library for easy embedding of Flash files in an application
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description gtk
%{name}-gtk is a library for developers that allows one to easily embed
Flash videos and animations into their appplications.
%package gtk-devel
Summary: Development files for swfdec-gtk
Group: Development/Libraries
Requires: %{name}-gtk = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release}
Requires: gtk2-devel >= %{gtk2_version}
%description gtk-devel
%{name}-gtk is a library for developers that allows one to easily embed
Flash videos and animations into their appplications. This package contains
files necessary to build packages and appplications that use %{name}-gtk.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%post gtk -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%postun gtk -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README
%{_libdir}/libswfdec-%{major_version}.so.*
%exclude %{_libdir}/*.la
%files devel
%defattr(-,root,root,-)
%doc COPYING
%{_datadir}/gtk-doc/html/%{name}/
%{_libdir}/pkgconfig/%{name}-%{major_version}.pc
%{_libdir}/libswfdec-%{major_version}.so
%dir %{_includedir}/%{name}-%{major_version}
%{_includedir}/%{name}-%{major_version}/libswfdec/
%files gtk
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/libswfdec-gtk-%{major_version}.so.*
%files gtk-devel
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/libswfdec-gtk-%{major_version}.so
%{_libdir}/pkgconfig/%{name}-gtk-%{major_version}.pc
%{_includedir}/%{name}-%{major_version}/libswfdec-gtk/
%changelog
* Sat Apr 28 2007 Peter Gordon <peter@thecodergeek.com> - 0.4.4-1
- Update to new upstream release (0.4.4), which adds two new subpackages:
swfdec-gtk and swfdec-gtk-devel.
* Sun Mar 25 2007 Peter Gordon <peter@thecodergeek.com> - 0.4.3-2
- Add js-devel to the BuildRequires to fix compilation in Mock.
(Thanks to Julian Sikorski; Livna bug #1453)
* Sat Mar 24 2007 Peter Gordon <peter@thecodergeek.com> - 0.4.3-1
- Update to new upstream release (0.4.3), with lots of spec cleanups
- Spec file based heavily on Thomas Vander Stichele's 0.3.6 stuff.
* Sun Dec 03 2006 Thomas Vander Stichele <thomas at apestaart dot org>
- 0.3.6-0.gst.2
- fix pre/post scripts
* Sun Dec 03 2006 Thomas Vander Stichele <thomas at apestaart dot org>
- 0.3.6-0.gst.1
- new upstream
- remove swf_play
- add js-devel and gimp-devel buildrequires
- add gimp plugin
* Fri Jun 24 2005 Thomas Vander Stichele <thomas at apestaart dot org>
- 0.3.5-0.gst.1
- updated to new upstream
* Tue May 17 2005 Thomas Vander Stichele <thomas at apestaart dot org>
- 0.3.4-0.gst.1
- updated to new upstream
* Thu Mar 03 2005 Thomas Vander Stichele <thomas at apestaart dot org>
- 0.3.2-0.lvn.1
- updated to new liboil and upstream release
* Thu Nov 11 2004 Thomas Vander Stichele <thomas at apestaart dot org>
- new upstream release
* Thu May 20 2004 Thomas Vander Stichele <thomas at apestaart dot org>
- 0.2.2-0.lvn.2
- require gcc-c++ for libtool
- fix pre/post req
- fix gtk loaders location
- work around FC2 packaging bug for SDL-devel
* Tue Mar 02 2004 Thomas Vander Stichele <thomas at apestaart dot org>
- 0.2.2-0.lvn.1: updated for rpm.livna.us (without mozilla plugin)
* Mon May 19 2003 Thomas Vander Stichele <thomas at apestaart dot org>
- Updated for 0.2.2
* Wed Feb 05 2003 Christian F.K. Schaller <Uraeus@linuxrising.org>
- Update spec to handle pixbuf loader
* Sat Oct 26 2002 Christian F.K. Schaller <Uraeus@linuxrising.org>
- First attempt at spec