File schroedinger.spec of Package schroedinger

#
# spec file for package schroedinger (Version 1.0.5)
#
# Copyright (c) 2008 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

%define min_oil_version 0.3.13
%define min_gst_version 0.10.12

Name:           schroedinger
Summary:        Library for decoding and encoding video in the Dirac format
Url:            http://schrodinger.sourceforge.net/
Group:          Productivity/Multimedia/Other
License:        GPL v2 only; LGPL v2.0 only; MOZILLA PUBLIC LICENSE (MPL/NPL); X11/MIT
Version:        1.0.5
Release:        2
Source:         %{name}-%{version}.tar.bz2
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gstreamer-0_10-devel >= %{min_gst_version} gstreamer-0_10-plugins-base-devel >= %{min_gst_version} gtk-doc liboil-devel >= %{min_oil_version} pkg-config

%description
The Schroedinger project implements portable libraries for the high
quality Dirac video codec created by BBC Research and Development.
Dirac is a free and open source codec producing very high image quality
video. The project produces two libraries in ANSI C89, one for decoding
and one for encoding.



Authors:
--------
    David Schleef <ds@schleef.org>
    W.J. van der Laan <laanwj@gmail.com>

%package -n libschroedinger-1_0-0
License:        GPL v2 only; LGPL v2.0 only; MOZILLA PUBLIC LICENSE (MPL/NPL); X11/MIT
Summary:        Library for decoding and encoding video in the Dirac format
Group:          Productivity/Multimedia/Other
Provides:       %{name} = %{version}
Obsoletes:      %{name} <= %{version}

%description -n libschroedinger-1_0-0
The Schroedinger project implements portable libraries for the high
quality Dirac video codec created by BBC Research and Development.
Dirac is a free and open source codec producing very high image quality
video. The project produces two libraries in ANSI C89, one for decoding
and one for encoding.



Authors:
--------
    David Schleef <ds@schleef.org>
    W.J. van der Laan <laanwj@gmail.com>

%package -n gstreamer-0_10-schroedinger
License:        GPL v2 only; LGPL v2.0 only; MOZILLA PUBLIC LICENSE (MPL/NPL); X11/MIT
Summary:        Library for decoding and encoding video in the Dirac format
Group:          Productivity/Multimedia/Other
Requires:       schroedinger = %{version} gstreamer-0_10 >= %{min_gst_version} gstreamer-0_10-plugins-base >= %{min_gst_version}

%description -n gstreamer-0_10-schroedinger
The Schroedinger project implements portable libraries for the high
quality Dirac video codec created by BBC Research and Development.
Dirac is a free and open source codec producing very high image quality
video. The project produces two libraries in ANSI C89, one for decoding
and one for encoding.



Authors:
--------
    David Schleef <ds@schleef.org>
    W.J. van der Laan <laanwj@gmail.com>

%package devel
License:        GPL v2 only; LGPL v2.0 only; MOZILLA PUBLIC LICENSE (MPL/NPL); X11/MIT
Summary:        Library for decoding and encoding video in the Dirac format
Group:          Development/Libraries/Other
Requires:       schroedinger = %{version} liboil-devel >= %{min_oil_version}

%description devel
The Schroedinger project implements portable libraries for the high
quality Dirac video codec created by BBC Research and Development.
Dirac is a free and open source codec producing very high image quality
video. The project produces two libraries in ANSI C89, one for decoding
and one for encoding.



Authors:
--------
    David Schleef <ds@schleef.org>
    W.J. van der Laan <laanwj@gmail.com>

%package doc
License:        GPL v2 only; LGPL v2.0 only; MOZILLA PUBLIC LICENSE (MPL/NPL); X11/MIT
Summary:        Library for decoding and encoding video in the Dirac format
Group:          Productivity/Multimedia/Other
Requires:       schroedinger = %{version}

%description doc
The Schroedinger project implements portable libraries for the high
quality Dirac video codec created by BBC Research and Development.
Dirac is a free and open source codec producing very high image quality
video. The project produces two libraries in ANSI C89, one for decoding
and one for encoding.



Authors:
--------
    David Schleef <ds@schleef.org>
    W.J. van der Laan <laanwj@gmail.com>

%prep
%setup -q -n schroedinger-%{version}

%build
%configure
%{__make} %{?jobs:-j%jobs} docdir=%{_docdir}/%{name}

%install
%makeinstall docdir=%{_docdir}/%{name}
%{__install} -d $RPM_BUILD_ROOT%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libschroedinger-1_0-0 -p /sbin/ldconfig

%postun -n libschroedinger-1_0-0 -p /sbin/ldconfig

%files -n libschroedinger-1_0-0
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.MIT COPYING.GPL COPYING.LGPL COPYING.MPL
%{_libdir}/*.so.0*

%files -n gstreamer-0_10-schroedinger
%defattr(-,root,root)
%{_libdir}/gstreamer-0.10/*.so
%exclude %{_libdir}/gstreamer-0.10/*.*a

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

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

%changelog
* Thu Nov 06 2008 sbrabec@suse.cz
- Use better package name for gstreamer package.
* Fri Aug 15 2008 abockover@suse.de
- Updated to 1.0.5 release
- Many bug fixes
- Better documentation
- Performance gains in the encoder
- GStreamer element improvements
* Mon Mar 10 2008 abockover@suse.de
- New schroedinger package (1.0.0 release)
- Provides a high quality optimized implementation of the Dirac
  video codec from the BBC
- Four packages:
  * libschroedinger-1_0-0: Base Schroedinger library
  * gstreamer-0_10-libschroedinger-1_0-0: GStreamer plugin for decoding
  and encoding Dirac video content
  * schroedinger-devel: Header files for developing against Schroedinger
  * shroedinger-doc: Documentation (gtk-doc) for the Schroedinger library
openSUSE Build Service is sponsored by