SPECS: miniupnpd.spec - up to 1.2, still doesn't compile

glen glen at pld-linux.org
Sun Mar 29 14:46:08 CEST 2009


Author: glen                         Date: Sun Mar 29 12:46:08 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 1.2, still doesn't compile

---- Files affected:
SPECS:
   miniupnpd.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/miniupnpd.spec
diff -u SPECS/miniupnpd.spec:1.3 SPECS/miniupnpd.spec:1.4
--- SPECS/miniupnpd.spec:1.3	Thu May 17 20:41:46 2007
+++ SPECS/miniupnpd.spec	Sun Mar 29 14:46:02 2009
@@ -1,21 +1,29 @@
 # $Revision$, $Date$
-%define pre RC4
+# TODO
+# - iptables or kernel headers messup:
+# - th:
+#   linux/iptcrdr.c:17:22: error: iptables.h: No such file or directory
+#   linux/iptcrdr.c:18:41: error: linux/netfilter_ipv4/ip_nat.h: No such file or directory
+#   linux/iptcrdr.c: In function 'get_redirect_rule':
+# - ac:
+#   netfilter/iptcrdr.c:23:36: linux/netfilter/nf_nat.h: No such file or directory
 Summary:	Small UPnP Daemon
 Summary(pl.UTF-8):	Mały demon UPnP
 Name:		miniupnpd
-Version:	1.0
-Release:	0.%{pre}.1
+Version:	1.2
+Release:	0.1
 License:	BSD
 Group:		Applications
-Source0:	http://miniupnp.free.fr/files/%{name}-%{version}-RC4.tar.gz
-# Source0-md5:	de6fd266bf15c4f6781895d19c8efbca
+Source0:	http://miniupnp.tuxfamily.org/files/%{name}-%{version}.tar.gz
+# Source0-md5:	48f1fa81e5c2cb1c561c29cdcf261602
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
 Source3:	%{name}.conf
-URL:		http://miniupnp.free.fr/
+URL:		http://miniupnp.tuxfamily.org/
 BuildRequires:	iptables-devel
 BuildRequires:	rpmbuild(macros) >= 1.228
 Requires(post):	libuuid
+Requires(post):	sed >= 4.0
 Requires(post,preun):	/sbin/chkconfig
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -26,7 +34,7 @@
 Mały demon UPnP.
 
 %prep
-%setup -q -n %{name}-%{version}-%{pre}
+%setup -q
 
 %build
 %{__make} -f Makefile.linux \
@@ -36,7 +44,6 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d,/etc/sysconfig,%{_sysconfdir}/%{name}}
-
 install miniupnpd $RPM_BUILD_ROOT%{_sbindir}
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
@@ -46,17 +53,17 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ ! -f %{_sysconfdir}/miniupnpd/uuid ] ; then
+if [ ! -f %{_sysconfdir}/miniupnpd/uuid ]; then
 	echo "Generating UPnP uuid..."
 	umask 066
 	uuidgen > %{_sysconfdir}/miniupnpd/uuid
 fi
 
-if [ -f %{_sysconfdir}/miniupnpd/uuid ] ; then
+if [ -f %{_sysconfdir}/miniupnpd/uuid ]; then
 	UUID=`cat %{_sysconfdir}/miniupnpd/uuid`
 	if [ -n "$UUID" ] ; then
 		echo "Updating UUID in miniupnpd config file..."
-   	%{__sed} -i -e "s/^uuid=[-0-9a-f]*/uuid=`cat %{_sysconfdir}/miniupnpd/uuid`/" %{_sysconfdir}/miniupnpd/miniupnpd.conf
+		%{__sed} -i -e "s/^uuid=[-0-9a-f]*/uuid=`cat %{_sysconfdir}/miniupnpd/uuid`/" %{_sysconfdir}/miniupnpd/miniupnpd.conf
 	fi
 fi
 
@@ -84,6 +91,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2009/03/29 12:46:02  glen
+- up to 1.2, still doesn't compile
+
 Revision 1.3  2007/05/17 18:41:46  qboosh
 - use optflags
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/miniupnpd.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list