File mingw32-taglib.spec of Package mingw32-taglib
#
# spec file for package mingw32-taglib
#
# Copyright (c) 2018 SUSE LINUX 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/
#
%define _basename taglib
Name: mingw32-%{_basename}
Version: 1.11.1
Release: 0
#!BuildIgnore: post-build-checks
# main package
Summary: TagLib is a library for reading and editing the meta-data of several popular audio formats
License: LGPL-2.1-only or MPL-1.1
Group: Development/Libraries/C and C++
Url: https://taglib.org
Source0: https://taglib.org/releases/%{_basename}-%{version}.tar.gz
BuildRequires: mingw32-cross-cmake
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-zlib-devel
%_mingw32_package_header_debug
BuildArch: noarch
%description
Currently it supports both ID3v1 and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC, Speex, WavPack TrueAudio, WAV, AIFF, MP4 and ASF files.
# devel package
%package devel
Summary: TagLib is a library for reading and editing the meta-data of several popular audio formats
Group: Development/Libraries/C and C++
%description devel
Currently it supports both ID3v1 and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC, Speex, WavPack TrueAudio, WAV, AIFF, MP4 and ASF files.
%_mingw32_debug_package
%prep
%setup -q -n %{_basename}-%{version}
%build
rm -rf CMakeCache.txt
# turn on MP4 support
# turn on ASF support
# enforce little-endianness because the check is broken
%{_mingw32_cmake} \
-DWITH_MP4=ON \
-DWITH_ASF=ON \
-DFP_IEEE754=1
%{_mingw32_cmake_build}
%install
%{_mingw32_cmake_install}
%files
%defattr(-,root,root,-)
%{_mingw32_bindir}/libtag.dll
%{_mingw32_bindir}/libtag_c.dll
%{_mingw32_bindir}/taglib-config.cmd
%files devel
%defattr(-,root,root,-)
%{_mingw32_libdir}/libtag.dll.a
%{_mingw32_libdir}/libtag_c.dll.a
%{_mingw32_libdir}/pkgconfig/
%{_mingw32_includedir}/taglib/
%changelog