File mingw32-SDL2_net.spec of Package mingw32-SDL2_net
#
# spec file for package mingw32-SDL2_net
#
# Copyright (c) 2024, 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 https://bugs.opensuse.org/
#
%define realname SDL2_net
Name: mingw32-%{realname}
Version: 2.2.0
Release: 0
Summary: SDL2 networking library
License: Zlib
Group: Development/Libraries/C and C++
URL: https://github.com/libsdl-org/SDL_net
Source: https://github.com/libsdl-org/SDL_net/archive/refs/tags/release-%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-cmake
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-libSDL2-devel
%_mingw32_package_header_debug
BuildArch: noarch
%description
This is a networking library for use with SDL.
%package devel
Summary: Development files for the SDL2 networking library
Group: Development/Libraries/C and C++
Requires: %name = %version
%description devel
This is a networking library for use with SDL.
%_mingw32_debug_package
%prep
%setup -q -n SDL_net-release-%{version}
sed -i 's/\r$//' CHANGES.txt README.txt
%build
%{_mingw32_cmake}
%make_build
%install
%{_mingw32_cmake_install}
rm %buildroot/%_mingw32_datadir/licenses/SDL2_net/LICENSE.txt
%files
%license LICENSE.txt
%{_mingw32_bindir}/SDL2_net.dll
%files devel
%doc CHANGES.txt README.txt
%{_mingw32_includedir}/SDL2/SDL_net.h
%{_mingw32_libdir}/libSDL2_net.dll.a
#%%{_mingw32_libdir}/pkgconfig/SDL2_net.pc
%{_mingw32_libdir}/cmake/SDL2_net
%changelog