implement System.capabilities.Query()
[swfdec.git] / swfdec.spec.in
blobbcbccec05309ae0b26ca15bb04895274a0325376
1 Name: swfdec
2 Version: @VERSION@
3 Release: gst.2
4 Summary: Flash animations redering library
6 Group: Libraries/Multimedia
7 License: LGPL
8 URL: http://swfdec.sourceforge.net/
9 Vendor: GStreamer Backpackers Team <package@gstreamer.net>
10 Source: http://swfdec.sourceforge.net/download/%{name}-%{version}.tar.gz
11 BuildRoot: %{_tmppath}/%{name}-root
12 BuildRequires: mozilla-devel
13 BuildRequires: gtk2-devel => 2.2.0
14 Requires: gtk2 => 2.2.0
15 Prereq: /sbin/ldconfig
17 %description
18 Libswfdec is a library for rendering Flash animations. Currently it handles mostFlash 3 animations and some Flash 4. No interactivity is supported yet.
20 %package devel
21 Summary: swfdec development files and static libraries.
22 Group: Development/Libraries
23 Requires: %{name} = %{version}-%{release}
25 %description devel
26 swfdec-devel contains the files needed to build packages that depend on swfdec.
28 %package mozilla
29 Summary: Mozilla plugin for Flash rendering
30 Group: Applications/Internet
31 Requires: %{name} = %{version}-%{release}
32 Requires: mozilla
34 %description mozilla
35 Mozilla plugin for rendering of Flash animations based on swfdec library
37 %prep
38 %setup -q
40 %build
41 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --enable-shared
42 make
44 %install
45 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
47 %makeinstall
48 # Clean out files that should not be part of the rpm.
49 # This is the recommended way of dealing with it for RH8
50 rm -f $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/*.la
51 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
52 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.2.0/loaders/swf_loader.la
53 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
54 %clean
55 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
57 %post
58 /sbin/ldconfig
59 mkdir -p %{_sysconfdir}/gtk-2.0
60 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
62 %postun
63 /sbin/ldconfig
64 gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
67 %files
68 %defattr(-,root,root)
69 %doc AUTHORS COPYING NEWS README TODO
70 %{_bindir}/swf_play
71 %{_libdir}/libswfdec.so.*
72 %{_libdir}/gtk-2.0/2.2.0/loaders/swf_loader.so
74 %files devel
75 %defattr(-,root,root)
76 %{_libdir}/libswfdec.a
77 %{_libdir}/libswfdec.so
78 %{_libdir}/pkgconfig/swfdec.pc
79 %{_includedir}/swfdec/swf.h
80 %{_includedir}/swfdec/swfdec.h
81 %{_libdir}/gtk-2.0/2.2.0/loaders/swf_loader.a
83 %files mozilla
84 %defattr(-,root,root)
85 %{_libdir}/mozilla/plugins/libmozswfdec.so*
86 %{_libdir}/mozilla/plugins/libmozswfdec.a
88 %changelog
89 * Wed Feb 05 2003 Christian F.K. Schaller <Uraeus@linuxrising.org>
90 - Update spec to handle pixbuf loader
91 * Sat Oct 26 2002 Christian F.K. Schaller <Uraeus@linuxrising.org>
92 - First attempt at spec