## 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 commit 63f82c404481f72170f5b7e5e6cd897b4e6c1ae5 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global commitdate 20250218 Name: digdoc Version: 0^%{commitdate}git%{shortcommit} Release: %autorelease Summary: A DNS-over-CoAP client License: MIT URL: https://github.com/dig-doc/digdoc Source: %{url}/archive/%{commit}/digdoc-%{shortcommit}.tar.gz Patch: install.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: libcoap-devel BuildRequires: ldns-devel %description digdoc is a lightweight command-line tool written in C that acts as a DNS-over-CoAP (DoC) client. Since most common DNS servers do not natively support CoAP, digdoc currently uses the aiodns-proxy project to translate CoAP packets into standard UDP-based DNS queries. %prep %autosetup -n digdoc-%{commit} %build %cmake %cmake_build %install %cmake_install %check %files %license LICENSE %doc README.md %{_bindir}/digdoc %changelog ## START: Generated by rpmautospec * Sat Mar 15 2025 John Doe - 0^20250218git63f82c4-1 - Uncommitted changes ## END: Generated by rpmautospec