This commit is contained in:
Your Name 2025-02-20 12:47:59 +00:00
parent 8b8bdb3093
commit fa23a6918d

View file

@ -5,10 +5,10 @@ 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
Source0: http://miniupnp.free.fr/files/download.php?file=%{name}-%{version}.tar.gz
Source1: miniupnpd.service
Patch0: miniupnpd-1.8.20140523-makefile.patch
Source1: %{name}.service
Source1000: %{name}.rpmlintrc
Patch0: %{name}-1.8.20140523-makefile.patch
BuildRequires: iptables-devel
BuildRequires: iptables-ip4tc-devel
BuildRequires: kernel-generic-devel
@ -44,27 +44,15 @@ See http://www.upnp.org/ for more details on UPnP.
%prep
%setup -q
#mv Makefile.linux Makefile
#patch0 -p1
%build
#make config.h
#sed -i \
# -e 's/\/\*#define ENABLE_LEASEFILE\*\//#define ENABLE_LEASEFILE/g' \
# config.h || die
#make CC=gcc CFLAGS="%{optflags}"
#make -f Makefile.linux config.h
#make -f Makefile.linux
./configure
%make
%install
%makeinstall_std
#mkdir -p %{buildroot}%{_mandir}/man8/
#make install PREFIX="%{buildroot}" STRIP="true"
rm -f %{buildroot}%{_sysconfdir}/init.d/miniupnpd
rm -f %{buildroot}%{_sysconfdir}/miniupnpd/miniupnpd.conf~
install -Dm0755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service