Name: dnsproxy Version: 1.1.1 Release: 2%{?dist} Summary: DNS proxy License: GPLv2 Group: Network URL: https://github.com/vietor/dnsproxy Source0: %{name}-%{version}.tar.gz Source1: %{name}.service Source2: %{name}.conf Patch0: %{name}-openvpn.patch BuildRequires: gcc # Needed for the systemd-related macros used in this file %{?systemd_requires} BuildRequires: systemd %description A simple DNS proxy server, running on multiple platform. %prep %setup -q %patch 0 -p1 sed -i -e 's/-DNDEBUG/${RPM_OPT_FLAGS}/g' src/Makefile sed -i -e 's/LDFLAGS = -s//g' src/Makefile %build make %{?_smp_mflags} %install mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_unitdir} install -m755 src/dnsproxy %{buildroot}%{_sbindir} install -m644 %{SOURCE1} %{buildroot}%{_unitdir} install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir} %files %doc README.md %license LICENSE %{_sysconfdir}/dnsproxy.conf %{_sbindir}/dnsproxy %{_unitdir}/dnsproxy.service %changelog