## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global shortcommit f25c624 Name: argtable3 Version: 3.2.2 Release: %autorelease Summary: ANSI C command-line parsing library that parses GNU-style command-line options. License: BSD URL: https://www.argtable.org Source0: https://github.com/argtable/argtable3/archive/v%{version}.%{shortcommit}/argtable3-%{version}.tar.gz BuildRequires: gcc BuildRequires: pkgconfig BuildRequires: cmake %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 devel Summary: Development package that includes the argtable3 header files Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Header and development files for using argtable3 %prep %autosetup -n %{name}-%{version}.%{shortcommit} %build %cmake \ -DARGTABLE3_REPLACE_GETOPT=OFF %cmake_build %install %cmake_install %check %ctest %files %license LICENSE %doc README.md %{_libdir}/lib%{name}.so.* %files devel %{_libdir}/lib%{name}.so %{_includedir}/%{name}.h %{_libdir}/cmake/%{name} %changelog ## START: Generated by rpmautospec * Sun Mar 09 2025 Luca Magrone - 3.2.2-1 - Initial Package ## END: Generated by rpmautospec