schroedinger/schroedinger.spec
OBS User autobuild 162af098d7 Accepting request 19091 from multimedia:apps
Copy from multimedia:apps/schroedinger based on submit request 19091 from user mseben

OBS-URL: https://build.opensuse.org/request/show/19091
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/schroedinger?expand=0&rev=6
2009-08-28 20:09:56 +00:00

181 lines
6.1 KiB
RPMSpec

#
# spec file for package schroedinger (Version 1.0.7)
#
# 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
%define min_oil_version 0.3.16
%define min_gst_version 0.10.19
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 ; MPL .. ; MIT License (or similar)
Version: 1.0.7
Release: 3
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM schroedinger-am111.patch taken from git, 154148 -- Do not install headers twice
Patch0: schroedinger-am111.patch
# PATCH-FIX-UPSTREAM schroedinger-strict-aliasing.patch 7831a506bc6714b3db40e31584e61ccaa71d78d9 sbrabec@suse.cz -- Fix strict aliasing.
Patch1: %{name}-strict-aliasing.patch
# PATCH-FIX-UPSTREAM schroedinger-gstreamer-conflict.patch rename function, which conflicts with gstreamer
Patch2: %{name}-gstreamer-conflict.patch
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
BuildRequires: gcc-c++
%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 ; MPL .. ; MIT License (or similar)
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 ; MPL .. ; MIT License (or similar)
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 ; MPL .. ; MIT License (or similar)
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 ; MPL .. ; MIT License (or similar)
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}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
%configure\
--disable-static
%{__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