File mingw64-libcapi20.spec of Package mingw64-libcapi20
#
# spec file for package mingw64-libcapi20
#
# Copyright (c) 2022, 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/
#
%define realname libcapi20
Name: mingw64-%{realname}
Version: 0~git20210508
Release: 0
Summary: Library for the Common ISDN Application Programming Interface
License: LGPL-2.1-or-later
Group: Hardware/ISDN
Url: https://github.com/linspector/libcapi
#Git-Clone: https://github.com/linspector/libcapi.git
Source: %{realname}-%{version}.tar.xz
Patch0: fix-build.patch
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-dlfcn-win32-devel
BuildRequires: mingw64-cross-meson
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#!BuildIgnore: post-build-checks
%_mingw64_package_header_debug
BuildArch: noarch
%description
libcapi handles requests from CAPI-driven applications such as fax
systems via active and passive ISDN cards.
%_mingw64_debug_package
%package devel
Summary: Header files for the Common ISDN API library
Group: Development/Libraries
%description devel
This package provides files needed for development of CAPI-aware
software.
%prep
%setup -q -n %{realname}-%{version}
%patch -P0 -p1
%build
%{_mingw64_meson}
%{_mingw64_meson_build}
%install
%{_mingw64_meson_install}
%files
%license COPYING.LIB
%doc README.md
%{_mingw64_bindir}/libcapi20-3.dll
%{_mingw64_libdir}/capi20/libcapi_mod_fritzbox.dll
%{_mingw64_libdir}/capi20/libcapi_mod_rcapi.dll
%files devel
%{_mingw64_includedir}/capi20.h
%{_mingw64_includedir}/capi_debug.h
%{_mingw64_includedir}/capi_mod.h
%{_mingw64_includedir}/capicmd.h
%{_mingw64_includedir}/capiutils.h
%{_mingw64_libdir}/capi20/libcapi_mod_fritzbox.dll.a
%{_mingw64_libdir}/capi20/libcapi_mod_rcapi.dll.a
%{_mingw64_libdir}/libcapi20.dll.a
%{_mingw64_libdir}/pkgconfig/capi20.pc
%changelog