File mingw64-libvorbis.spec of Package mingw64-libvorbis

#
# spec file for package mingw64-libvorbis
#
# 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-libvorbis
Version:        1.3.7
Release:        0
Summary:        The Vorbis General Audio Compression Codec
License:        BSD-3-Clause
Group:          Development/Libraries/C and C++
Url:            http://www.vorbis.com
Source0:        http://downloads.xiph.org/releases/vorbis/libvorbis-%{version}.tar.xz
#!BuildIgnore: post-build-checks
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-libogg-devel
BuildRequires:  xz
%_mingw64_package_header_debug
BuildArch:      noarch

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

%package -n mingw64-libvorbis0
Summary:        The Vorbis General Audio Compression Codec
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw64-libvorbis0
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 -n mingw64-libvorbisenc2
Summary:        The Vorbis General Audio Compression Codec
Group:          System/Libraries

%description -n mingw64-libvorbisenc2
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.

%package -n mingw64-libvorbisfile3
Summary:        The Vorbis General Audio Compression Codec
Group:          System/Libraries

%description -n mingw64-libvorbisfile3
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.

%package devel
Summary:        The Vorbis General Audio Compression Codec (development files)
Group:          Development/Libraries/C and C++

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

%_mingw64_debug_package

%prep
%setup -q -n libvorbis-%{version}

%build
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH"; export PATH; \
%{_mingw64_configure} \
	--enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

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

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

%files -n mingw64-libvorbisenc2
%defattr(-,root,root)
%{_mingw64_bindir}/libvorbisenc-2.dll

%files -n mingw64-libvorbisfile3
%defattr(-,root,root)
%{_mingw64_bindir}/libvorbisfile-3.dll

%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/vorbis
%{_mingw64_libdir}/libvorbis.dll.a
%{_mingw64_libdir}/libvorbisfile.dll.a
%{_mingw64_libdir}/libvorbisenc.dll.a
%{_mingw64_libdir}/pkgconfig/vorbisfile.pc
%{_mingw64_libdir}/pkgconfig/vorbisenc.pc
%{_mingw64_libdir}/pkgconfig/vorbis.pc
%{_mingw64_datadir}/aclocal/vorbis.m4
%{_mingw64_datadir}/doc/libvorbis-%{version}

%changelog
openSUSE Build Service is sponsored by