File wrapsix.spec of Package wrapsix

#
# spec file for package wrapsix
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 https://bugs.opensuse.org/
#


Name:           wrapsix
Version:        0.2.1
Release:        0
Summary:        Software implementation of NAT64
License:        GPL-3.0-only
Group:          System/Daemons
URL:            http://www.wrapsix.org/
# snapshot from https://bitbucket.org/xHire/wrapsix
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.service
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  systemd-rpm-macros
%systemd_requires

%description
WrapSix is a NAT64. It's implemented in userspace, currently only for Linux.
There isn't any dependency on external library (currently, may change later).

So far it's the fastest available software implementation of NAT64 – faster
than kernelspace Ecdysis, faster than userspace Tayga.

%prep
%setup -q

%build
autoreconf -fi
%configure
make %{?_smp_mflags}

%install
%make_install
mkdir -p %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}

%pre
%service_add_pre wrapsix.service

%post
%service_add_post wrapsix.service

%preun
%service_del_preun wrapsix.service

%postun
%service_del_postun wrapsix.service

%files
%license COPYING
%doc ChangeLog README
%{_sbindir}/wrapsix
%{_sysconfdir}/wrapsix.conf
%{_datadir}/doc/wrapsix
%{_unitdir}/*.service

%changelog