File mingw64-libdiscid.spec of Package mingw64-libdiscid

#
# spec file for package mingw64-libdiscid
#
# Copyright (c) 2023, Martin Hauke <mardnh@gmx.de>
#
# 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-libdiscid
Version:        0.6.4
Release:        0
Summary:        Library for gathering DiscIDs and ISRCs from audio CDs
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
URL:            https://musicbrainz.org/doc/libdiscid
Source:         http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/libdiscid-%{version}.tar.gz
Patch0:         fix-includes.patch

BuildRequires:  automake
BuildRequires:  autoconf
BuildRequires:  libtool
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-filesystem
#!BuildIgnore: post-build-checks
%_mingw64_package_header_debug
BuildArch:      noarch

%description
libdiscid is a C library for creating MusicBrainz and freedb DiscIDs
from audio CDs.
It reads a CD's table of contents (TOC) and generates an identifier
which can be used to lookup the CD at MusicBrainz.
Additionally, it provides a submission URL for adding the DiscID to the
database and gathers ISRCs and the MCN from disc.

%package -n mingw64-libdiscid0
Summary:        MinGW port of  the discid library
Group:          System/Libraries

%description -n mingw64-libdiscid0
libdiscid is a C library for creating MusicBrainz and freedb DiscIDs
from audio CDs.
It reads a CD's table of contents (TOC) and generates an identifier
which can be used to lookup the CD at MusicBrainz.
Additionally, it provides a submission URL for adding the DiscID to the
database and gathers ISRCs and the MCN from disc.

%package -n mingw64-libdiscid-devel
Summary:        MinGW port of the discid library
Group:          Development/Libraries/C and C++
Requires:       mingw64-libdiscid0 = %{version}

%description -n mingw64-libdiscid-devel
libdiscid is a C library for creating MusicBrainz and freedb DiscIDs
from audio CDs.
It reads a CD's table of contents (TOC) and generates an identifier
which can be used to lookup the CD at MusicBrainz.
Additionally, it provides a submission URL for adding the DiscID to the
database and gathers ISRCs and the MCN from disc.

This package contains development tools and libraries for use when
cross-compiling Windows software.

%_mingw64_debug_package

%prep
%setup -q -n libdiscid-%{version}
%patch -P 0 -p1

%build
autoreconf -fiv
%{_mingw64_configure} --disable-static
%{_mingw64_make} %{?_smp_mflags}

%install
%{_mingw64_make_install}

%files -n mingw64-libdiscid0
%{_mingw64_bindir}/libdiscid-0.dll

%files -n mingw64-libdiscid-devel
%{_mingw64_includedir}/discid
%{_mingw64_libdir}/libdiscid.dll.a
%{_mingw64_libdir}/pkgconfig/libdiscid.pc

%changelog
openSUSE Build Service is sponsored by