diff --git a/libupnp.spec b/libupnp.spec index f4c581a..c7c1c4b 100644 --- a/libupnp.spec +++ b/libupnp.spec @@ -1,11 +1,12 @@ Version: 1.6.0 Summary: Universal Plug and Play (UPnP) SDK Name: libupnp -Release: 2%{?dist} +Release: 3%{?dist} License: BSD Group: System Environment/Libraries URL: http://www.libupnp.org/ Source: http://puzzle.dl.sourceforge.net/sourceforge/pupnp/%{name}-%{version}.tar.bz2 +Patch0: open.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %define docdeveldir %{_docdir}/%{name}-devel-%{version} @@ -27,6 +28,7 @@ the UPnP SDK libraries. %prep %setup -q +%patch0 -p1 %build %configure --with-documentation @@ -78,6 +80,9 @@ make install DESTDIR=$RPM_BUILD_ROOT rm -rf %{buildroot} %changelog +* Fri Sep 07 2007 Eric Tanguy - 1.6.0-3 +- Patch to build with new glibc + * Wed Aug 29 2007 Fedora Release Engineering - 1.6.0-2 - Rebuild for selinux ppc32 issue. diff --git a/open.patch b/open.patch new file mode 100644 index 0000000..88e03d0 --- /dev/null +++ b/open.patch @@ -0,0 +1,24 @@ +diff -Naur libupnp-1.6.0/upnp/src/genlib/net/http/httpreadwrite.c libupnp-1.6.0/upnp/src/genlib/net/http-new/httpreadwrite.c +--- libupnp-1.6.0/upnp/src/genlib/net/http/httpreadwrite.c 2007-05-23 15:18:08.000000000 +0200 ++++ libupnp-1.6.0/upnp/src/genlib/net/http/httpreadwrite.c 2007-09-01 16:18:33.000000000 +0200 +@@ -349,7 +349,7 @@ + filename = ( char * )va_arg( argp, char * ); + + if( Instr && Instr->IsVirtualFile ) +- Fp = virtualDirCallback.open( filename, UPNP_READ ); ++ Fp = (virtualDirCallback.open)( filename, UPNP_READ ); + else + Fp = fopen( filename, "rb" ); + +diff -Naur libupnp-1.6.0/upnp/src/genlib/net/http/webserver.c libupnp-1.6.0/upnp/src/genlib/net/http-new/webserver.c +--- libupnp-1.6.0/upnp/src/genlib/net/http/webserver.c 2007-05-23 15:18:08.000000000 +0200 ++++ libupnp-1.6.0/upnp/src/genlib/net/http/webserver.c 2007-09-01 16:18:33.000000000 +0200 +@@ -1531,7 +1531,7 @@ + + if( Instr && Instr->IsVirtualFile ) { + +- Fp = virtualDirCallback.open( filename, UPNP_WRITE ); ++ Fp = (virtualDirCallback.open)( filename, UPNP_WRITE ); + if( Fp == NULL ) { + return HTTP_INTERNAL_SERVER_ERROR; + }