File proxytunnel.spec of Package proxytunnel

Name:               proxytunnel
Version:            1.9.1
Release:            0
Summary:            Connecting outside through HTTP(S) proxies
License:            GPL-2.0
Group:              Productivity/Networking/Web/Proxy
Url:                https://github.com/proxytunnel/proxytunnel/
Source:             %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Add TLS Support https://github.com/proxytunnel/proxytunnel/pull/9
Patch0:             proxytunnel-1.9.1-tls.patch
BuildRoot:          %{_tmppath}/build-%{name}-%{version}
BuildRequires:      openssl-devel
BuildRequires:      gcc
BuildRequires:      glibc-devel
BuildRequires:      pkgconfig
BuildRequires:      asciidoc
BuildRequires:      xmlto

%description
ProxyTunnel is a program that connects stdin and stdout to a server somewhere
on the network, through a standard HTTPS proxy. We mostly use it to tunnel SSH
sessions through HTTP(S) proxies, allowing us to do many things that wouldn't
be possible without ProxyTunnel.

Proxytunnel can currently do the following:
* Create tunnels using HTTP and HTTPS proxies (That understand the HTTP CONNECT
  command).
* Work as a back-end driver for an OpenSSH client, and create SSH connections
  through HTTP(S) proxies.
* Work as a stand-alone application, listening on a port for connections, and
  then tunneling these connections to a specified destination. 

%prep
%setup -q
%__chmod 0644 CHANGES
%patch0

%build
%__make %{?_smp_flags} \
    CC="%__cc" \
    CFLAGS="%{optflags}" \
    prefix="%{_prefix}" \
    bindir="%{_bindir}" \
    datadir="%{_datadir}" \
    mandir="%{_mandir}"

%install
%__make \
    prefix="%{_prefix}" \
    bindir="%{_bindir}" \
    datadir="%{_datadir}" \
    mandir="%{_mandir}" \
    DESTDIR="%{buildroot}" \
    install

%files
%defattr(-,root,root)
%license LICENSE.txt
%doc CHANGES CREDITS KNOWN_ISSUES README RELNOTES TODO
%{_bindir}/proxytunnel
%doc %{_mandir}/man1/proxytunnel.1%{ext_man}

openSUSE Build Service is sponsored by