Name: ndppd Version: 0.2.6 Release: 0.1.20190127giteb81b8f%{?dist}.2 Summary: The NDP Proxy Daemon License: GPLv3+ URL: https://github.com/DanielAdolfsson/ndppd Source0: ndppd-0.2.6-giteb81b8f.zip Source1: ndppd.service Source2: ndppd@.service Patch0: ndppd-0.2.6-disappearing-if.patch %{?systemd_requires} BuildRequires: systemd BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: libnl3-devel BuildRequires: glib2-devel # Requires: %description 'ndppd', or NDP Proxy Daemon, is a daemon that proxies NDP (Neighbor Discovery Protocol) messages between interfaces. 'ndppd' currently only supports Neighbor Solicitation Messages and Neighbor Advertisement Messages. %prep %autosetup -n ndppd-master -p1 %build export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" export LDFLAGS="%{build_ldflags}" export PREFIX="%{_prefix}" %make_build WITH_ND_NETLINK=1 %install rm -rf $RPM_BUILD_ROOT export PREFIX="%{_prefix}" %make_install install -d $RPM_BUILD_ROOT%{_unitdir} install -m644 %{SOURCE1} -t $RPM_BUILD_ROOT%{_unitdir} install -m644 %{SOURCE2} -t $RPM_BUILD_ROOT%{_unitdir} %post %systemd_post ndppd.service %preun %systemd_preun ndppd.service %postun %systemd_postun_with_restart ndppd.service %files %license LICENSE %doc ChangeLog README %{_sbindir}/* %{_mandir}/* %{_unitdir}/* %changelog * Sun Jan 27 2019 Ralf Ertzinger - Initial build