File mingw64-libtheora.spec of Package mingw64-libtheora

#
# spec file for package mingw64-libtheora
#
# Copyright (c) 2014 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:           mingw64-libtheora
Version:        1.1.1
Release:        0
Summary:        The ogg/theora video codec library
License:        BSD-3-Clause
Group:          Development/Libraries/C and C++
Url:            http://www.theora.com
Source0:        http://downloads.xiph.org/releases/theora/libtheora-%{version}.tar.bz2
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  dos2unix
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-libogg-devel
BuildRequires:  mingw64-libpng-devel
BuildRequires:  mingw64-libvorbis-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Theora is Xiph.Org's first publicly released video codec, intended
for use within the Ogg's project's Ogg multimedia streaming system.
Theora is derived directly from On2's VP3 codec.

%package -n mingw64-libtheora0
Summary:        The ogg/theora video codec library
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw64-libtheora0
Theora is Xiph.Org's first publicly released video codec, intended
for use within the Ogg's project's Ogg multimedia streaming system.
Theora is derived directly from On2's VP3 codec.

%package -n mingw64-libtheoradec1
Summary:        The ogg/theora video codec library
Group:          System/Libraries

%description -n mingw64-libtheoradec1
Theora is Xiph.Org's first publicly released video codec, intended
for use within the Ogg's project's Ogg multimedia streaming system.
Theora is derived directly from On2's VP3 codec.

%package -n mingw64-libtheoraenc1
Summary:        The ogg/theora video codec library
Group:          System/Libraries

%description -n mingw64-libtheoraenc1
Theora is Xiph.Org's first publicly released video codec, intended
for use within the Ogg's project's Ogg multimedia streaming system.
Theora is derived directly from On2's VP3 codec.

%package devel
Summary:        The ogg/theora video codec library (development files)
Group:          Development/Libraries/C and C++

%description devel
Theora is Xiph.Org's first publicly released video codec, intended
for use within the Ogg's project's Ogg multimedia streaming system.
Theora is derived directly from On2's VP3 codec.

%_mingw64_debug_package

%prep
%setup -q -n libtheora-%{version}
dos2unix win32/xmingw*/*.def

%build
./autogen.sh --help
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH"; export PATH; \
%{_mingw64_configure} \
	--enable-shared --disable-static \
	--disable-oggtest --disable-vorbistest \
	--disable-sdltest --disable-examples
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install
%{_mingw64_make} DESTDIR=%{buildroot} install

%files -n mingw64-libtheora0
%defattr(-,root,root)
%{_mingw64_bindir}/libtheora-0.dll

%files -n mingw64-libtheoradec1
%defattr(-,root,root)
%{_mingw64_bindir}/libtheoradec-1.dll

%files -n mingw64-libtheoraenc1
%defattr(-,root,root)
%{_mingw64_bindir}/libtheoraenc-1.dll

%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/theora
%{_mingw64_libdir}/libtheora.dll.a
%{_mingw64_libdir}/libtheoradec.dll.a
%{_mingw64_libdir}/libtheoraenc.dll.a
%{_mingw64_libdir}/pkgconfig/theoradec.pc
%{_mingw64_libdir}/pkgconfig/theoraenc.pc
%{_mingw64_libdir}/pkgconfig/theora.pc
%{_mingw64_datadir}/doc/libtheora-%{version}

%changelog
openSUSE Build Service is sponsored by