File torsocks.spec of Package torsocks
Name: torsocks
Version: 2.5.0
Release: 0
Summary: Library to torify applications
License: GPL-2.0-or-later
Group: Productivity/Networking/Security
URL: https://gitlab.torproject.org/tpo/core/torsocks
Source0: torsocks-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: gcc
BuildRequires: make
%description
Torsocks allows you to use most applications in a safe way with Tor.
It ensures that DNS queries are handled safely and explicitly rejects
any traffic other than TCP from the application you're using.
%prep
%setup -q -n torsocks-v%{version}
%build
./autogen.sh
%configure
%make_build
%install
%make_install
find %{buildroot} -name "*.la" -delete
find %{buildroot} -name "*.a" -delete
rm -rf %{buildroot}%{_datadir}/doc/torsocks
%files
%license LICENSE
%doc ChangeLog README.md
%dir %{_sysconfdir}/tor
%config(noreplace) %{_sysconfdir}/tor/torsocks.conf
%{_bindir}/torsocks
%{_libdir}/torsocks/
%{_mandir}/man1/torsocks.1*
%{_mandir}/man5/torsocks.conf.5*
%{_mandir}/man8/torsocks.8*
%changelog