File mingw64-uriparser.spec of Package mingw64-uriparser
#
# spec file for package mingw64-uriparser
#
# Copyright (c) 2025, 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 uriparser
Name: mingw64-%{realname}
Version: 0.9.8
Release: 0
Summary: A strictly RFC 3986 compliant URI parsing library
License: BSD-3-Clause AND LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://uriparser.github.io
Source: https://github.com/uriparser/uriparser/releases/download/uriparser-%{version}/%{realname}-%{version}.tar.xz
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
%_mingw64_package_header_debug
BuildArch: noarch
%description
uriparser is a strictly RFC 3986 compliant URI parsing library
and supports Unicode.
%package -n mingw64-%{realname}-devel
Summary: Development package for %{name}
Group: Development/Languages/C and C++
Requires: mingw64-%{realname} = %{version}
%description -n mingw64-%{realname}-devel
uriparser is a strictly RFC 3986 compliant URI parsing library
and supports Unicode.
This subpackage contains the headers and other developments
files needed to build packages that depend on %{name}.
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{realname}-%{version}
%build
%{_mingw64_cmake} \
-DURIPARSER_BUILD_CHAR=ON \
-DURIPARSER_BUILD_WCHAR=ON \
-DURIPARSER_BUILD_DOCS=OFF \
-DURIPARSER_BUILD_TESTS=OFF \
-DURIPARSER_BUILD_TOOLS=OFF
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
%files
%license COPYING
%{_mingw64_bindir}/liburiparser-1.dll
%files -n mingw64-%{realname}-devel
%license COPYING
%doc ChangeLog THANKS AUTHORS
%{_mingw64_includedir}/uriparser
%{_mingw64_libdir}/liburiparser.dll.a
%{_mingw64_libdir}/pkgconfig/liburiparser.pc
%{_mingw64_libdir}/cmake/uriparser-%{version}
%changelog