File mingw64-argtable3.spec of Package mingw64-argtable3
#
# spec file for package mingw64-argtable3
#
# 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 argtable3
%define realversion %{version}.f25c624
%define lname mingw64-libargtable3
Name: mingw64-%{realname}
Version: 3.2.2
Release: 0
Summary: ANSI C Command line parser library
License: LGPL-2.0-or-later
Group: Development/Libraries/C and C++
URL: https://www.argtable.org/
Source: https://github.com/argtable/argtable3/archive/refs/tags/v%{realversion}.tar.gz#/%{realname}-%{realversion}.tar.gz
Patch0: 0001-fix-only-add-version.rc-for-MSVC.patch
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-pkg-config
%_mingw64_package_header_debug
BuildArch: noarch
%description
Argtable3 is an open source ANSI C library that parses GNU-style command-line
options with the getopt library. It simplifies command-line parsing by defining
a declarative-style API that you can use to specify what your command-line syntax
looks like. Argtable3 will automatically generate consistent error handling logic
and textual descriptions of the command line syntax, which are essential but
tedious to implement for a robust CLI program.
%package -n %{lname}
Summary: Command line parsing library
Group: System/Libraries
%description -n %{lname}
The mingw64-argtable3 package contains libraries for libargtable.
%package -n mingw64-%{realname}-devel
Summary: Development files for argtable, a command line parsing library
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description -n mingw64-%{realname}-devel
The mingw64-%{realname}-devel package contains libraries and header files for
developing applications that use libargtable.
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{realname}-%{realversion}
%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
%files -n %lname
%{_mingw64_bindir}/libargtable3.dll
%files -n mingw64-%{realname}-devel
%license LICENSE
%doc README.md
%{_mingw64_includedir}/argtable3.h
%{_mingw64_libdir}/libargtable3.dll.a
%{_mingw64_libdir}/cmake/argtable3
%changelog