%global git_commit 7939e9652acb120d43d37db2eb0dea986f29785b %global git_date 20200318 %global git_short_commit %(echo %{git_commit} | cut -c -8) %global git_suffix %{git_date}git%{git_short_commit} Name: stubby Version: 0.3.1 Release: 0.6.%{git_suffix}%{?dist} Summary: Application that act as a local DNS Privacy stub resolver License: BSD URL: https://github.com/getdnsapi/%{name} Source0: https://github.com/getdnsapi/stubby/archive/%{git_commit}/%{name}-%{version}.tar.gz Provides: getdns-stubby = 1.6.0-2 Obsoletes: getdns-stubby < 1.6.0-2 Requires: systemd %{?systemd_requires} BuildRequires: gcc BuildRequires: make BuildRequires: cmake BuildRequires: getdns-devel BuildRequires: libyaml-devel BuildRequires: systemd-rpm-macros Patch1: stubby-0.3.1-dnssec-ta.patch %description Stubby is a local DNS Privacy stub resolver (using DNS-over-TLS). Stubby encrypts DNS queries sent from a client machine to a DNS Privacy resolver increasing end user privacy. %prep %autosetup -n stubby-%{git_commit} %build %cmake -DCMAKE_BUILD_TYPE:STRING=Release . %cmake_build %install %cmake_install find %{buildroot} -size 0 -delete mkdir -p %{buildroot}%{_unitdir} install -pm 0644 systemd/stubby.service %{buildroot}%{_unitdir}/stubby.service %preun %systemd_preun %{name} %post # systemd would replace it with symlink if [ -d "%{_localstatedir}/cache/%{name}" ]; then mv "%{_localstatedir}/cache/%{name}"{,.rpmsave} fi %systemd_post %{name} %postun %systemd_postun_with_restart %{name} %files %{_bindir}/%{name} %config(noreplace) %{_sysconfdir}/%{name} %ghost %{_localstatedir}/cache/%{name} %{_unitdir}/stubby.service %{_mandir}/man1/%{name}.1.gz %dir %{_docdir}/%{name} %{_docdir}/%{name}/AUTHORS %license %{_docdir}/%{name}/COPYING %{_docdir}/%{name}/ChangeLog %{_docdir}/%{name}/README.md %changelog * Mon Oct 05 2020 Petr Menšík - 0.3.1-0.6.20200318git7939e965 - Move old cache directory on upgrade (#1884575) * Mon Aug 10 2020 Artem Egorenkov - 0.3.1-0.5.20200318git7939e965 - cmake macros are used instead of make * Sat Aug 01 2020 Fedora Release Engineering - 0.3.1-0.4.20200318git7939e965 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.3.1-0.3.20200318git7939e965 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Mar 18 2020 Artem Egorenkov - 0.3.1-0.2.20200318git7939e965 - Snapshot information field added - systemd-rpm-macros added to build requirements - systemd-devel and systemd removed from build requirements - Obsoletes version for getns-stubby fixed * Thu Mar 12 2020 Artem Egorenkov - 0.3.1-0.1.29785b - First stubby package