File cbbncd.spec of Package cbbncd

#
# spec file for package cbbncd
#
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           cbbncd
Version:        0.12
Release:        0
Summary:        A simple FTP bouncer
License:        MIT
Group:          Productivity/Networking/Ftp/Servers
URL:            https://cbftp.eu/
Source:         https://cbftp.eu/%{name}-%{version}.tar.gz
Patch0:         cbbncd-obey-cflags.patch
BuildRequires:  gcc-c++
BuildRequires:  libopenssl-devel

%description
cbbncd is a simple FTP bouncer. It works with glftpd and any other
ftpd that supports IDNT. The connection data is embedded into the
executable and is (optionally) encrypted with AES-256.

%prep
%setup -q
%patch0 -p1

%build
make %{?_smp_mflags} CXXFLAGS="%optflags"

%install
install -Dm 0755 cbbncd %{buildroot}%{_bindir}/cbbncd

%files
%doc README
%{_bindir}/cbbncd

%changelog
openSUSE Build Service is sponsored by