File mingw32-flac.spec of Package mingw32-flac

#
# spec file for package mingw32-flac
#
# 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-flac
Version:        1.2.1
Release:        0
Summary:        Free Lossless Audio Codec Library
License:        BSD-3-Clause
Group:          Development/Libraries/C and C++
Url:            http://flac.sf.net/
Source0:        http://downloads.sf.net/flac/flac-%{version}.tar.gz
Source1000:     %{name}-%{version}-rpmlintrc
Patch0:         flac-1.2.1-no_undefined.patch
Patch1:         flac-1.2.1-wsocklibs.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem >= 23
BuildRequires:  mingw32-libogg-devel
BuildRequires:  mingw32-win_iconv-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%{_mingw32_package_header_debug}

%description
FLAC is an open source lossless audio codec developed by Josh Coalson.

%package -n mingw32-libFLAC8
Summary:        Free Lossless Audio Codec Library
Group:          System/Libraries
Obsoletes:      mingw32-libflac
Provides:       mingw32-libflac

%description -n mingw32-libFLAC8
This package contains the library for FLAC (Free Lossless Audio Codec)
developed by Josh Coalson.

%package -n mingw32-libFLAC++6
Summary:        Free Lossless Audio Codec C++ Library
Group:          System/Libraries
Obsoletes:      mingw32-libflac++
Provides:       mingw32-libflac++

%description -n mingw32-libFLAC++6
This package contains the C++ library for FLAC (Free Lossless Audio
Codec) developed by Josh Coalson.

%package devel
Summary:        Free Lossless Audio Codec Library (development files)
Group:          Development/Libraries/C and C++

%description devel
This package contains the files needed to compile programs that use the
FLAC library.

%_mingw32_debug_package

%prep
%setup -q -n flac-%{version}
%patch0 -p1 -b .no_undefined
%patch1 -p1 -b .wsocklibs

%build
./autogen.sh
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=%{buildroot} install

%files
%defattr(-,root,root)
%{_mingw32_bindir}/metaflac.exe
%{_mingw32_bindir}/flac.exe
%{_mingw32_mandir}/man1/metaflac.1*
%{_mingw32_mandir}/man1/flac.1*

%files -n mingw32-libFLAC8
%defattr(-,root,root)
%{_mingw32_bindir}/libFLAC-8.dll

%files -n mingw32-libFLAC++6
%defattr(-,root,root)
%{_mingw32_bindir}/libFLAC++-6.dll

%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/FLAC
%{_mingw32_includedir}/FLAC++
%{_mingw32_libdir}/libFLAC.dll.a
%{_mingw32_libdir}/libFLAC++.dll.a
%{_mingw32_libdir}/pkgconfig/flac.pc
%{_mingw32_libdir}/pkgconfig/flac++.pc
%{_mingw32_datadir}/aclocal/libFLAC.m4
%{_mingw32_datadir}/aclocal/libFLAC++.m4
%{_mingw32_datadir}/doc/flac-%{version}

%changelog
openSUSE Build Service is sponsored by