## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; 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 #!/usr/bin/rpmspec -q %global commit 4aea40ba0310de10560ba6deaa2d2e6eebbe8f48 %global shortcommit %(c=%{commit}; echo ${c:0:7}) # Obtain by Source: date from %%prep %global date 20230708 %global snapver %{date}git%{shortcommit} %if 0%{?fedora} %bcond_without ronn %else # EPEL and RHEL do not have rubygem-ronn available %bcond_with ronn %endif Name: DNS-Compliance-Testing Version: 0%{?snapver:^%snapver} Release: %autorelease Summary: DNS Compliance Testing command line tool License: MPL-2.0 URL: https://gitlab.isc.org/isc-projects/DNS-Compliance-Testing Source0: %{url}/-/archive/%{shortcommit}/%{name}-%{shortcommit}.tar.bz2 # https://gitlab.isc.org/isc-projects/DNS-Compliance-Testing/-/merge_requests/17 Source1: mkronn.sed Source2: Makefile.doc # https://gitlab.isc.org/isc-projects/DNS-Compliance-Testing/-/merge_requests/16 Patch1: 0001-Detect-few-functions-presence-in-libresolv.patch BuildRequires: gcc make autoconf automake BuildRequires: openssl-devel %if %{with ronn} BuildRequires: sed rubygem-ronn %endif Requires: bind-utils %description Provide tools to allow Registries and Registrars (amongst others) to check the DNS protocol compliance of the servers they are delegating zones to. Offers genreport command line tool. Can test both authoritative and recursive servers. %prep %autosetup -n %{name}-%{shortcommit} -p1 echo "Source: date $(date "+%04Y%02m%02d" -r %{SOURCE0})" %if %{with ronn} install %{SOURCE1} mkronn.sed install %{SOURCE2} Makefile.doc %endif %build autoreconf -fis %configure %make_build %if %{with ronn} make -f %{SOURCE2} man %endif %install %make_install %if %{with ronn} install -d %{buildroot}%{_mandir}/man1 install -p -m 0644 genreport.1 %{buildroot}%{_mandir}/man1/genreport.1 %endif %check %{buildroot}%{_bindir}/genreport -D %files %doc README genreport.md %license LICENSE %{_bindir}/genreport %if %{with ronn} %{_mandir}/man1/genreport* %endif %changelog ## START: Generated by rpmautospec * Wed Jul 17 2024 Fedora Release Engineering - 0^20230708git4aea40b-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0^20230708git4aea40b-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 0^20230708git4aea40b-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 18 2024 Fedora Release Engineering - 0^20230708git4aea40b-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Aug 04 2023 Petr Menšík - 0^20230708git4aea40b-2 - Remove unsupported %%dnl comment * Thu Nov 22 2018 Petr Menšík - 0-1 - Initial release - Generate manual page on supported platforms ## END: Generated by rpmautospec