mirror of
https://abf.rosa.ru/djam/miniupnpd.git
synced 2025-02-23 16:12:57 +00:00
2.3.7
This commit is contained in:
parent
8b8bdb3093
commit
fa23a6918d
1 changed files with 3 additions and 15 deletions
|
@ -5,10 +5,10 @@ Release: 1
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System/Servers
|
Group: System/Servers
|
||||||
URL: http://miniupnp.free.fr
|
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
|
Source0: http://miniupnp.free.fr/files/download.php?file=%{name}-%{version}.tar.gz
|
||||||
Source1: miniupnpd.service
|
Source1: %{name}.service
|
||||||
Patch0: miniupnpd-1.8.20140523-makefile.patch
|
Source1000: %{name}.rpmlintrc
|
||||||
|
Patch0: %{name}-1.8.20140523-makefile.patch
|
||||||
BuildRequires: iptables-devel
|
BuildRequires: iptables-devel
|
||||||
BuildRequires: iptables-ip4tc-devel
|
BuildRequires: iptables-ip4tc-devel
|
||||||
BuildRequires: kernel-generic-devel
|
BuildRequires: kernel-generic-devel
|
||||||
|
@ -44,27 +44,15 @@ See http://www.upnp.org/ for more details on UPnP.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
#mv Makefile.linux Makefile
|
|
||||||
#patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%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
|
./configure
|
||||||
%make
|
%make
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall_std
|
%makeinstall_std
|
||||||
#mkdir -p %{buildroot}%{_mandir}/man8/
|
|
||||||
|
|
||||||
#make install PREFIX="%{buildroot}" STRIP="true"
|
|
||||||
rm -f %{buildroot}%{_sysconfdir}/init.d/miniupnpd
|
rm -f %{buildroot}%{_sysconfdir}/init.d/miniupnpd
|
||||||
rm -f %{buildroot}%{_sysconfdir}/miniupnpd/miniupnpd.conf~
|
rm -f %{buildroot}%{_sysconfdir}/miniupnpd/miniupnpd.conf~
|
||||||
install -Dm0755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
install -Dm0755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
|
|
Loading…
Add table
Reference in a new issue