Name: redsocks Version: 0.5 Release: %autorelease %global gittag release-%{version} Summary: SOCKS and HTTP proxy redirector License: Apache-2.0 URL: https://github.com/darkk/%{name} Source0: https://github.com/darkk/%{name}/archive/%{gittag}/%{name}-%{version}.tar.gz Source1: redsocks.service Source2: LICENSE.txt BuildRequires: make BuildRequires: gcc BuildRequires: libevent-devel BuildRequires: systemd Requires: libevent %description This tool allows you to redirect any TCP connection to SOCKS or HTTPS proxy using your firewall, so redirection is system-wide. %prep %autosetup -n %{name}-%{gittag} %build %make_build %install install -Dpm 755 redsocks %{buildroot}%{_bindir}/redsocks install -Dpm 644 redsocks.conf.example %{buildroot}%{_sysconfdir}/redsocks.conf install -dm 755 %{buildroot}%{_unitdir} install -pm 644 %{SOURCE1} %{buildroot}%{_unitdir} install -pm 644 %{SOURCE2} LICENSE %files %doc README README.html LICENSE %config(noreplace) %{_sysconfdir}/* %{_bindir}/* %{_unitdir}/* %changelog %autochangelog