File mingw32-libtheora.spec of Package mingw32-libtheora
#
# spec file for package mingw32-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: mingw32-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: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem >= 23
BuildRequires: mingw32-libogg-devel
BuildRequires: mingw32-libpng-devel
BuildRequires: mingw32-libvorbis-devel
%_mingw32_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 mingw32-libtheora0
Summary: The ogg/theora video codec library
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw32-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 mingw32-libtheoradec1
Summary: The ogg/theora video codec library
Group: System/Libraries
%description -n mingw32-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 mingw32-libtheoraenc1
Summary: The ogg/theora video codec library
Group: System/Libraries
%description -n mingw32-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.
%_mingw32_debug_package
%prep
%setup -q -n libtheora-%{version}
dos2unix win32/xmingw*/*.def
%build
./autogen.sh --help
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw32_cache}
PATH="%{_mingw32_bindir}:$PATH"; export PATH; \
%{_mingw32_configure} \
--enable-shared --disable-static \
--disable-oggtest --disable-vorbistest \
--disable-sdltest --disable-examples
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}
%install
%{_mingw32_make} DESTDIR=%{buildroot} install
%files -n mingw32-libtheora0
%defattr(-,root,root)
%{_mingw32_bindir}/libtheora-0.dll
%files -n mingw32-libtheoradec1
%defattr(-,root,root)
%{_mingw32_bindir}/libtheoradec-1.dll
%files -n mingw32-libtheoraenc1
%defattr(-,root,root)
%{_mingw32_bindir}/libtheoraenc-1.dll
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/theora
%{_mingw32_libdir}/libtheora.dll.a
%{_mingw32_libdir}/libtheoradec.dll.a
%{_mingw32_libdir}/libtheoraenc.dll.a
%{_mingw32_libdir}/pkgconfig/theoradec.pc
%{_mingw32_libdir}/pkgconfig/theoraenc.pc
%{_mingw32_libdir}/pkgconfig/theora.pc
%{_mingw32_datadir}/doc/libtheora-%{version}
%changelog