File schroedinger.spec of Package schroedinger

#
# spec file for package schroedinger
#
# Copyright (c) 2012 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/
#


Name:           schroedinger
Version:        1.0.11
Release:        0
Summary:        Library for decoding and encoding video in the Dirac format
License:        GPL-2.0 ; LGPL-2.0 ; MPL-1.1 ; MIT
Group:          Productivity/Multimedia/Other
Url:            http://schrodinger.sourceforge.net/
Source:         http://diracvideo.org/download/schroedinger/%{name}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  gtk-doc
BuildRequires:  orc >= 0.4.16
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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.

%package -n libschroedinger-1_0-0
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.

%package devel
Summary:        Library for decoding and encoding video in the Dirac format
Group:          Development/Libraries/Other
Requires:       libschroedinger-1_0-0 = %{version}
Requires:       glib2-devel
Requires:       orc
Provides:       libschroedinger-devel = %{version}-%{release}

%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.

%package doc
Summary:        Library for decoding and encoding video in the Dirac format
Group:          Productivity/Multimedia/Other
Requires:       libschroedinger-1_0-0 = %{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.

%prep
%setup -q

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

%install
%makeinstall docdir=%{_docdir}/%{name}
find %{buildroot} -type f -name "*.la" -delete -print

%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 devel
%defattr(-,root,root)
%{_includedir}/schroedinger-1.0/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

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

%changelog