Marcel Wysocki 551d5c9
Name:               sshuttle
0ca93a6
Version:            0.78.5
b3be1f2
Release:            2%{?dist}
Marcel Wysocki 551d5c9
Summary:            Transparent Proxy VPN
e0ce53b
Source0:            https://files.pythonhosted.org/packages/source/s/%{name}/%{name}-%{version}.tar.gz
8668b38
URL:                https://github.com/%{name}/%{name}
Marcel Wysocki 551d5c9
License:            LGPLv2+
Marcel Wysocki 551d5c9
BuildArch:          noarch
Marcel Wysocki 551d5c9
8668b38
BuildRequires:      python3-devel
8668b38
BuildRequires:      python3-setuptools
f27062f
BuildRequires:      python3-setuptools_scm
dde5e59
BuildRequires:      python3-pytest-runner
da50a32
BuildRequires:      python3-mock
69350f0
BuildRequires:      python3-sphinx
a997547
BuildRequires:      texinfo
8668b38
0ca93a6
# For tests
0ca93a6
BuildRequires:      python3-pytest
0ca93a6
BuildRequires:      python3-pytest-flake8
0ca93a6
BuildRequires:      python3-pytest-cov
0ca93a6
BuildRequires:      python3-pytest-runner
0ca93a6
BuildRequires:      python3-pytest-mock
0ca93a6
Marcel Wysocki 551d5c9
Requires:           iptables
Marcel Wysocki 551d5c9
Requires:           openssh-clients
Marcel Wysocki 551d5c9
a997547
Requires(post):     info
a997547
Requires(preun):    info
a997547
Marcel Wysocki 551d5c9
%description
Marcel Wysocki 551d5c9
Transparent proxy server that works as a poor man's VPN. Forwards over ssh.
Marcel Wysocki 551d5c9
Doesn't require admin. Works with Linux and MacOS. Supports DNS tunneling.
Marcel Wysocki 551d5c9
Marcel Wysocki 551d5c9
%prep
6f8c0c5
%autosetup -p1 -n %{name}-%{version}
Marcel Wysocki 551d5c9
a997547
# This file is a script, so shouldn't be installed under
a997547
# site-packages. We'll remove it for now.
a997547
rm %{name}/stresstest.py
a997547
69350f0
Marcel Wysocki 551d5c9
%build
8668b38
%py3_build
Marcel Wysocki 551d5c9
a997547
# Build docs
a997547
pushd docs
a997547
make man
a997547
make info
a997547
popd
a997547
69350f0
Marcel Wysocki 551d5c9
%install
8668b38
%py3_install
a7997c4
a997547
# Install docs
f27062f
pushd docs
a997547
# Man
f27062f
mkdir -p %{buildroot}/%{_mandir}/man1
a997547
mv _build/man/%{name}.1 %{buildroot}/%{_mandir}/man1
a997547
# Info
a997547
mkdir -p %{buildroot}/%{_infodir}
a997547
mv _build/texinfo/%{name}.info %{buildroot}/%{_infodir}
f27062f
popd
Marcel Wysocki 551d5c9
69350f0
186f03b
%check
186f03b
%{__python3} setup.py test
69350f0
Marcel Wysocki 551d5c9
%files
8668b38
%license LICENSE
a997547
%{_mandir}/man1/%{name}.1.*
a997547
%{_infodir}/%{name}.info.*
8668b38
%{python3_sitelib}/%{name}
dd43e9c
%{python3_sitelib}/%{name}*.egg-info
Marcel Wysocki 551d5c9
%{_bindir}/sshuttle
Marcel Wysocki 551d5c9
69350f0
Marcel Wysocki 551d5c9
%changelog
b3be1f2
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.78.5-2
b3be1f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b3be1f2
0ca93a6
* Wed Jan 30 2019 Kevin Fenzi <kevin@scrye.com> - 0.78.5-1
0ca93a6
- Update to 0.78.5. Fixes bug #1669944
0ca93a6
0534297
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.78.4-5
0534297
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0534297
13f3e7b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.78.4-4
13f3e7b
- Rebuilt for Python 3.7
13f3e7b
69350f0
* Tue Apr  3 2018 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.78.4-3
69350f0
- Simplify spec file by making it Python 3 only
69350f0
186f03b
* Tue Apr  3 2018 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.78.4-2
186f03b
- Add %%check section to spec file and run tests
da50a32
- Add BuildRequires for python{2,3}-mock
186f03b
e0ce53b
* Tue Apr  3 2018 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.78.4-1
e0ce53b
- Update to 0.78.4
e0ce53b
- Fix broken Source0 URL
e0ce53b
9fdd433
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.78.3-4
9fdd433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9fdd433
034a8e2
* Thu Feb 01 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.78.3-3
034a8e2
- Update Python 2 dependency declarations to new packaging standards
034a8e2
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
034a8e2
c8ed9d0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.78.3-2
c8ed9d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c8ed9d0
e33d49e
* Thu Jul 20 2017 Kevin Fenzi <kevin@scrye.com> - 0.78.3-1
e33d49e
- Update to 0.78.3. Fixes bug #1468857
e33d49e
8ebcd68
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.78.1-4
8ebcd68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8ebcd68
96dc85f
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.78.1-3
96dc85f
- Rebuild for Python 3.6
96dc85f
4372bd1
* Sun Sep 11 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.78.1-2
4372bd1
- Add sshuttle-0.78.1-pytest-runner.patch to move pytest-runner
4372bd1
  requirement from setup_requires to tests_requires in setup.py
4372bd1
- Only BR python[2,3]-pytest-runner on F24 and higher
4372bd1
a566d4f
* Sun Sep 11 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.78.1-1
a566d4f
- Update to 0.78.1
dde5e59
- Add BR for python[2,3]-pytest-runner
a566d4f
950c5f4
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.78.0-3
950c5f4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
950c5f4
dbdb3b1
* Mon Apr 11 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.78.0-2
dbdb3b1
- Use PyPi source tarball rather than rolling our own (only needed
dbdb3b1
  when building git snapshots)
dbdb3b1
6f8c0c5
* Sun Apr 10 2016 Kevin Fenzi <kevin@scrye.com> - 0.78.0-1
6f8c0c5
- Update to 0.78.0. Fixes bug #1325602
6f8c0c5
- Drop upstreamed patches
6f8c0c5
dd43e9c
* Sat Apr  2 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.77.3-0.1.20160402git6e15e691
dd43e9c
- Update to git snapshot
dd43e9c
- Add patch to work with older python versions on server end
dd43e9c
08499b3
* Mon Mar  7 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.77.2-1
08499b3
- Update to 0.77.2
08499b3
- Use PyPi tarball instead of rolling our own from git
08499b3
- Fixup typos in spec file changelog
08499b3
08499b3
* Sat Mar  5 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.77-5
a997547
- Build and package info file
a997547
- Use macros more consistently in spec file
a997547
- Move building of docs to %%build section of spec
a997547
- Remove the stresstest.py script
a997547
08499b3
* Sat Mar  5 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.77-4
f27062f
- Move to using hand-rolled tar balls rather than the github release
f27062f
- Drop patch to set version manually
f27062f
- Build and package man page
f27062f
- BuildRequire the correct version of setuptools_scm
f27062f
08499b3
* Sat Mar  5 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.77-3
67634b0
- Build with Python 3 on F24 too
67634b0
08499b3
* Sat Mar  5 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.77-2
a7997c4
- Use Python 3 for Fedora 25 and beyond, otherwise Python 2
a7997c4
08499b3
* Sat Mar  5 2016 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.77-1
8668b38
- Update to 0.77
8668b38
- Disable doc building for now
8668b38
- Add patch to set version to allow build to complete
8668b38
- Use python3 by default
8668b38
- Use python packaging macros
8668b38
7b6270b
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-12.20120810git9ce2fa0
7b6270b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7b6270b
94a9f39
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-11.20120810git9ce2fa0
94a9f39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
94a9f39
a7c277c
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-10.20120810git9ce2fa0
a7c277c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a7c277c
e6ef0a6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-9.20120810git9ce2fa0
e6ef0a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e6ef0a6
8d4c20f
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-8.20120810git9ce2fa0
8d4c20f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8d4c20f
Marcel Wysocki 551d5c9
* Mon Jan 07 2013 Marcel Wysocki <maci@satgnu.net> - 0-7.20120810git9ce2fa0
Marcel Wysocki 551d5c9
- don't use doc macro for files in mandir
Marcel Wysocki 551d5c9
Marcel Wysocki 551d5c9
* Fri Nov 23 2012 Marcel Wysocki <maci@satgnu.net> - 0-6.20120810git9ce2fa0
Marcel Wysocki 551d5c9
- fixed hash ( woops, where did that g come from )
Marcel Wysocki 551d5c9
- fixed date to be commit date and not clone date
Marcel Wysocki 551d5c9
- use version 0 
Marcel Wysocki 551d5c9
- use datadir instead of /usr/local
Marcel Wysocki 551d5c9
- remove sshuttle.md in favor of the manpage
Marcel Wysocki 551d5c9
- remove make from BR
Marcel Wysocki 551d5c9
- added comment on how to create the source tarball
Marcel Wysocki 551d5c9
Marcel Wysocki 551d5c9
* Wed Oct 31 2012 Marcel Wysocki <maci@satgnu.net> - 20121019-5.gitg9ce2fa0
Marcel Wysocki 551d5c9
- remove python from deps and builddeps, rpm picks it up automatically 
Marcel Wysocki 551d5c9
- add manual page
Marcel Wysocki 551d5c9
- add missing builddep for manual generation
Marcel Wysocki 551d5c9
Marcel Wysocki 551d5c9
* Mon Oct 22 2012 Marcel Wysocki <maci@satgnu.net> - 20121019-4.gitg9ce2fa0
Marcel Wysocki 551d5c9
- add missing dependencies
Marcel Wysocki 551d5c9
Marcel Wysocki 551d5c9
* Mon Oct 22 2012 Marcel Wysocki <maci@satgnu.net> - 20121019-3.gitg9ce2fa0
Marcel Wysocki 551d5c9
- Don't use macros for rm, install, chmod and cp.
Marcel Wysocki 551d5c9
- Remove defattr, since we're not going for EPEL4.
Marcel Wysocki 551d5c9
- Remove the clean section since we're not going for EPEL5.
Marcel Wysocki 551d5c9
Marcel Wysocki 551d5c9
* Fri Oct 19 2012 Marcel Wysocki <maci@satgnu.net> - 20121019-2.gitg9ce2fa0
Marcel Wysocki 551d5c9
- use .tar.gz instead of .zip
Marcel Wysocki 551d5c9
Marcel Wysocki 551d5c9
* Fri Oct 19 2012 Marcel Wysocki <maci@satgnu.net> - 20121019-1.gitg9ce2fa0
Marcel Wysocki 551d5c9
- update to newer spapshot
Marcel Wysocki 551d5c9
- adhere more to packaging guidelines
Marcel Wysocki 551d5c9
Marcel Wysocki 551d5c9
* Thu Oct 18 2012 Marcel Wysocki <maci@satgnu.net> - 0.20121018-3
Marcel Wysocki 551d5c9
- update to newer spapshot
Marcel Wysocki 551d5c9
- fedora port
Marcel Wysocki 551d5c9
- adhere more to packaging guidelines
Marcel Wysocki 551d5c9
Marcel Wysocki 551d5c9
* Wed May  4 2011 pascal.bleser@opensuse.org
Marcel Wysocki 551d5c9
- initial version (0.20110503)