File mingw32-libvorbis.spec of Package mingw32-libvorbis
%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
%{_mingw32_install_post}
Name: mingw32-libvorbis
Version: 1.3.3
Release: 0
Summary: The Vorbis General Audio Compression Codec
License: BSD 3-Clause
URL: http://www.vorbis.com
Source0: http://downloads.xiph.org/releases/vorbis/libvorbis-%{version}.tar.xz
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-libogg-devel
BuildRequires: xz
%description
Vorbis is a fully open, nonproprietary, patent-and-royalty-free, and
general-purpose compressed audio format for audio and music at fixed
and variable bit rates from 16 to 128 kbps/channel.
The native bitstream format of Vorbis is libogg (Ogg). Alternatively,
libmatroska (matroska) can also be used.
%package devel
Summary: The Vorbis General Audio Compression Codec (development files)
Group: Development/Libraries
%description devel
Vorbis is a fully open, nonproprietary, patent-and-royalty-free, and
general-purpose compressed audio format for audio and music at fixed
and variable bit rates from 16 to 128 kbps/channel.
The native bitstream format of Vorbis is libogg (Ogg). Alternatively,
libmatroska (matroska) can also be used.
%{_mingw32_debug_package}
%prep
%setup -q -n libvorbis-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw32_cache}
PATH="%{_mingw32_bindir}:$PATH"; export PATH; \
%{_mingw32_configure} \
--enable-shared --disable-static
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}
%install
%{_mingw32_make} DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_mingw32_bindir}/libvorbisenc-2.dll
%{_mingw32_bindir}/libvorbisfile-3.dll
%{_mingw32_bindir}/libvorbis-0.dll
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/vorbis
%{_mingw32_libdir}/libvorbis.dll.a
%{_mingw32_libdir}/libvorbisfile.dll.a
%{_mingw32_libdir}/libvorbisenc.dll.a
%{_mingw32_libdir}/pkgconfig/vorbisfile.pc
%{_mingw32_libdir}/pkgconfig/vorbisenc.pc
%{_mingw32_libdir}/pkgconfig/vorbis.pc
%{_mingw32_datadir}/aclocal/vorbis.m4
%{_mingw32_datadir}/doc/libvorbis-%{version}
%changelog