## START: Set by rpmautospec ## (rpmautospec version 0.8.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 # Generated by go2rpm 1.18.0 %bcond check 1 # https://github.com/0xERR0R/blocky %global goipath github.com/0xERR0R/blocky Version: 0.28.1 %gometa -L -f Name: blocky Release: %autorelease Summary: Fast and lightweight DNS proxy as ad-blocker for local network with many features # Generated by go-vendor-tools License: 0BSD AND AGPL-3.0-only AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND ISC AND MIT AND MPL-2.0 AND Unlicense URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml Source3: blocky.service Source4: blocky.sysusers Source5: config.yml BuildRequires: go-vendor-tools BuildRequires: systemd-rpm-macros %{?sysusers_requires_compat} %description Fast and lightweight DNS proxy as ad-blocker for local network with many features. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/sbin/blocky %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/sbin/* %{buildroot}%{_bindir}/ # Config file install -m 0755 -vd %{buildroot}%{_sysconfdir} install -m 0750 -vd %{buildroot}%{_sysconfdir}/blocky install -m 0640 -vp %{S:5} %{buildroot}/%{_sysconfdir}/blocky # Systemd unit and sysusers install -D -p -m 0644 %{S:3} %{buildroot}%{_unitdir}/blocky.service install -D -p -m 0644 %{S:4} %{buildroot}%{_sysusersdir}/blocky.conf %check %go_vendor_license_check -c %{S:2} %pre %sysusers_create_compat %{S:4} %post %systemd_post blocky.service %preun %systemd_preun blocky.service %postun %systemd_postun_with_restart blocky.service %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc docs CODE_OF_CONDUCT.md README.md helpertest/data/oisd-big-plain.txt %doc helpertest/data/oisd-big-wildcard.txt web/robots.txt %{_bindir}/blocky %dir %attr(0750,root,blocky) %config(noreplace) %{_sysconfdir}/blocky %{_sysconfdir}/blocky/config.yml %{_unitdir}/blocky.service %{_sysusersdir}/blocky.conf %changelog ## START: Generated by rpmautospec * Fri Nov 14 2025 John Doe - 0.28.1-1 - Uncommitted changes ## END: Generated by rpmautospec