Summary: The UPNP & NAT-PMP implementation Name: miniupnpd Version: 2.3.7 Release: 1 License: GPLv2+ Group: System/Servers URL: http://miniupnp.free.fr Source0: http://miniupnp.free.fr/files/download.php?file=%{name}-%{version}.tar.gz Source1: %{name}.service Source1000: %{name}.rpmlintrc Patch0: %{name}-1.8.20140523-makefile.patch BuildRequires: iptables-devel BuildRequires: iptables-ip4tc-devel BuildRequires: kernel-generic-devel BuildRequires: pkgconfig(libiptc) BuildRequires: pkgconfig(libnetfilter_conntrack) Requires: iptables Requires(post,preun,postun): systemd %description The miniUPnP daemon is an UPnP IGD (internet gateway device) which provide NAT traversal services to any UPnP enabled client on the network. See http://www.upnp.org/ for more details on UPnP. %files %doc README Changelog.txt %config(noreplace) %{_sysconfdir}/miniupnpd/* %{_sbindir}/miniupnpd %{_unitdir}/miniupnpd* %{_mandir}/man*/* %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service #---------------------------------------------------------------------------- %prep %setup -q %build ./configure %make %install %makeinstall_std rm -f %{buildroot}%{_sysconfdir}/init.d/miniupnpd rm -f %{buildroot}%{_sysconfdir}/miniupnpd/miniupnpd.conf~ install -Dm0755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service