File swfdec.spec of Package swfdec

#
# spec file for package swfdec (Version 0.8.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           swfdec
# Patched code is built by default.
# Use rpmbuild -D 'BUILD_ORIG 1' to build original code.
# Use rpmbuild -D 'BUILD_ORIG 1' -D 'BUILD_ORIG_ADDON 1' to name original code as -orig.
Url:            http://swfdec.freedesktop.org/
BuildRequires:  alsa-devel cairo-devel gstreamer-0_10-plugins-base-devel gstreamer010-devel gtk2-devel liboil-devel libsoup-devel
# Only for directory ownership:
BuildRequires:  gtk-doc
%if 0%{?BUILD_ORIG}
BuildRequires:  ffmpeg-devel mad-devel
%if ! 0%{?BUILD_ORIG_ADDON}
Obsoletes:      %{name}-orig
%endif
%else
Provides:       patched_build
Conflicts:      %{name}-orig
%endif
License:        LGPL v2.1 or later
Group:          Productivity/Multimedia/Other
Summary:        A Free Flash Player
Version:        0.8.4
Release:        1
Source:         http://swfdec.freedesktop.org/download/swfdec/0.8/%name-%version.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
swfdec is a free flash player. It is usually embedded into a browser
via the swfdec-mozilla package for instance.



Authors:
--------
    Benjamin Otte <otte@gnome.org>
    David Schleef <ds@schleef.org>

%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}

%package orig
License:        LGPL v2.1 or later
Group:          Productivity/Multimedia/Other
Summary:        A free Flash player
Provides:       %{name} = %{version}-%{release}

%description orig
swfdec is a free flash player. It is usually embedded into a browser
via for instance the swfdec-mozilla package.



Authors:
--------
    Benjamin Otte <otte@gnome.org>
    David Schleef <ds@schleef.org>

%endif
%endif
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}

%package orig-devel
License:        LGPL v2.1 or later
Provides:       %{name}-devel = %{version}-%{release}
%else

%package devel
License:        LGPL v2.1 or later
Obsoletes:      %{name}-orig-devel
%endif
Requires:       ffmpeg-devel mad-devel
%else

%package devel
License:        LGPL v2.1 or later
Provides:       patched_build
Conflicts:      %{name}-orig-devel
%endif
Group:          Productivity/Multimedia/Other
Summary:        A free Flash player
Requires:       %{name} = %{version} glib2-devel liboil-devel cairo-devel pango-devel gtk2-devel gstreamer010-devel gstreamer-0_10-plugins-base-devel libsoup-devel
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}

%description orig-devel
swfdec is a free flash player. It is usually embedded into a browser
via for instance the swfdec-mozilla package.



Authors:
--------
    Benjamin Otte <otte@gnome.org>
    David Schleef <ds@schleef.org>

%else

%description devel
swfdec is a free flash player. It is usually embedded into a browser
via for instance the swfdec-mozilla package.



Authors:
--------
    Benjamin Otte <otte@gnome.org>
    David Schleef <ds@schleef.org>

%endif
%else

%description devel
swfdec is a free flash player. It is usually embedded into a browser
via for instance the swfdec-mozilla package.



Authors:
--------
    Benjamin Otte <otte@gnome.org>
    David Schleef <ds@schleef.org>

%endif

%package doc
License:        LGPL v2.1 or later
Group:          Productivity/Multimedia/Other
Summary:        A free Flash player
Requires:       %{name} = %{version}

%description doc
swfdec is a free flash player. It is usually embedded into a browser
via for instance the swfdec-mozilla package.



Authors:
--------
    Benjamin Otte <otte@gnome.org>
    David Schleef <ds@schleef.org>

%prep
%setup -q

%build
# Do it, otherwise it can fail on bi-arch with:
# /usr/lib/lib....so: could not read symbols: File in wrong format
export LDFLAGS=-L%{_libdir}
%configure\
%if ! 0%{?BUILD_ORIG}
	--disable-mad \
	--disable-ffmpeg \
%endif
	--disable-static
# Parallel build does not work: error: jsautocfg.h: No such file or directory
#make %{?jobs:-j%jobs}
make

%install
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}

%post orig -p /sbin/ldconfig

%postun orig -p /sbin/ldconfig
%else

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig
%endif
%else

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig
%endif
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}

%files orig
%else

%files
%endif
%else

%files
%endif
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README
%{_libdir}/*.so.*
%if 0%{?BUILD_ORIG}
%if 0%{?BUILD_ORIG_ADDON}

%files orig-devel
%else

%files devel
%endif
%else

%files devel
%endif
%defattr(-, root, root)
%{_includedir}/swfdec-*
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/swfdec*.pc

%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/swfdec

%changelog
* Sun Dec 21 2008 meissner@suse.de
- Updated to version 0.8.4 ("H264")
  - support H264, so all Youtube videos play again
  - fix various portability issues for ARM
  - fix rare crash with gotoAndPlay() function
  - fix rare crasher with setTarget() function
  - fix crashes in BitmapData.copyPixels()
  - zero memory before rendering in PulseAudio backend
  - improve Cairo check in testsuite
* Fri Oct 24 2008 meissner@suse.de
- Update to version 0.8.2 ("Gametrailers")
  - fix crash when reading invalid JPEG images
  - fix invalid memory accesses
  - fix deadlock when sound stream had no data
  - fix regression where some files weren't loaded.
  - lots of memory leaks plugged
  - various build fixes/improvements
* Mon Sep 15 2008 meissner@suse.de
- actually package 0.8.0
* Fri Sep 12 2008 maw@suse.de
- Update to version 0.8.0 ("Slide"):
  + rework ActionScript function calls to improve performance
  + increase Flash version Swfdec reports to 9.0.999.0
  + implement flash.geom.Matrix
  + implement various native functions
  + add API to query Swfdec's version
  + lots of correctness fixes
  + lots of bugfixes.
* Wed Aug 20 2008 meissner@suse.de
- Updated to 0.7.4 "Diabloe"
  - support for color transforms,BitmapData objects,
  - speed improvements
  - bug fixes
- Updated to 0.7.2 "Rock You"
  - added ability to enter text in text fields
  - pushing the fullscreen button on Youtube will give you a full screen video
  - most work was spent on the debugging framework and script interpretation conformance
  - see NEWS file for more details
- Icons no longer included.
* Tue Jun 24 2008 meissner@suse.de
- Updated to 0.6.6 "Faith Fighter"
	- fix a crash for palettized images
	- fix a crash for oversized images
	- make ALSA devices work that don't support mmap
* Mon Apr 14 2008 meissner@suse.de
- updated to 0.6.4 "College Humor"
  fix a security problem that allowed remote Flash files to read local files.
  bnc#379047
  fix a rare crash in TextField.replaceText
  fix a rare crash during cleanup
- updated to 0.6.2 "Badger Badger Badger"
  first bugfix release of 0.6.0
* Wed Mar 05 2008 meissner@suse.de
- update to 0.6.0 "Fedora TV"
  Here is the first API/ABI-stable release of Swfdec. Enjoy!
   - support missing plugin installation. GStreamer requirement bumped to 0.10.17
   - lots of improvements to testsuite. It uses plugins now so multiple Flash
  players can be tested.
   - XMLSocket now works
   - rework buffer API
   - lots of bug- and conformance fixes
* Mon Feb 04 2008 ro@suse.de
- update to 0.5.90
  - rename "libswfdec(-gtk)" dir to "swfdec(-gtk)"
  - update libsoup requirement to 2.4
  - rework input API - now has SwfdecStream, SwfdecLoader and SwfdecSocket classes
  - new and improved testsuite
  - completely overhaul security subsystem, invalid access denies should be a
  thing of the past
  - implement flash.geom.Point and flash.geom.Rectangle
  - implement internal parts of ExternalInterface object
  - plug various memory leaks
  - fix lots of internal bugs
  - various portability fixes for embedded and OpenBSD
* Tue Dec 18 2007 meissner@suse.de
- upgraded to 0.5.5
  - lots of new movies and image formats
  - start of security framework
  - plays youtube even better (in the restricted version)
* Wed Nov 14 2007 meissner@suse.de
- upgraded to 0.5.3
  - lots of new features and fixes
- some rpm cleanups
* Tue Apr 17 2007 sbrabec@suse.cz
- Split devel and doc subpackages.
- Support for BUILD_ORIG and BUILD_ORIG_ADDON defines (#237351).
* Thu Mar 29 2007 meissner@suse.de
- Initial import of swfdec-0.4.3. Opensource Flash Player.
  Disabled MAD and FFMPEG support (for now).